CSS named colour

Cornflower Blue

#6495ed

A CSS named colour: cornflowerblue is valid anywhere a colour is expected.

RGB
rgb(100 149 237)
HSL
219°, 79%, 66%
OKLCh
67.5% 0.141 261.3

Open in the picker

Cornflower Blue in every format

Web & CSSThe everyday formats for stylesheets and design tools.

Hex#6495ed
RGBrgb(100 149 237)
RGB legacyrgb(100, 149, 237)
RGB percentrgb(39.22% 58.43% 92.94%)
HSLhsl(218.5 79.2% 66.1%)
HSL legacyhsl(218.5, 79.2%, 66.1%)
HSV / HSBhsv(218.5, 57.8%, 92.9%)
HWBhwb(218.5 39.2% 7.1%)
Nearest namecornflowerblue
CMYKcmyk(57.8%, 37.1%, 0%, 7.1%)Naive conversion. Real print work needs an ICC profile.

Perceptual & wide gamutModern CSS colour spaces for uniform scales and P3 displays.

OKLChoklch(67.462% 0.14136 261.338)Modern CSS colour space for even palettes — better than HSL when building scales.
OKLaboklab(67.462% -0.02129 -0.13974)
CIE LChlch(61.233% 50.281 273.474)
CIE Lablab(61.233% 3.047 -50.188)
Display P3color(display-p3 0.4343 0.5792 0.9038)
Rec. 2020color(rec2020 0.4518 0.5352 0.8877)
srgb-linearcolor(srgb-linear 0.1274 0.3005 0.8469)Light-linear sRGB — the same numbers a shader wants for maths.
CIE XYZ (D65)color(xyz-d65 0.3129 0.3032 0.8433)

ShadersGLSL, HLSL and WGSL vectors in both encoded and linear form.

GLSL vec3 — sRGBvec3(0.392, 0.584, 0.929)Encoded values. Use when writing straight to the framebuffer.
GLSL vec3 — linearvec3(0.127, 0.301, 0.847)Light-linear values. Use for lighting, blending and mixing.
GLSL vec4 — sRGBvec4(0.392, 0.584, 0.929, 1.0)
GLSL vec4 — linearvec4(0.127, 0.301, 0.847, 1.0)
GLSL ivec3ivec3(100, 149, 237)
HLSL float3 — sRGBfloat3(0.392, 0.584, 0.929)
HLSL float3 — linearfloat3(0.127, 0.301, 0.847)
HLSL float4 — sRGBfloat4(0.392, 0.584, 0.929, 1.0)
HLSL half4 — sRGBhalf4(0.392, 0.584, 0.929, 1.0)
WGSL vec3f — sRGBvec3f(0.392, 0.584, 0.929)
WGSL vec4f — sRGBvec4f(0.392, 0.584, 0.929, 1.0)
WGSL vec3<f32> — linearvec3<f32>(0.127, 0.301, 0.847)

Engines & appsConstructors for Unity, Unreal, Godot, Flutter, SwiftUI and Android.

Unity Colornew Color(0.392f, 0.584f, 0.929f, 1.0f)Color for everyday scripting (0–1). Color32 when you need whole numbers from 0 to 255.
Unity Color32new Color32(100, 149, 237, 255)
Unreal FLinearColorFLinearColor(0.1274f, 0.3005f, 0.8469f, 1.0f)FLinearColor for materials and lighting. FColor when you need whole numbers from 0 to 255.
Unreal FColorFColor(100, 149, 237, 255)Whole numbers from 0 to 255 — use when an API asks for FColor, not FLinearColor.
Godot ColorColor(0.392, 0.584, 0.929, 1)
Flutter ColorColor(0xFF6495ED)Packed ARGB, so alpha comes first.
Android ColorColor.rgb(100, 149, 237)
SwiftUI ColorColor(red: 0.392, green: 0.584, blue: 0.929)
UIKit UIColorUIColor(red: 0.392, green: 0.584, blue: 0.929, alpha: 1)

Raw valuesPacked integers and plain arrays.

0x hex0x6495ED
0x hex (ARGB)0xFF6495ED
Array 0–1[0.392, 0.584, 0.929]
Array 0–255[100, 149, 237]
Decimal integer6591981

Contrast and accessibility

WCAG 2 ratios are what audits and legislation reference. APCA is shown alongside because WCAG 2 is known to misjudge mid-tone backgrounds, and it is the basis of the WCAG 3 draft.

PairingWCAG 2 ratioLevelAPCASuitable for
Cornflower Blue on white2.97:1FailLc 56Large headings only
Cornflower Blue on black7.06:1AAALc 46Large headings only

Cornflower Blue text on a white background

Cornflower Blue text on a black background

White text on Cornflower Blue

Black text on Cornflower Blue

Tonal scale

Hue held fixed while lightness walks OKLCh, ready to use as a design system ramp.

  • 50#ecf8ff
  • 100#ddefff
  • 200#c2deff
  • 300#9ec6ff
  • 400#78a8ff
  • 500#5989e0
  • 600#426fc1
  • 700#2f58a3
  • 800#1f4488
  • 900#133471
  • 950#031b4b

Tints and shades

Mixed perceptually toward white and black, so the steps feel evenly spaced.

  • Tint 1#7da7f1
  • Tint 2#97b9f5
  • Tint 3#b0cbf9
  • Tint 4#cadcfb
  • Tint 5#e4eefd
  • Shade 1#4d74ba
  • Shade 2#375489
  • Shade 3#22375c
  • Shade 4#0f1b32
  • Shade 5#02050d

Colours that work with Cornflower Blue

Complementary, triadic and analogous partners, rotated in OKLCh so they keep the same apparent brightness.

  • #c28c00
  • #e06f70
  • #61ac56
  • #00a4dd
  • #9885e6

Closest CSS names

  • cornflowerblueexact match
  • dodgerblueΔEok 0.059
  • steelblueΔEok 0.102
  • mediumpurpleΔEok 0.104
  • deepskyblueΔEok 0.111
  • mediumslateblueΔEok 0.112