#151C5F#151C5F

#151C5F is a dark, moderate blue. Relative luminance 0.018; OKLCH L 27.2% C 0.118 H 271.3°. Best body text is #FFFFFF at 15.40:1 contrast (WCAG AA passes).

Color values

HEX#151C5F
RGBrgb(21, 28, 95)
HSLhsl(234, 64%, 23%)
HSVhsv(234, 78%, 37%)
CMYKcmyk(77.9%, 70.5%, 0%, 62.7%)
CIE-LABlab(14.49, 22.81, -40.66)
CIE-LCHlch(14.49, 46.62, 299.29°)
OKLaboklab(27.21% 0.0027 -0.1175)
OKLCHoklch(27.21% 0.118 271.3)
XYZxyz(2.7894, 1.8159, 11.0277)
Luminance0.0182 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#151C5F #5F5815
analogous
#15415F #151C5F #33155F
triadic
#151C5F #5F151C #1C5F15
tetradic
#151C5F #5F1541 #5F5815 #155F33
square
#151C5F #5F1541 #5F5815 #155F33
split-complementary
#151C5F #5F3315 #415F15
monochromatic
#060719 #0A0D2D #151C5F #202B91 #2B3AC3

Accessibility & contrast

On white

15.40
#151C5F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.36
#151C5F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #151C5F
15.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##151C5F#FFFFFF#000000##FFFFFF
##151C5F1.0015.401.3615.40
#FFFFFF15.401.0021.001.00
#0000001.3621.001.0021.00
##FFFFFF15.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002861
Deuteranopia (green-blind)
#00215E
Tritanopia (blue-blind)
#002E3A
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #151c5f;
/* rgb */ color: rgb(21, 28, 95);
/* oklch */ color: oklch(27.2% 0.118 271.3);
Tailwind
colors: {
  custom: {
    50: '#5f588d',
    500: '#151c5f',
    950: '#000000',
  },
}
SCSS
$custom: #151c5f;
$custom-light: #5f588d;
$custom-dark: #000000;
JSON
{
  "hex": "#151c5f",
  "rgb": {
    "r": 21,
    "g": 28,
    "b": 95
  },
  "hsl": {
    "h": 234.324,
    "s": 63.793,
    "l": 22.745
  },
  "oklch": {
    "l": 0.27206,
    "c": 0.11758,
    "h": 271.3
  },
  "luminance": 0.01816
}

Semantic roles & 50–950 ramp

primary
#151C5F
secondary
#968E3A
accent
#D741E7
background
#F6F5F8
surface
#EBE9F0
border
#C6C5CB
text
#05030C
muted
#7A787D

Preview Lab

Preview with #151C5F

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

Preview Lab → · Contrast checker → · Palette generator →

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