#152B7D#152B7D

#152B7D is a dark, vivid blue. Relative luminance 0.034; OKLCH L 33.2% C 0.141 H 266.6°. Best body text is #FFFFFF at 12.55:1 contrast (WCAG AA passes).

Color values

HEX#152B7D
RGBrgb(21, 43, 125)
HSLhsl(227, 71%, 29%)
HSVhsv(227, 83%, 49%)
CMYKcmyk(83.2%, 65.6%, 0%, 51%)
CIE-LABlab(21.46, 24.29, -48.71)
CIE-LCHlch(21.46, 54.43, 296.51°)
OKLaboklab(33.23% -0.0084 -0.141)
OKLCHoklch(33.23% 0.141 266.6)
XYZxyz(4.8735, 3.3673, 19.7912)
Luminance0.0337 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#152B7D #7D6715
analogous
#155F7D #152B7D #33157D
triadic
#152B7D #7D152B #2B7D15
tetradic
#152B7D #7D155F #7D6715 #157D33
square
#152B7D #7D155F #7D6715 #157D33
split-complementary
#152B7D #7D3315 #5F7D15
monochromatic
#04091A #0C1949 #152B7D #1E3DB1 #3055DC

Accessibility & contrast

On white

12.55
#152B7D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#152B7D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #152B7D
12.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##152B7D#FFFFFF#000000##FFFFFF
##152B7D1.0012.551.6712.55
#FFFFFF12.551.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003880
Deuteranopia (green-blind)
#002F7B
Tritanopia (blue-blind)
#00414F
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #152b7d;
/* rgb */ color: rgb(21, 43, 125);
/* oklch */ color: oklch(33.2% 0.141 266.6);
Tailwind
colors: {
  custom: {
    50: '#6664a3',
    500: '#152b7d',
    950: '#000000',
  },
}
SCSS
$custom: #152b7d;
$custom-light: #6664a3;
$custom-dark: #000000;
JSON
{
  "hex": "#152b7d",
  "rgb": {
    "r": 21,
    "g": 43,
    "b": 125
  },
  "hsl": {
    "h": 227.308,
    "s": 71.233,
    "l": 28.627
  },
  "oklch": {
    "l": 0.33227,
    "c": 0.14123,
    "h": 266.6
  },
  "luminance": 0.03368
}

Semantic roles & 50–950 ramp

primary
#152B7D
secondary
#B2993C
accent
#C83AEE
background
#F6F5FA
surface
#EBEAF4
border
#C6C6CE
text
#07050F
muted
#7A797F

Preview Lab

Preview with #152B7D

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

Preview Lab → · Contrast checker → · Palette generator →

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