#152D57#152D57

#152D57 is a dark, moderate blue. Relative luminance 0.027; OKLCH L 30.3% C 0.082 H 260.7°. Best body text is #FFFFFF at 13.59:1 contrast (WCAG AA passes).

Color values

HEX#152D57
RGBrgb(21, 45, 87)
HSLhsl(218, 61%, 21%)
HSVhsv(218, 76%, 34%)
CMYKcmyk(75.9%, 48.3%, 0%, 65.9%)
CIE-LABlab(18.90, 7.00, -28.17)
CIE-LCHlch(18.90, 29.02, 283.95°)
OKLaboklab(30.31% -0.0132 -0.0806)
OKLCHoklch(30.31% 0.082 260.7)
XYZxyz(2.9673, 2.7240, 9.3844)
Luminance0.0272 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#152D57 #573F15
analogous
#154E57 #152D57 #1E1557
triadic
#152D57 #57152D #2D5715
tetradic
#152D57 #57154E #573F15 #15571E
square
#152D57 #57154E #573F15 #15571E
split-complementary
#152D57 #571E15 #4E5715
monochromatic
#060D19 #091326 #152D57 #214688 #2D60BA

Accessibility & contrast

On white

13.59
#152D57 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #152D57
13.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##152D57#FFFFFF#000000##FFFFFF
##152D571.0013.591.5413.59
#FFFFFF13.591.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#183159
Deuteranopia (green-blind)
#0C2B56
Tritanopia (blue-blind)
#00373D
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #152d57;
/* rgb */ color: rgb(21, 45, 87);
/* oklch */ color: oklch(30.3% 0.082 260.7);
Tailwind
colors: {
  custom: {
    50: '#5c6587',
    500: '#152d57',
    950: '#000000',
  },
}
SCSS
$custom: #152d57;
$custom-light: #5c6587;
$custom-dark: #000000;
JSON
{
  "hex": "#152d57",
  "rgb": {
    "r": 21,
    "g": 45,
    "b": 87
  },
  "hsl": {
    "h": 218.182,
    "s": 61.111,
    "l": 21.176
  },
  "oklch": {
    "l": 0.3031,
    "c": 0.08166,
    "h": 260.7
  },
  "luminance": 0.02724
}

Semantic roles & 50–950 ramp

primary
#152D57
secondary
#8F7039
accent
#AA44E4
background
#F5F6F8
surface
#E9EBEF
border
#C5C6CA
text
#04050B
muted
#797A7C

Preview Lab

Preview with #152D57

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

Preview Lab → · Contrast checker → · Palette generator →

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