#152B5F#152B5F

#152B5F is a dark, moderate blue. Relative luminance 0.027; OKLCH L 30.5% C 0.097 H 264.2°. Best body text is #FFFFFF at 13.61:1 contrast (WCAG AA passes).

Color values

HEX#152B5F
RGBrgb(21, 43, 95)
HSLhsl(222, 64%, 23%)
HSVhsv(222, 78%, 37%)
CMYKcmyk(77.9%, 54.7%, 0%, 62.7%)
CIE-LABlab(18.86, 11.85, -33.55)
CIE-LCHlch(18.86, 35.58, 289.45°)
OKLaboklab(30.46% -0.0098 -0.0965)
OKLCHoklch(30.46% 0.097 264.2)
XYZxyz(3.2380, 2.7131, 11.1773)
Luminance0.0271 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#152B5F #5F4915
analogous
#15505F #152B5F #24155F
triadic
#152B5F #5F152B #2B5F15
tetradic
#152B5F #5F1550 #5F4915 #155F24
square
#152B5F #5F1550 #5F4915 #155F24
split-complementary
#152B5F #5F2415 #505F15
monochromatic
#060B19 #0A142D #152B5F #204291 #2B58C3

Accessibility & contrast

On white

13.61
#152B5F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #152B5F
13.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##152B5F#FFFFFF#000000##FFFFFF
##152B5F1.0013.611.5413.61
#FFFFFF13.611.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.611.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #152b5f;
/* rgb */ color: rgb(21, 43, 95);
/* oklch */ color: oklch(30.5% 0.097 264.2);
Tailwind
colors: {
  custom: {
    50: '#5e638d',
    500: '#152b5f',
    950: '#000000',
  },
}
SCSS
$custom: #152b5f;
$custom-light: #5e638d;
$custom-dark: #000000;
JSON
{
  "hex": "#152b5f",
  "rgb": {
    "r": 21,
    "g": 43,
    "b": 95
  },
  "hsl": {
    "h": 222.162,
    "s": 63.793,
    "l": 22.745
  },
  "oklch": {
    "l": 0.30464,
    "c": 0.09696,
    "h": 264.2
  },
  "luminance": 0.02713
}

Semantic roles & 50–950 ramp

primary
#152B5F
secondary
#967B3A
accent
#B641E7
background
#F5F5F8
surface
#EAEAF0
border
#C6C6CB
text
#05050C
muted
#79797D

Preview Lab

Preview with #152B5F

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

Preview Lab → · Contrast checker → · Palette generator →

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