#152B81#152B81

#152B81 is a dark, vivid blue. Relative luminance 0.035; OKLCH L 33.6% C 0.147 H 266.7°. Best body text is #FFFFFF at 12.39:1 contrast (WCAG AA passes).

Color values

HEX#152B81
RGBrgb(21, 43, 129)
HSLhsl(228, 72%, 29%)
HSVhsv(228, 84%, 51%)
CMYKcmyk(83.7%, 66.7%, 0%, 49.4%)
CIE-LABlab(21.84, 25.90, -50.61)
CIE-LCHlch(21.84, 56.85, 297.10°)
OKLaboklab(33.63% -0.0085 -0.1465)
OKLCHoklch(33.63% 0.147 266.7)
XYZxyz(5.1342, 3.4716, 21.1641)
Luminance0.0347 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#152B81 #816B15
analogous
#156181 #152B81 #351581
triadic
#152B81 #81152B #2B8115
tetradic
#152B81 #811561 #816B15 #158135
square
#152B81 #811561 #816B15 #158135
split-complementary
#152B81 #813515 #618115
monochromatic
#04091A #0C194C #152B81 #1E3DB6 #3356DE

Accessibility & contrast

On white

12.39
#152B81 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#152B81 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #152B81
12.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##152B81#FFFFFF#000000##FFFFFF
##152B811.0012.391.6912.39
#FFFFFF12.391.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A84
Deuteranopia (green-blind)
#002F7F
Tritanopia (blue-blind)
#004252
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #152b81;
/* rgb */ color: rgb(21, 43, 129);
/* oklch */ color: oklch(33.6% 0.147 266.7);
Tailwind
colors: {
  custom: {
    50: '#6864a6',
    500: '#152b81',
    950: '#000000',
  },
}
SCSS
$custom: #152b81;
$custom-light: #6864a6;
$custom-dark: #000000;
JSON
{
  "hex": "#152b81",
  "rgb": {
    "r": 21,
    "g": 43,
    "b": 129
  },
  "hsl": {
    "h": 227.778,
    "s": 72,
    "l": 29.412
  },
  "oklch": {
    "l": 0.33626,
    "c": 0.14679,
    "h": 266.7
  },
  "luminance": 0.03472
}

Semantic roles & 50–950 ramp

primary
#152B81
secondary
#B69D3C
accent
#CA39EF
background
#F6F5FA
surface
#ECEAF4
border
#C7C6CE
text
#07050F
muted
#7A797F

Preview Lab

Preview with #152B81

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

Preview Lab → · Contrast checker → · Palette generator →

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