#152C5F#152C5F

#152C5F is a dark, moderate blue. Relative luminance 0.028; OKLCH L 30.7% C 0.096 H 263.5°. Best body text is #FFFFFF at 13.48:1 contrast (WCAG AA passes).

Color values

HEX#152C5F
RGBrgb(21, 44, 95)
HSLhsl(221, 64%, 23%)
HSVhsv(221, 78%, 37%)
CMYKcmyk(77.9%, 53.7%, 0%, 62.7%)
CIE-LABlab(19.17, 11.11, -33.04)
CIE-LCHlch(19.17, 34.86, 288.58°)
OKLaboklab(30.7% -0.0108 -0.095)
OKLCHoklch(30.7% 0.096 263.5)
XYZxyz(3.2748, 2.7867, 11.1895)
Luminance0.0279 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#152C5F #5F4815
analogous
#15515F #152C5F #23155F
triadic
#152C5F #5F152C #2C5F15
tetradic
#152C5F #5F1551 #5F4815 #155F23
square
#152C5F #5F1551 #5F4815 #155F23
split-complementary
#152C5F #5F2315 #515F15
monochromatic
#060C19 #0A152D #152C5F #204391 #2B5AC3

Accessibility & contrast

On white

13.48
#152C5F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.56
#152C5F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #152C5F
13.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##152C5F#FFFFFF#000000##FFFFFF
##152C5F1.0013.481.5613.48
#FFFFFF13.481.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0E3261
Deuteranopia (green-blind)
#002B5E
Tritanopia (blue-blind)
#003841
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #152c5f;
/* rgb */ color: rgb(21, 44, 95);
/* oklch */ color: oklch(30.7% 0.096 263.5);
Tailwind
colors: {
  custom: {
    50: '#5e648d',
    500: '#152c5f',
    950: '#000000',
  },
}
SCSS
$custom: #152c5f;
$custom-light: #5e648d;
$custom-dark: #000000;
JSON
{
  "hex": "#152c5f",
  "rgb": {
    "r": 21,
    "g": 44,
    "b": 95
  },
  "hsl": {
    "h": 221.351,
    "s": 63.793,
    "l": 22.745
  },
  "oklch": {
    "l": 0.30702,
    "c": 0.09557,
    "h": 263.5
  },
  "luminance": 0.02787
}

Semantic roles & 50–950 ramp

primary
#152C5F
secondary
#96793A
accent
#B341E7
background
#F5F5F8
surface
#EAEAF0
border
#C6C6CB
text
#05050C
muted
#79797D

Preview Lab

Preview with #152C5F

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

Preview Lab → · Contrast checker → · Palette generator →

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