#15227E#15227E

#15227E is a dark, vivid blue. Relative luminance 0.028; OKLCH L 31.7% C 0.153 H 268.6°. Best body text is #FFFFFF at 13.44:1 contrast (WCAG AA passes).

Color values

HEX#15227E
RGBrgb(21, 34, 126)
HSLhsl(233, 71%, 29%)
HSVhsv(233, 83%, 49%)
CMYKcmyk(83.3%, 73%, 0%, 50.6%)
CIE-LABlab(19.26, 30.82, -52.95)
CIE-LCHlch(19.26, 61.27, 300.20°)
OKLaboklab(31.65% -0.0039 -0.1534)
OKLCHoklch(31.65% 0.153 268.6)
XYZxyz(4.6459, 2.8093, 20.0320)
Luminance0.0281 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#15227E #7E7115
analogous
#15577E #15227E #3D157E
triadic
#15227E #7E1522 #227E15
tetradic
#15227E #7E1557 #7E7115 #157E3D
square
#15227E #7E1557 #7E7115 #157E3D
split-complementary
#15227E #7E3D15 #577E15
monochromatic
#04071A #0C144A #15227E #1E30B2 #3146DD

Accessibility & contrast

On white

13.44
#15227E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.56
#15227E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #15227E
13.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##15227E#FFFFFF#000000##FFFFFF
##15227E1.0013.441.5613.44
#FFFFFF13.441.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003481
Deuteranopia (green-blind)
#002A7C
Tritanopia (blue-blind)
#003C4D
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #15227e;
/* rgb */ color: rgb(21, 34, 126);
/* oklch */ color: oklch(31.7% 0.153 268.6);
Tailwind
colors: {
  custom: {
    50: '#685da4',
    500: '#15227e',
    950: '#000000',
  },
}
SCSS
$custom: #15227e;
$custom-light: #685da4;
$custom-dark: #000000;
JSON
{
  "hex": "#15227e",
  "rgb": {
    "r": 21,
    "g": 34,
    "b": 126
  },
  "hsl": {
    "h": 232.571,
    "s": 71.429,
    "l": 28.824
  },
  "oklch": {
    "l": 0.31654,
    "c": 0.15346,
    "h": 268.6
  },
  "luminance": 0.0281
}

Semantic roles & 50–950 ramp

primary
#15227E
secondary
#B3A43C
accent
#D83AEE
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#07040F
muted
#7A797F

Preview Lab

Preview with #15227E

Body copy rendered with the generated semantic roles for this colour.

Preview Lab → · Contrast checker → · Palette generator →

#15227E Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva