#152B52#152B52

#152B52 is a dark, moderate blue. Relative luminance 0.025; OKLCH L 29.4% C 0.076 H 260.9°. Best body text is #FFFFFF at 14.01:1 contrast (WCAG AA passes).

Color values

HEX#152B52
RGBrgb(21, 43, 82)
HSLhsl(218, 59%, 20%)
HSVhsv(218, 74%, 32%)
CMYKcmyk(74.4%, 47.6%, 0%, 67.8%)
CIE-LABlab(17.90, 6.35, -26.42)
CIE-LCHlch(17.90, 27.18, 283.52°)
OKLaboklab(29.43% -0.012 -0.0755)
OKLCHoklch(29.43% 0.076 260.9)
XYZxyz(2.6956, 2.4961, 8.3207)
Luminance0.0250 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#152B52 #523C15
analogous
#154952 #152B52 #1E1552
triadic
#152B52 #52152B #2B5215
tetradic
#152B52 #521549 #523C15 #15521E
square
#152B52 #521549 #523C15 #15521E
split-complementary
#152B52 #521E15 #495215
monochromatic
#060D18 #091121 #152B52 #214583 #2E5EB3

Accessibility & contrast

On white

14.01
#152B52 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.50
#152B52 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #152B52
14.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##152B52#FFFFFF#000000##FFFFFF
##152B521.0014.011.5014.01
#FFFFFF14.011.0021.001.00
#0000001.5021.001.0021.00
##FFFFFF14.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#182F53
Deuteranopia (green-blind)
#0E2951
Tritanopia (blue-blind)
#00343A
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #152b52;
/* rgb */ color: rgb(21, 43, 82);
/* oklch */ color: oklch(29.4% 0.076 260.9);
Tailwind
colors: {
  custom: {
    50: '#5b6383',
    500: '#152b52',
    950: '#000000',
  },
}
SCSS
$custom: #152b52;
$custom-light: #5b6383;
$custom-dark: #000000;
JSON
{
  "hex": "#152b52",
  "rgb": {
    "r": 21,
    "g": 43,
    "b": 82
  },
  "hsl": {
    "h": 218.361,
    "s": 59.223,
    "l": 20.196
  },
  "oklch": {
    "l": 0.29426,
    "c": 0.07645,
    "h": 260.9
  },
  "luminance": 0.02496
}

Semantic roles & 50–950 ramp

primary
#152B52
secondary
#8A6D39
accent
#AA45E2
background
#F5F5F8
surface
#E9EAEF
border
#C5C6CA
text
#04050A
muted
#79797C

Preview Lab

Preview with #152B52

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

Preview Lab → · Contrast checker → · Palette generator →

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