#152D54#152D54

#152D54 is a dark, moderate blue. Relative luminance 0.027; OKLCH L 30.1% C 0.077 H 259.6°. Best body text is #FFFFFF at 13.68:1 contrast (WCAG AA passes).

Color values

HEX#152D54
RGBrgb(21, 45, 84)
HSLhsl(217, 60%, 21%)
HSVhsv(217, 75%, 33%)
CMYKcmyk(75%, 46.4%, 0%, 67.1%)
CIE-LABlab(18.70, 5.73, -26.49)
CIE-LCHlch(18.70, 27.11, 282.21°)
OKLaboklab(30.08% -0.0138 -0.0757)
OKLCHoklch(30.08% 0.077 259.6)
XYZxyz(2.8473, 2.6760, 8.7522)
Luminance0.0268 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#152D54 #543C15
analogous
#154C54 #152D54 #1C1554
triadic
#152D54 #54152D #2D5415
tetradic
#152D54 #54154C #543C15 #15541C
square
#152D54 #54154C #543C15 #15541C
split-complementary
#152D54 #541C15 #4C5415
monochromatic
#060D18 #091323 #152D54 #214785 #2D61B6

Accessibility & contrast

On white

13.68
#152D54 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.54
#152D54 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #152D54
13.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##152D54#FFFFFF#000000##FFFFFF
##152D541.0013.681.5413.68
#FFFFFF13.681.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1A3156
Deuteranopia (green-blind)
#102B53
Tritanopia (blue-blind)
#00363C
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #152d54;
/* rgb */ color: rgb(21, 45, 84);
/* oklch */ color: oklch(30.1% 0.077 259.6);
Tailwind
colors: {
  custom: {
    50: '#5b6584',
    500: '#152d54',
    950: '#000000',
  },
}
SCSS
$custom: #152d54;
$custom-light: #5b6584;
$custom-dark: #000000;
JSON
{
  "hex": "#152d54",
  "rgb": {
    "r": 21,
    "g": 45,
    "b": 84
  },
  "hsl": {
    "h": 217.143,
    "s": 60,
    "l": 20.588
  },
  "oklch": {
    "l": 0.30084,
    "c": 0.07692,
    "h": 259.6
  },
  "luminance": 0.02676
}

Semantic roles & 50–950 ramp

primary
#152D54
secondary
#8C6C39
accent
#A745E3
background
#F5F6F8
surface
#E9EBEF
border
#C5C6CA
text
#04050B
muted
#797A7C

Preview Lab

Preview with #152D54

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

Preview Lab → · Contrast checker → · Palette generator →

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