#152D5E#152D5E

#152D5E is a dark, moderate blue. Relative luminance 0.028; OKLCH L 30.9% C 0.093 H 262.6°. Best body text is #FFFFFF at 13.39:1 contrast (WCAG AA passes).

Color values

HEX#152D5E
RGBrgb(21, 45, 94)
HSLhsl(220, 63%, 23%)
HSVhsv(220, 78%, 37%)
CMYKcmyk(77.7%, 52.1%, 0%, 63.1%)
CIE-LABlab(19.41, 9.95, -32.00)
CIE-LCHlch(19.41, 33.51, 287.28°)
OKLaboklab(30.86% -0.0119 -0.0919)
OKLCHoklch(30.86% 0.093 262.6)
XYZxyz(3.2673, 2.8440, 10.9643)
Luminance0.0284 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#152D5E #5E4615
analogous
#15515E #152D5E #22155E
triadic
#152D5E #5E152D #2D5E15
tetradic
#152D5E #5E1551 #5E4615 #155E22
square
#152D5E #5E1551 #5E4615 #155E22
split-complementary
#152D5E #5E2215 #515E15
monochromatic
#060C19 #0A152C #152D5E #204590 #2B5DC2

Accessibility & contrast

On white

13.39
#152D5E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #152D5E
13.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##152D5E#FFFFFF#000000##FFFFFF
##152D5E1.0013.391.5713.39
#FFFFFF13.391.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.391.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #152d5e;
/* rgb */ color: rgb(21, 45, 94);
/* oklch */ color: oklch(30.9% 0.093 262.6);
Tailwind
colors: {
  custom: {
    50: '#5e658c',
    500: '#152d5e',
    950: '#000000',
  },
}
SCSS
$custom: #152d5e;
$custom-light: #5e658c;
$custom-dark: #000000;
JSON
{
  "hex": "#152d5e",
  "rgb": {
    "r": 21,
    "g": 45,
    "b": 94
  },
  "hsl": {
    "h": 220.274,
    "s": 63.478,
    "l": 22.549
  },
  "oklch": {
    "l": 0.30861,
    "c": 0.09263,
    "h": 262.6
  },
  "luminance": 0.02844
}

Semantic roles & 50–950 ramp

primary
#152D5E
secondary
#957739
accent
#B041E7
background
#F5F6F8
surface
#EAEBF0
border
#C6C6CB
text
#05050C
muted
#797A7D

Preview Lab

Preview with #152D5E

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

Preview Lab → · Contrast checker → · Palette generator →

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