royalblue

#4169E1 · CSS color name

royalblue is the CSS color name for #4169e1: RGB(65, 105, 225), HSL(225°, 73%, 57%), CMYK(71%, 53%, 0%, 12%). Contrast is 4.85:1 on white and 4.33:1 on black. See shades, harmonies and color-blindness simulation.

Open in Picker Generate Scheme

Color Codes

HEX#4169e1
CSS color nameroyalblue
RGBrgb(65 105 225)
RGB (legacy)rgb(65, 105, 225)
RGB %rgb(25% 41% 88%)
HSLhsl(225 73% 57%)
HSV / HSBhsv(225, 71%, 88%)
HWBhwb(225 25% 12%)
CMYKcmyk(71%, 53%, 0%, 12%)
CIELAB (D50)lab(46.8 17.78 -66.66)
LCHlch(46.8 68.99 284.94)
OKLaboklab(0.5598 -0.0118 -0.1879)
OKLCHoklch(0.5598 0.1882 266.4)
Decimal4286945

Properties

Color ToneBlue, Sky, Navy
Closest named colorroyalblue ΔE 0
Closest web-safe color#3366cc
Hue225°
Saturation (HSL / HSV)73% / 71%
Lightness (HSL)57%
Brightness or Value (HSV)88%
Luminance (Rec.601 / Rec.709)42% / 41%
Relative luminance (WCAG)0.1666
Red / Green / Blue65 / 105 / 225

WCAG 2.2 Contrast Ratio

On White (#ffffff)
4.85:1
AA Normal (4.5:1) · PassAA Large (3:1) · PassAAA Normal (7:1) · Fail
On Black (#000000)
4.33:1
AA Normal (4.5:1) · FailAA Large (3:1) · PassAAA Normal (7:1) · Fail
Aa Bb 123

APCA Contrast Lc (reference) — As text on white / black: Lc 73.2 / -28.5 · As background with white / black text: Lc -78.6 / 30.9

Lightness Scale (OKLCH 50–950)

Eleven steps that change only perceived lightness while keeping hue and chroma — ready to use as design-system color tokens.

Tints (mixed with white)

Shades (mixed with black)

Color Harmonies

Color Vision Deficiency Simulation

Estimated appearance of this color for people with color vision deficiencies (Machado 2009).

Similar Named Colors

Use in CSS

:root {
  --color-royalblue: #4169e1;
  --color-royalblue-oklch: oklch(55.98% 0.1882 266.4);
}
.text { color: var(--color-royalblue); }
.background { background-color: var(--color-royalblue); }
.border { border: 1px solid rgb(65 105 225 / 50%); }
/* Tailwind CSS */
<div class="bg-[#4169e1] text-[#4169e1] border-[#4169e1]">