#152A52#152A52

#152A52 is a dark, moderate blue. Relative luminance 0.024; OKLCH L 29.2% C 0.078 H 261.9°. Best body text is #FFFFFF at 14.14:1 contrast (WCAG AA passes).

Color values

HEX#152A52
RGBrgb(21, 42, 82)
HSLhsl(219, 59%, 20%)
HSVhsv(219, 74%, 32%)
CMYKcmyk(74.4%, 48.8%, 0%, 67.8%)
CIE-LABlab(17.57, 7.09, -26.95)
CIE-LCHlch(17.57, 27.86, 284.74°)
OKLaboklab(29.17% -0.0109 -0.0771)
OKLCHoklch(29.17% 0.078 261.9)
XYZxyz(2.6597, 2.4243, 8.3088)
Luminance0.0243 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#152A52 #523D15
analogous
#154852 #152A52 #1E1552
triadic
#152A52 #52152A #2A5215
tetradic
#152A52 #521548 #523D15 #15521E
square
#152A52 #521548 #523D15 #15521E
split-complementary
#152A52 #521E15 #485215
monochromatic
#060C18 #091121 #152A52 #214383 #2E5CB3

Accessibility & contrast

On white

14.14
#152A52 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.49
#152A52 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #152A52
14.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##152A52#FFFFFF#000000##FFFFFF
##152A521.0014.141.4914.14
#FFFFFF14.141.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#162E54
Deuteranopia (green-blind)
#0B2851
Tritanopia (blue-blind)
#00333A
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #152a52;
/* rgb */ color: rgb(21, 42, 82);
/* oklch */ color: oklch(29.2% 0.078 261.9);
Tailwind
colors: {
  custom: {
    50: '#5b6383',
    500: '#152a52',
    950: '#000000',
  },
}
SCSS
$custom: #152a52;
$custom-light: #5b6383;
$custom-dark: #000000;
JSON
{
  "hex": "#152a52",
  "rgb": {
    "r": 21,
    "g": 42,
    "b": 82
  },
  "hsl": {
    "h": 219.344,
    "s": 59.223,
    "l": 20.196
  },
  "oklch": {
    "l": 0.29173,
    "c": 0.07783,
    "h": 261.9
  },
  "luminance": 0.02425
}

Semantic roles & 50–950 ramp

primary
#152A52
secondary
#8A6E39
accent
#AC45E2
background
#F5F5F8
surface
#E9EAEF
border
#C5C6CA
text
#04050A
muted
#79797C

Preview Lab

Preview with #152A52

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

Preview Lab → · Contrast checker → · Palette generator →

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