#152D5F#152D5F

#152D5F is a dark, moderate blue. Relative luminance 0.029; OKLCH L 30.9% C 0.094 H 262.8°. Best body text is #FFFFFF at 13.36:1 contrast (WCAG AA passes).

Color values

HEX#152D5F
RGBrgb(21, 45, 95)
HSLhsl(221, 64%, 23%)
HSVhsv(221, 78%, 37%)
CMYKcmyk(77.9%, 52.6%, 0%, 62.7%)
CIE-LABlab(19.48, 10.38, -32.54)
CIE-LCHlch(19.48, 34.15, 287.69°)
OKLaboklab(30.94% -0.0117 -0.0934)
OKLCHoklch(30.94% 0.094 262.8)
XYZxyz(3.3125, 2.8621, 11.2021)
Luminance0.0286 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#152D5F #5F4715
analogous
#15525F #152D5F #22155F
triadic
#152D5F #5F152D #2D5F15
tetradic
#152D5F #5F1552 #5F4715 #155F22
square
#152D5F #5F1552 #5F4715 #155F22
split-complementary
#152D5F #5F2215 #525F15
monochromatic
#060C19 #0A152D #152D5F #204591 #2B5CC3

Accessibility & contrast

On white

13.36
#152D5F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.57
#152D5F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #152D5F
13.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##152D5F#FFFFFF#000000##FFFFFF
##152D5F1.0013.361.5713.36
#FFFFFF13.361.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#103361
Deuteranopia (green-blind)
#002C5E
Tritanopia (blue-blind)
#003941
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #152d5f;
/* rgb */ color: rgb(21, 45, 95);
/* oklch */ color: oklch(30.9% 0.094 262.8);
Tailwind
colors: {
  custom: {
    50: '#5e658d',
    500: '#152d5f',
    950: '#000000',
  },
}
SCSS
$custom: #152d5f;
$custom-light: #5e658d;
$custom-dark: #000000;
JSON
{
  "hex": "#152d5f",
  "rgb": {
    "r": 21,
    "g": 45,
    "b": 95
  },
  "hsl": {
    "h": 220.541,
    "s": 63.793,
    "l": 22.745
  },
  "oklch": {
    "l": 0.30942,
    "c": 0.09417,
    "h": 262.8
  },
  "luminance": 0.02862
}

Semantic roles & 50–950 ramp

primary
#152D5F
secondary
#96783A
accent
#B141E7
background
#F5F6F8
surface
#EAEBF0
border
#C6C6CB
text
#05050C
muted
#797A7D

Preview Lab

Preview with #152D5F

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

Preview Lab → · Contrast checker → · Palette generator →

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