#151D54#151D54

#151D54 is a dark, moderate blue. Relative luminance 0.017; OKLCH L 26.3% C 0.100 H 271.4°. Best body text is #FFFFFF at 15.72:1 contrast (WCAG AA passes).

Color values

HEX#151D54
RGBrgb(21, 29, 84)
HSLhsl(232, 60%, 21%)
HSVhsv(232, 75%, 33%)
CMYKcmyk(75%, 65.5%, 0%, 67.1%)
CIE-LABlab(13.70, 17.62, -34.56)
CIE-LCHlch(13.70, 38.79, 297.01°)
OKLaboklab(26.29% 0.0024 -0.0997)
OKLCHoklch(26.29% 0.1 271.4)
XYZxyz(2.3483, 1.6780, 8.5859)
Luminance0.0168 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#151D54 #544C15
analogous
#153C54 #151D54 #2C1554
triadic
#151D54 #54151D #1D5415
tetradic
#151D54 #54153C #544C15 #15542C
square
#151D54 #54153C #544C15 #15542C
split-complementary
#151D54 #542C15 #3C5415
monochromatic
#060818 #090C23 #151D54 #212E85 #2D3FB6

Accessibility & contrast

On white

15.72
#151D54 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.34
#151D54 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #151D54
15.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##151D54#FFFFFF#000000##FFFFFF
##151D541.0015.721.3415.72
#FFFFFF15.721.0021.001.00
#0000001.3421.001.0021.00
##FFFFFF15.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002656
Deuteranopia (green-blind)
#002053
Tritanopia (blue-blind)
#002B35
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #151d54;
/* rgb */ color: rgb(21, 29, 84);
/* oklch */ color: oklch(26.3% 0.100 271.4);
Tailwind
colors: {
  custom: {
    50: '#5c5885',
    500: '#151d54',
    950: '#000000',
  },
}
SCSS
$custom: #151d54;
$custom-light: #5c5885;
$custom-dark: #000000;
JSON
{
  "hex": "#151d54",
  "rgb": {
    "r": 21,
    "g": 29,
    "b": 84
  },
  "hsl": {
    "h": 232.381,
    "s": 60,
    "l": 20.588
  },
  "oklch": {
    "l": 0.26293,
    "c": 0.0997,
    "h": 271.4
  },
  "luminance": 0.01678
}

Semantic roles & 50–950 ramp

primary
#151D54
secondary
#8C8139
accent
#CF45E3
background
#F5F5F8
surface
#E9E9EF
border
#C5C5CA
text
#04030B
muted
#79787C

Preview Lab

Preview with #151D54

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

Preview Lab → · Contrast checker → · Palette generator →

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