#151D40#151D40

#151D40 is a very dark, moderate blue. Relative luminance 0.014; OKLCH L 24.5% C 0.067 H 271.0°. Best body text is #FFFFFF at 16.39:1 contrast (WCAG AA passes).

Color values

HEX#151D40
RGBrgb(21, 29, 64)
HSLhsl(229, 51%, 17%)
HSVhsv(229, 67%, 25%)
CMYKcmyk(67.2%, 54.7%, 0%, 74.9%)
CIE-LABlab(12.01, 9.34, -23.48)
CIE-LCHlch(12.01, 25.27, 291.69°)
OKLaboklab(24.5% 0.0012 -0.0671)
OKLCHoklch(24.5% 0.067 271)
XYZxyz(1.6737, 1.4082, 5.0331)
Luminance0.0141 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#151D40 #403815
analogous
#153340 #151D40 #231540
triadic
#151D40 #40151D #1D4015
tetradic
#151D40 #401533 #403815 #154023
square
#151D40 #401533 #403815 #154023
split-complementary
#151D40 #402315 #334015
monochromatic
#080A17 #080A17 #151D40 #24326E #33479C

Accessibility & contrast

On white

16.39
#151D40 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.28
#151D40 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #151D40
16.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##151D40#FFFFFF#000000##FFFFFF
##151D401.0016.391.2816.39
#FFFFFF16.391.0021.001.00
#0000001.2821.001.0021.00
##FFFFFF16.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0C2241
Deuteranopia (green-blind)
#051E3F
Tritanopia (blue-blind)
#00252B
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #151d40;
/* rgb */ color: rgb(21, 29, 64);
/* oklch */ color: oklch(24.5% 0.067 271.0);
Tailwind
colors: {
  custom: {
    50: '#575875',
    500: '#151d40',
    950: '#000000',
  },
}
SCSS
$custom: #151d40;
$custom-light: #575875;
$custom-dark: #000000;
JSON
{
  "hex": "#151d40",
  "rgb": {
    "r": 21,
    "g": 29,
    "b": 64
  },
  "hsl": {
    "h": 228.837,
    "s": 50.588,
    "l": 16.667
  },
  "oklch": {
    "l": 0.24495,
    "c": 0.06709,
    "h": 271
  },
  "luminance": 0.01408
}

Semantic roles & 50–950 ramp

primary
#151D40
secondary
#786C39
accent
#C04EDA
background
#F5F5F7
surface
#E9E9ED
border
#C5C5C8
text
#030308
muted
#78787B

Preview Lab

Preview with #151D40

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

Preview Lab → · Contrast checker → · Palette generator →

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