#151F5D#151F5D

#151F5D is a dark, moderate blue. Relative luminance 0.019; OKLCH L 27.6% C 0.111 H 270.3°. Best body text is #FFFFFF at 15.15:1 contrast (WCAG AA passes).

Color values

HEX#151F5D
RGBrgb(21, 31, 93)
HSLhsl(232, 63%, 22%)
HSVhsv(232, 77%, 36%)
CMYKcmyk(77.4%, 66.7%, 0%, 63.5%)
CIE-LABlab(15.11, 19.85, -38.31)
CIE-LCHlch(15.11, 43.14, 297.39°)
OKLaboklab(27.6% 0.0005 -0.1106)
OKLCHoklch(27.6% 0.111 270.3)
XYZxyz(2.7744, 1.9294, 10.5800)
Luminance0.0193 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#151F5D #5D5315
analogous
#15435D #151F5D #2F155D
triadic
#151F5D #5D151F #1F5D15
tetradic
#151F5D #5D1543 #5D5315 #155D2F
square
#151F5D #5D1543 #5D5315 #155D2F
split-complementary
#151F5D #5D2F15 #435D15
monochromatic
#060819 #0A0E2B #151F5D #20308F #2C40C1

Accessibility & contrast

On white

15.15
#151F5D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.39
#151F5D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #151F5D
15.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##151F5D#FFFFFF#000000##FFFFFF
##151F5D1.0015.151.3915.15
#FFFFFF15.151.0021.001.00
#0000001.3921.001.0021.00
##FFFFFF15.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00295F
Deuteranopia (green-blind)
#00235C
Tritanopia (blue-blind)
#002F3A
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #151f5d;
/* rgb */ color: rgb(21, 31, 93);
/* oklch */ color: oklch(27.6% 0.111 270.3);
Tailwind
colors: {
  custom: {
    50: '#5e5a8c',
    500: '#151f5d',
    950: '#000000',
  },
}
SCSS
$custom: #151f5d;
$custom-light: #5e5a8c;
$custom-dark: #000000;
JSON
{
  "hex": "#151f5d",
  "rgb": {
    "r": 21,
    "g": 31,
    "b": 93
  },
  "hsl": {
    "h": 231.667,
    "s": 63.158,
    "l": 22.353
  },
  "oklch": {
    "l": 0.27602,
    "c": 0.11063,
    "h": 270.3
  },
  "luminance": 0.0193
}

Semantic roles & 50–950 ramp

primary
#151F5D
secondary
#948839
accent
#CF42E6
background
#F5F5F8
surface
#EAE9F0
border
#C6C5CB
text
#05030C
muted
#79787D

Preview Lab

Preview with #151F5D

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

Preview Lab → · Contrast checker → · Palette generator →

#151F5D Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva