#152B5D#152B5D

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

Color values

HEX#152B5D
RGBrgb(21, 43, 93)
HSLhsl(222, 63%, 22%)
HSVhsv(222, 77%, 36%)
CMYKcmyk(77.4%, 53.8%, 0%, 63.5%)
CIE-LABlab(18.70, 11.00, -32.48)
CIE-LCHlch(18.70, 34.29, 288.71°)
OKLaboklab(30.3% -0.0101 -0.0933)
OKLCHoklch(30.3% 0.094 263.8)
XYZxyz(3.1482, 2.6772, 10.7046)
Luminance0.0268 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#152B5D #5D4715
analogous
#154F5D #152B5D #23155D
triadic
#152B5D #5D152B #2B5D15
tetradic
#152B5D #5D154F #5D4715 #155D23
square
#152B5D #5D154F #5D4715 #155D23
split-complementary
#152B5D #5D2315 #4F5D15
monochromatic
#060C19 #0A142B #152B5D #20428F #2C59C1

Accessibility & contrast

On white

13.68
#152B5D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #152B5D
13.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##152B5D#FFFFFF#000000##FFFFFF
##152B5D1.0013.681.5413.68
#FFFFFF13.681.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0D315F
Deuteranopia (green-blind)
#002A5C
Tritanopia (blue-blind)
#00373F
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #152b5d;
/* rgb */ color: rgb(21, 43, 93);
/* oklch */ color: oklch(30.3% 0.094 263.8);
Tailwind
colors: {
  custom: {
    50: '#5d638b',
    500: '#152b5d',
    950: '#000000',
  },
}
SCSS
$custom: #152b5d;
$custom-light: #5d638b;
$custom-dark: #000000;
JSON
{
  "hex": "#152b5d",
  "rgb": {
    "r": 21,
    "g": 43,
    "b": 93
  },
  "hsl": {
    "h": 221.667,
    "s": 63.158,
    "l": 22.353
  },
  "oklch": {
    "l": 0.30297,
    "c": 0.09384,
    "h": 263.8
  },
  "luminance": 0.02677
}

Semantic roles & 50–950 ramp

primary
#152B5D
secondary
#947939
accent
#B442E6
background
#F5F5F8
surface
#E9EAF0
border
#C5C6CB
text
#05050C
muted
#79797D

Preview Lab

Preview with #152B5D

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

Preview Lab → · Contrast checker → · Palette generator →

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