CSS named colour

Royal Blue

#4169e1

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

RGB
rgb(65 105 225)
HSL
225°, 73%, 57%
OKLCh
56.0% 0.188 266.4

Open in the picker

Royal Blue in every format

Web & CSSThe everyday formats for stylesheets and design tools.

Hex#4169e1
RGBrgb(65 105 225)
RGB legacyrgb(65, 105, 225)
RGB percentrgb(25.49% 41.18% 88.24%)
HSLhsl(225 72.7% 56.9%)
HSL legacyhsl(225, 72.7%, 56.9%)
HSV / HSBhsv(225, 71.1%, 88.2%)
HWBhwb(225 25.5% 11.8%)
Nearest nameroyalblue
CMYKcmyk(71.1%, 53.3%, 0%, 11.8%)Naive conversion. Real print work needs an ICC profile.

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

OKLChoklch(55.985% 0.18823 266.4)Modern CSS colour space for even palettes — better than HSL when building scales.
OKLaboklab(55.985% -0.01182 -0.18786)
CIE LChlch(46.8% 68.989 284.937)
CIE Lablab(46.8% 17.783 -66.658)
Display P3color(display-p3 0.2904 0.4077 0.8525)
Rec. 2020color(rec2020 0.3116 0.3576 0.8295)
srgb-linearcolor(srgb-linear 0.0529 0.1413 0.7529)Light-linear sRGB — the same numbers a shader wants for maths.
CIE XYZ (D65)color(xyz-d65 0.2082 0.1666 0.7336)

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

GLSL vec3 — sRGBvec3(0.255, 0.412, 0.882)Encoded values. Use when writing straight to the framebuffer.
GLSL vec3 — linearvec3(0.053, 0.141, 0.753)Light-linear values. Use for lighting, blending and mixing.
GLSL vec4 — sRGBvec4(0.255, 0.412, 0.882, 1.0)
GLSL vec4 — linearvec4(0.053, 0.141, 0.753, 1.0)
GLSL ivec3ivec3(65, 105, 225)
HLSL float3 — sRGBfloat3(0.255, 0.412, 0.882)
HLSL float3 — linearfloat3(0.053, 0.141, 0.753)
HLSL float4 — sRGBfloat4(0.255, 0.412, 0.882, 1.0)
HLSL half4 — sRGBhalf4(0.255, 0.412, 0.882, 1.0)
WGSL vec3f — sRGBvec3f(0.255, 0.412, 0.882)
WGSL vec4f — sRGBvec4f(0.255, 0.412, 0.882, 1.0)
WGSL vec3<f32> — linearvec3<f32>(0.053, 0.141, 0.753)

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

Unity Colornew Color(0.255f, 0.412f, 0.882f, 1.0f)Color for everyday scripting (0–1). Color32 when you need whole numbers from 0 to 255.
Unity Color32new Color32(65, 105, 225, 255)
Unreal FLinearColorFLinearColor(0.0529f, 0.1413f, 0.7529f, 1.0f)FLinearColor for materials and lighting. FColor when you need whole numbers from 0 to 255.
Unreal FColorFColor(65, 105, 225, 255)Whole numbers from 0 to 255 — use when an API asks for FColor, not FLinearColor.
Godot ColorColor(0.255, 0.412, 0.882, 1)
Flutter ColorColor(0xFF4169E1)Packed ARGB, so alpha comes first.
Android ColorColor.rgb(65, 105, 225)
SwiftUI ColorColor(red: 0.255, green: 0.412, blue: 0.882)
UIKit UIColorUIColor(red: 0.255, green: 0.412, blue: 0.882, alpha: 1)

Raw valuesPacked integers and plain arrays.

0x hex0x4169E1
0x hex (ARGB)0xFF4169E1
Array 0–1[0.255, 0.412, 0.882]
Array 0–255[65, 105, 225]
Decimal integer4286945

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
Royal Blue on white4.85:1AALc 73Headings and large text
Royal Blue on black4.33:1AA LargeLc 29Not usable for text

Royal Blue text on a white background

Royal Blue text on a black background

White text on Royal Blue

Black text on Royal Blue

Tonal scale

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

  • 50#eef8ff
  • 100#dfeeff
  • 200#c7dcff
  • 300#a5c4ff
  • 400#7ba4ff
  • 500#5682fc
  • 600#4067db
  • 700#2e4fba
  • 800#203c9d
  • 900#152c83
  • 950#06125a

Tints and shades

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

  • Tint 1#5e84e8
  • Tint 2#7c9def
  • Tint 3#9cb6f4
  • Tint 4#bccff9
  • Tint 5#dde7fd
  • Shade 1#3151b0
  • Shade 2#223a82
  • Shade 3#132456
  • Shade 4#06102f
  • Shade 5#01020b

Colours that work with Royal Blue

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

  • #966d00
  • #cb3532
  • #008f20
  • #007ebe
  • #8254d3

Closest CSS names

  • royalblueexact match
  • slateblueΔEok 0.064
  • mediumslateblueΔEok 0.078
  • dodgerblueΔEok 0.102
  • steelblueΔEok 0.105
  • mediumpurpleΔEok 0.116