#152D7E#152D7E

#152D7E is a dark, vivid blue. Relative luminance 0.035; OKLCH L 33.7% C 0.140 H 266.1°. Best body text is #FFFFFF at 12.29:1 contrast (WCAG AA passes).

Color values

HEX#152D7E
RGBrgb(21, 45, 126)
HSLhsl(226, 71%, 29%)
HSVhsv(226, 83%, 49%)
CMYKcmyk(83.3%, 64.3%, 0%, 50.6%)
CIE-LABlab(22.10, 23.29, -48.30)
CIE-LCHlch(22.10, 53.62, 295.75°)
OKLaboklab(33.73% -0.0096 -0.1398)
OKLCHoklch(33.73% 0.14 266.1)
XYZxyz(5.0122, 3.5420, 20.1541)
Luminance0.0354 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#152D7E #7E6615
analogous
#15627E #152D7E #32157E
triadic
#152D7E #7E152D #2D7E15
tetradic
#152D7E #7E1562 #7E6615 #157E32
square
#152D7E #7E1562 #7E6615 #157E32
split-complementary
#152D7E #7E3215 #627E15
monochromatic
#04091A #0C1A4A #152D7E #1E40B2 #3158DD

Accessibility & contrast

On white

12.29
#152D7E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#152D7E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #152D7E
12.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##152D7E#FFFFFF#000000##FFFFFF
##152D7E1.0012.291.7112.29
#FFFFFF12.291.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A81
Deuteranopia (green-blind)
#00307C
Tritanopia (blue-blind)
#004251
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #152d7e;
/* rgb */ color: rgb(21, 45, 126);
/* oklch */ color: oklch(33.7% 0.140 266.1);
Tailwind
colors: {
  custom: {
    50: '#6665a4',
    500: '#152d7e',
    950: '#000000',
  },
}
SCSS
$custom: #152d7e;
$custom-light: #6665a4;
$custom-dark: #000000;
JSON
{
  "hex": "#152d7e",
  "rgb": {
    "r": 21,
    "g": 45,
    "b": 126
  },
  "hsl": {
    "h": 226.286,
    "s": 71.429,
    "l": 28.824
  },
  "oklch": {
    "l": 0.33727,
    "c": 0.14008,
    "h": 266.1
  },
  "luminance": 0.03543
}

Semantic roles & 50–950 ramp

primary
#152D7E
secondary
#B3983C
accent
#C53AEE
background
#F6F6FA
surface
#EBEBF4
border
#C6C6CE
text
#07050F
muted
#7A7A7F

Preview Lab

Preview with #152D7E

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

Preview Lab → · Contrast checker → · Palette generator →

#152D7E Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva