#152D7F#152D7F

#152D7F is a dark, vivid blue. Relative luminance 0.036; OKLCH L 33.8% C 0.141 H 266.1°. Best body text is #FFFFFF at 12.25:1 contrast (WCAG AA passes).

Color values

HEX#152D7F
RGBrgb(21, 45, 127)
HSLhsl(226, 72%, 29%)
HSVhsv(226, 83%, 50%)
CMYKcmyk(83.5%, 64.6%, 0%, 50.2%)
CIE-LABlab(22.19, 23.70, -48.78)
CIE-LCHlch(22.19, 54.23, 295.91°)
OKLaboklab(33.82% -0.0096 -0.1412)
OKLCHoklch(33.82% 0.141 266.1)
XYZxyz(5.0771, 3.5679, 20.4956)
Luminance0.0357 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#152D7F #7F6715
analogous
#15627F #152D7F #32157F
triadic
#152D7F #7F152D #2D7F15
tetradic
#152D7F #7F1562 #7F6715 #157F32
square
#152D7F #7F1562 #7F6715 #157F32
split-complementary
#152D7F #7F3215 #627F15
monochromatic
#04091A #0C1A4A #152D7F #1E40B4 #3158DD

Accessibility & contrast

On white

12.25
#152D7F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #152D7F
12.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##152D7F#FFFFFF#000000##FFFFFF
##152D7F1.0012.251.7112.25
#FFFFFF12.251.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.251.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #152d7f;
/* rgb */ color: rgb(21, 45, 127);
/* oklch */ color: oklch(33.8% 0.141 266.1);
Tailwind
colors: {
  custom: {
    50: '#6765a5',
    500: '#152d7f',
    950: '#000000',
  },
}
SCSS
$custom: #152d7f;
$custom-light: #6765a5;
$custom-dark: #000000;
JSON
{
  "hex": "#152d7f",
  "rgb": {
    "r": 21,
    "g": 45,
    "b": 127
  },
  "hsl": {
    "h": 226.415,
    "s": 71.622,
    "l": 29.02
  },
  "oklch": {
    "l": 0.33824,
    "c": 0.14149,
    "h": 266.1
  },
  "luminance": 0.03569
}

Semantic roles & 50–950 ramp

primary
#152D7F
secondary
#B4993C
accent
#C539EE
background
#F6F6FA
surface
#EBEBF4
border
#C6C6CE
text
#07050F
muted
#7A7A7F

Preview Lab

Preview with #152D7F

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

Preview Lab → · Contrast checker → · Palette generator →

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