#152D8D#152D8D

#152D8D is a dark, vivid blue. Relative luminance 0.040; OKLCH L 35.2% C 0.161 H 266.4°. Best body text is #FFFFFF at 11.72:1 contrast (WCAG AA passes).

Color values

HEX#152D8D
RGBrgb(21, 45, 141)
HSLhsl(228, 74%, 32%)
HSVhsv(228, 85%, 55%)
CMYKcmyk(85.1%, 68.1%, 0%, 44.7%)
CIE-LABlab(23.53, 29.27, -55.34)
CIE-LCHlch(23.53, 62.61, 297.88°)
OKLaboklab(35.23% -0.01 -0.1603)
OKLCHoklch(35.23% 0.161 266.4)
XYZxyz(6.0537, 3.9586, 25.6392)
Luminance0.0396 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#152D8D #8D7515
analogous
#15698D #152D8D #39158D
triadic
#152D8D #8D152D #2D8D15
tetradic
#152D8D #8D1569 #8D7515 #158D39
square
#152D8D #8D1569 #8D7515 #158D39
split-complementary
#152D8D #8D3915 #698D15
monochromatic
#050B22 #0D1C58 #152D8D #1D3EC2 #3B5CE2

Accessibility & contrast

On white

11.72
#152D8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.79
#152D8D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #152D8D
11.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##152D8D#FFFFFF#000000##FFFFFF
##152D8D1.0011.721.7911.72
#FFFFFF11.721.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E90
Deuteranopia (green-blind)
#00328B
Tritanopia (blue-blind)
#004759
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #152d8d;
/* rgb */ color: rgb(21, 45, 141);
/* oklch */ color: oklch(35.2% 0.161 266.4);
Tailwind
colors: {
  custom: {
    50: '#6b65af',
    500: '#152d8d',
    950: '#000000',
  },
}
SCSS
$custom: #152d8d;
$custom-light: #6b65af;
$custom-dark: #000000;
JSON
{
  "hex": "#152d8d",
  "rgb": {
    "r": 21,
    "g": 45,
    "b": 141
  },
  "hsl": {
    "h": 228,
    "s": 74.074,
    "l": 31.765
  },
  "oklch": {
    "l": 0.35227,
    "c": 0.16066,
    "h": 266.4
  },
  "luminance": 0.03959
}

Semantic roles & 50–950 ramp

primary
#152D8D
secondary
#C1A63D
accent
#CC37F1
background
#F7F6FA
surface
#EDEBF5
border
#C8C6CF
text
#080510
muted
#7B7A7F

Preview Lab

Preview with #152D8D

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

Preview Lab → · Contrast checker → · Palette generator →

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