#152F5F#152F5F

#152F5F is a dark, moderate blue. Relative luminance 0.030; OKLCH L 31.4% C 0.091 H 261.4°. Best body text is #FFFFFF at 13.09:1 contrast (WCAG AA passes).

Color values

HEX#152F5F
RGBrgb(21, 47, 95)
HSLhsl(219, 64%, 23%)
HSVhsv(219, 78%, 37%)
CMYKcmyk(77.9%, 50.5%, 0%, 62.7%)
CIE-LABlab(20.12, 8.92, -31.52)
CIE-LCHlch(20.12, 32.75, 285.80°)
OKLaboklab(31.43% -0.0137 -0.0904)
OKLCHoklch(31.43% 0.091 261.4)
XYZxyz(3.3906, 3.0183, 11.2282)
Luminance0.0302 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#152F5F #5F4515
analogous
#15545F #152F5F #20155F
triadic
#152F5F #5F152F #2F5F15
tetradic
#152F5F #5F1554 #5F4515 #155F20
square
#152F5F #5F1554 #5F4515 #155F20
split-complementary
#152F5F #5F2015 #545F15
monochromatic
#060C19 #0A162D #152F5F #204891 #2B61C3

Accessibility & contrast

On white

13.09
#152F5F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.60
#152F5F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #152F5F
13.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##152F5F#FFFFFF#000000##FFFFFF
##152F5F1.0013.091.6013.09
#FFFFFF13.091.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#153461
Deuteranopia (green-blind)
#042D5E
Tritanopia (blue-blind)
#003A42
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #152f5f;
/* rgb */ color: rgb(21, 47, 95);
/* oklch */ color: oklch(31.4% 0.091 261.4);
Tailwind
colors: {
  custom: {
    50: '#5e678d',
    500: '#152f5f',
    950: '#000000',
  },
}
SCSS
$custom: #152f5f;
$custom-light: #5e678d;
$custom-dark: #000000;
JSON
{
  "hex": "#152f5f",
  "rgb": {
    "r": 21,
    "g": 47,
    "b": 95
  },
  "hsl": {
    "h": 218.919,
    "s": 63.793,
    "l": 22.745
  },
  "oklch": {
    "l": 0.31428,
    "c": 0.09143,
    "h": 261.4
  },
  "luminance": 0.03019
}

Semantic roles & 50–950 ramp

primary
#152F5F
secondary
#96763A
accent
#AD41E7
background
#F5F6F8
surface
#EAEBF0
border
#C6C6CB
text
#05060C
muted
#797A7D

Preview Lab

Preview with #152F5F

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

Preview Lab → · Contrast checker → · Palette generator →

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