#152C52#152C52

#152C52 is a dark, moderate blue. Relative luminance 0.026; OKLCH L 29.7% C 0.075 H 259.9°. Best body text is #FFFFFF at 13.87:1 contrast (WCAG AA passes).

Color values

HEX#152C52
RGBrgb(21, 44, 82)
HSLhsl(217, 59%, 20%)
HSVhsv(217, 74%, 32%)
CMYKcmyk(74.4%, 46.3%, 0%, 67.8%)
CIE-LABlab(18.23, 5.62, -25.89)
CIE-LCHlch(18.23, 26.50, 282.25°)
OKLaboklab(29.68% -0.0132 -0.0739)
OKLCHoklch(29.68% 0.075 259.9)
XYZxyz(2.7324, 2.5697, 8.3330)
Luminance0.0257 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#152C52 #523B15
analogous
#154A52 #152C52 #1C1552
triadic
#152C52 #52152C #2C5215
tetradic
#152C52 #52154A #523B15 #15521C
square
#152C52 #52154A #523B15 #15521C
split-complementary
#152C52 #521C15 #4A5215
monochromatic
#060D18 #091221 #152C52 #214683 #2E60B3

Accessibility & contrast

On white

13.87
#152C52 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #152C52
13.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##152C52#FFFFFF#000000##FFFFFF
##152C521.0013.871.5113.87
#FFFFFF13.871.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1A3053
Deuteranopia (green-blind)
#102A51
Tritanopia (blue-blind)
#00353B
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #152c52;
/* rgb */ color: rgb(21, 44, 82);
/* oklch */ color: oklch(29.7% 0.075 259.9);
Tailwind
colors: {
  custom: {
    50: '#5b6483',
    500: '#152c52',
    950: '#000000',
  },
}
SCSS
$custom: #152c52;
$custom-light: #5b6483;
$custom-dark: #000000;
JSON
{
  "hex": "#152c52",
  "rgb": {
    "r": 21,
    "g": 44,
    "b": 82
  },
  "hsl": {
    "h": 217.377,
    "s": 59.223,
    "l": 20.196
  },
  "oklch": {
    "l": 0.29681,
    "c": 0.07509,
    "h": 259.9
  },
  "luminance": 0.0257
}

Semantic roles & 50–950 ramp

primary
#152C52
secondary
#8A6B39
accent
#A745E2
background
#F5F5F8
surface
#E9EAEF
border
#C5C6CA
text
#04050A
muted
#79797C

Preview Lab

Preview with #152C52

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

Preview Lab → · Contrast checker → · Palette generator →

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