#152F57#152F57

#152F57 is a dark, moderate blue. Relative luminance 0.029; OKLCH L 30.8% C 0.079 H 258.8°. Best body text is #FFFFFF at 13.32:1 contrast (WCAG AA passes).

Color values

HEX#152F57
RGBrgb(21, 47, 87)
HSLhsl(216, 61%, 21%)
HSVhsv(216, 76%, 34%)
CMYKcmyk(75.9%, 46%, 0%, 65.9%)
CIE-LABlab(19.56, 5.54, -27.12)
CIE-LCHlch(19.56, 27.68, 281.55°)
OKLaboklab(30.82% -0.0153 -0.0775)
OKLCHoklch(30.82% 0.079 258.8)
XYZxyz(3.0455, 2.8803, 9.4104)
Luminance0.0288 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#152F57 #573D15
analogous
#155057 #152F57 #1C1557
triadic
#152F57 #57152F #2F5715
tetradic
#152F57 #571550 #573D15 #15571C
square
#152F57 #571550 #573D15 #15571C
split-complementary
#152F57 #571C15 #505715
monochromatic
#060D19 #091426 #152F57 #214A88 #2D64BA

Accessibility & contrast

On white

13.32
#152F57 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.58
#152F57 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #152F57
13.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##152F57#FFFFFF#000000##FFFFFF
##152F571.0013.321.5813.32
#FFFFFF13.321.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1C3359
Deuteranopia (green-blind)
#112D56
Tritanopia (blue-blind)
#00383E
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #152f57;
/* rgb */ color: rgb(21, 47, 87);
/* oklch */ color: oklch(30.8% 0.079 258.8);
Tailwind
colors: {
  custom: {
    50: '#5c6787',
    500: '#152f57',
    950: '#000000',
  },
}
SCSS
$custom: #152f57;
$custom-light: #5c6787;
$custom-dark: #000000;
JSON
{
  "hex": "#152f57",
  "rgb": {
    "r": 21,
    "g": 47,
    "b": 87
  },
  "hsl": {
    "h": 216.364,
    "s": 61.111,
    "l": 21.176
  },
  "oklch": {
    "l": 0.30816,
    "c": 0.07897,
    "h": 258.8
  },
  "luminance": 0.02881
}

Semantic roles & 50–950 ramp

primary
#152F57
secondary
#8F6D39
accent
#A544E4
background
#F5F6F8
surface
#E9EBEF
border
#C5C6CA
text
#04060B
muted
#797A7C

Preview Lab

Preview with #152F57

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

Preview Lab → · Contrast checker → · Palette generator →

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