#151F2F#151F2F

#151F2F is a very dark, muted blue. Relative luminance 0.013; OKLCH L 23.8% C 0.034 H 259.6°. Best body text is #FFFFFF at 16.55:1 contrast (WCAG AA passes).

Color values

HEX#151F2F
RGBrgb(21, 31, 47)
HSLhsl(217, 38%, 13%)
HSVhsv(217, 55%, 18%)
CMYKcmyk(55.3%, 34%, 0%, 81.6%)
CIE-LABlab(11.58, 1.05, -12.03)
CIE-LCHlch(11.58, 12.07, 275.00°)
OKLaboklab(23.8% -0.0062 -0.0336)
OKLCHoklch(23.8% 0.034 259.6)
XYZxyz(1.3122, 1.3446, 2.8792)
Luminance0.0135 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#151F2F #2F2515
analogous
#152C2F #151F2F #18152F
triadic
#151F2F #2F151F #1F2F15
tetradic
#151F2F #2F152C #2F2515 #152F18
square
#151F2F #2F152C #2F2515 #152F18
split-complementary
#151F2F #2F1815 #2C2F15
monochromatic
#090E15 #090E15 #151F2F #283B59 #3B5784

Accessibility & contrast

On white

16.55
#151F2F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.27
#151F2F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #151F2F
16.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##151F2F#FFFFFF#000000##FFFFFF
##151F2F1.0016.551.2716.55
#FFFFFF16.551.0021.001.00
#0000001.2721.001.0021.00
##FFFFFF16.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#192030
Deuteranopia (green-blind)
#161E2F
Tritanopia (blue-blind)
#0B2225
Achromatopsia (no color)
#1F1F1F

Design tokens & code

CSS
--color: #151f2f;
/* rgb */ color: rgb(21, 31, 47);
/* oklch */ color: oklch(23.8% 0.034 259.6);
Tailwind
colors: {
  custom: {
    50: '#545a67',
    500: '#151f2f',
    950: '#000000',
  },
}
SCSS
$custom: #151f2f;
$custom-light: #545a67;
$custom-dark: #000000;
JSON
{
  "hex": "#151f2f",
  "rgb": {
    "r": 21,
    "g": 31,
    "b": 47
  },
  "hsl": {
    "h": 216.923,
    "s": 38.235,
    "l": 13.333
  },
  "oklch": {
    "l": 0.23803,
    "c": 0.0342,
    "h": 259.6
  },
  "luminance": 0.01345
}

Semantic roles & 50–950 ramp

primary
#151F2F
secondary
#65553B
accent
#A15ACE
background
#F4F5F6
surface
#E7E9EB
border
#C3C5C6
text
#020306
muted
#78787A

Preview Lab

Preview with #151F2F

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

Preview Lab → · Contrast checker → · Palette generator →

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