#152B8E#152B8E

#152B8E is a dark, vivid blue. Relative luminance 0.038; OKLCH L 35.0% C 0.164 H 266.8°. Best body text is #FFFFFF at 11.88:1 contrast (WCAG AA passes).

Color values

HEX#152B8E
RGBrgb(21, 43, 142)
HSLhsl(229, 74%, 32%)
HSVhsv(229, 85%, 56%)
CMYKcmyk(85.2%, 69.7%, 0%, 44.3%)
CIE-LABlab(23.13, 31.00, -56.62)
CIE-LCHlch(23.13, 64.55, 298.70°)
OKLaboklab(34.97% -0.0092 -0.1641)
OKLCHoklch(34.97% 0.164 266.8)
XYZxyz(6.0539, 3.8394, 26.0080)
Luminance0.0384 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#152B8E #8E7815
analogous
#15688E #152B8E #3C158E
triadic
#152B8E #8E152B #2B8E15
tetradic
#152B8E #8E1568 #8E7815 #158E3C
square
#152B8E #8E1568 #8E7815 #158E3C
split-complementary
#152B8E #8E3C15 #688E15
monochromatic
#050B23 #0D1B59 #152B8E #1D3BC3 #3B5AE2

Accessibility & contrast

On white

11.88
#152B8E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.77
#152B8E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #152B8E
11.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##152B8E#FFFFFF#000000##FFFFFF
##152B8E1.0011.881.7711.88
#FFFFFF11.881.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D91
Deuteranopia (green-blind)
#00318C
Tritanopia (blue-blind)
#004659
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #152b8e;
/* rgb */ color: rgb(21, 43, 142);
/* oklch */ color: oklch(35.0% 0.164 266.8);
Tailwind
colors: {
  custom: {
    50: '#6b64b0',
    500: '#152b8e',
    950: '#000000',
  },
}
SCSS
$custom: #152b8e;
$custom-light: #6b64b0;
$custom-dark: #000000;
JSON
{
  "hex": "#152b8e",
  "rgb": {
    "r": 21,
    "g": 43,
    "b": 142
  },
  "hsl": {
    "h": 229.091,
    "s": 74.233,
    "l": 31.961
  },
  "oklch": {
    "l": 0.34965,
    "c": 0.16435,
    "h": 266.8
  },
  "luminance": 0.0384
}

Semantic roles & 50–950 ramp

primary
#152B8E
secondary
#C2AA3D
accent
#CF37F1
background
#F7F6FB
surface
#EDEBF6
border
#C8C6D0
text
#080511
muted
#7B7A80

Preview Lab

Preview with #152B8E

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

Preview Lab → · Contrast checker → · Palette generator →

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