#152B54#152B54

#152B54 is a dark, moderate blue. Relative luminance 0.025; OKLCH L 29.6% C 0.080 H 261.6°. Best body text is #FFFFFF at 13.95:1 contrast (WCAG AA passes).

Color values

HEX#152B54
RGBrgb(21, 43, 84)
HSLhsl(219, 60%, 21%)
HSVhsv(219, 75%, 33%)
CMYKcmyk(75%, 48.8%, 0%, 67.1%)
CIE-LABlab(18.04, 7.20, -27.54)
CIE-LCHlch(18.04, 28.47, 284.64°)
OKLaboklab(29.58% -0.0116 -0.0788)
OKLCHoklch(29.58% 0.08 261.6)
XYZxyz(2.7728, 2.5270, 8.7274)
Luminance0.0253 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#152B54 #543E15
analogous
#154A54 #152B54 #1F1554
triadic
#152B54 #54152B #2B5415
tetradic
#152B54 #54154A #543E15 #15541F
square
#152B54 #54154A #543E15 #15541F
split-complementary
#152B54 #541F15 #4A5415
monochromatic
#060D18 #091223 #152B54 #214485 #2D5DB6

Accessibility & contrast

On white

13.95
#152B54 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.51
#152B54 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #152B54
13.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##152B54#FFFFFF#000000##FFFFFF
##152B541.0013.951.5113.95
#FFFFFF13.951.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#172F56
Deuteranopia (green-blind)
#0B2953
Tritanopia (blue-blind)
#00353B
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #152b54;
/* rgb */ color: rgb(21, 43, 84);
/* oklch */ color: oklch(29.6% 0.080 261.6);
Tailwind
colors: {
  custom: {
    50: '#5b6384',
    500: '#152b54',
    950: '#000000',
  },
}
SCSS
$custom: #152b54;
$custom-light: #5b6384;
$custom-dark: #000000;
JSON
{
  "hex": "#152b54",
  "rgb": {
    "r": 21,
    "g": 43,
    "b": 84
  },
  "hsl": {
    "h": 219.048,
    "s": 60,
    "l": 20.588
  },
  "oklch": {
    "l": 0.29578,
    "c": 0.07964,
    "h": 261.6
  },
  "luminance": 0.02527
}

Semantic roles & 50–950 ramp

primary
#152B54
secondary
#8C6F39
accent
#AC45E3
background
#F5F5F8
surface
#E9EAEF
border
#C5C6CA
text
#04050B
muted
#79797C

Preview Lab

Preview with #152B54

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

Preview Lab → · Contrast checker → · Palette generator →

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