#152D52#152D52

#152D52 is a dark, moderate blue. Relative luminance 0.026; OKLCH L 29.9% C 0.074 H 258.8°. Best body text is #FFFFFF at 13.73:1 contrast (WCAG AA passes).

Color values

HEX#152D52
RGBrgb(21, 45, 82)
HSLhsl(216, 59%, 20%)
HSVhsv(216, 74%, 32%)
CMYKcmyk(74.4%, 45.1%, 0%, 67.8%)
CIE-LABlab(18.56, 4.89, -25.37)
CIE-LCHlch(18.56, 25.83, 280.92°)
OKLaboklab(29.94% -0.0143 -0.0724)
OKLCHoklch(29.94% 0.074 258.8)
XYZxyz(2.7701, 2.6451, 8.3456)
Luminance0.0265 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#152D52 #523A15
analogous
#154C52 #152D52 #1B1552
triadic
#152D52 #52152D #2D5215
tetradic
#152D52 #52154C #523A15 #15521B
square
#152D52 #52154C #523A15 #15521B
split-complementary
#152D52 #521B15 #4C5215
monochromatic
#060D18 #091221 #152D52 #214883 #2E62B3

Accessibility & contrast

On white

13.73
#152D52 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.53
#152D52 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #152D52
13.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##152D52#FFFFFF#000000##FFFFFF
##152D521.0013.731.5313.73
#FFFFFF13.731.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1C3053
Deuteranopia (green-blind)
#122B51
Tritanopia (blue-blind)
#00363B
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #152d52;
/* rgb */ color: rgb(21, 45, 82);
/* oklch */ color: oklch(29.9% 0.074 258.8);
Tailwind
colors: {
  custom: {
    50: '#5b6583',
    500: '#152d52',
    950: '#000000',
  },
}
SCSS
$custom: #152d52;
$custom-light: #5b6583;
$custom-dark: #000000;
JSON
{
  "hex": "#152d52",
  "rgb": {
    "r": 21,
    "g": 45,
    "b": 82
  },
  "hsl": {
    "h": 216.393,
    "s": 59.223,
    "l": 20.196
  },
  "oklch": {
    "l": 0.29937,
    "c": 0.07376,
    "h": 258.8
  },
  "luminance": 0.02645
}

Semantic roles & 50–950 ramp

primary
#152D52
secondary
#8A6A39
accent
#A545E2
background
#F5F6F8
surface
#E9EBEF
border
#C5C6CA
text
#04050A
muted
#797A7C

Preview Lab

Preview with #152D52

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

Preview Lab → · Contrast checker → · Palette generator →

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