#152166#152166

#152166 is a dark, vivid blue. Relative luminance 0.022; OKLCH L 28.9% C 0.121 H 269.4°. Best body text is #FFFFFF at 14.57:1 contrast (WCAG AA passes).

Color values

HEX#152166
RGBrgb(21, 33, 102)
HSLhsl(231, 66%, 24%)
HSVhsv(231, 79%, 40%)
CMYKcmyk(79.4%, 67.6%, 0%, 60%)
CIE-LABlab(16.53, 22.07, -41.94)
CIE-LCHlch(16.53, 47.39, 297.75°)
OKLaboklab(28.92% -0.0013 -0.1213)
OKLCHoklch(28.92% 0.121 269.4)
XYZxyz(3.2506, 2.2061, 12.8223)
Luminance0.0221 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#152166 #665A15
analogous
#154A66 #152166 #321566
triadic
#152166 #661521 #216615
tetradic
#152166 #66154A #665A15 #156632
square
#152166 #66154A #665A15 #156632
split-complementary
#152166 #663215 #4A6615
monochromatic
#050819 #0B1133 #152166 #1F3199 #2A42CC

Accessibility & contrast

On white

14.57
#152166 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.44
#152166 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #152166
14.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##152166#FFFFFF#000000##FFFFFF
##1521661.0014.571.4414.57
#FFFFFF14.571.0021.001.00
#0000001.4421.001.0021.00
##FFFFFF14.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D68
Deuteranopia (green-blind)
#002565
Tritanopia (blue-blind)
#003340
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #152166;
/* rgb */ color: rgb(21, 33, 102);
/* oklch */ color: oklch(28.9% 0.121 269.4);
Tailwind
colors: {
  custom: {
    50: '#615c92',
    500: '#152166',
    950: '#000000',
  },
}
SCSS
$custom: #152166;
$custom-light: #615c92;
$custom-dark: #000000;
JSON
{
  "hex": "#152166",
  "rgb": {
    "r": 21,
    "g": 33,
    "b": 102
  },
  "hsl": {
    "h": 231.111,
    "s": 65.854,
    "l": 24.118
  },
  "oklch": {
    "l": 0.28917,
    "c": 0.12127,
    "h": 269.4
  },
  "luminance": 0.02206
}

Semantic roles & 50–950 ramp

primary
#152166
secondary
#9D8E3A
accent
#D03FE9
background
#F6F5F9
surface
#EBE9F1
border
#C6C5CB
text
#06040D
muted
#7A797E

Preview Lab

Preview with #152166

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

Preview Lab → · Contrast checker → · Palette generator →

#152166 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva