#151F31#151F31

#151F31 is a very dark, muted blue. Relative luminance 0.014; OKLCH L 23.9% C 0.038 H 261.7°. Best body text is #FFFFFF at 16.51:1 contrast (WCAG AA passes).

Color values

HEX#151F31
RGBrgb(21, 31, 49)
HSLhsl(219, 40%, 14%)
HSVhsv(219, 57%, 19%)
CMYKcmyk(57.1%, 36.7%, 0%, 80.8%)
CIE-LABlab(11.70, 1.81, -13.30)
CIE-LCHlch(11.70, 13.42, 277.75°)
OKLaboklab(23.93% -0.0055 -0.0373)
OKLCHoklch(23.93% 0.038 261.7)
XYZxyz(1.3534, 1.3611, 3.0965)
Luminance0.0136 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#151F31 #312715
analogous
#152D31 #151F31 #191531
triadic
#151F31 #31151F #1F3115
tetradic
#151F31 #31152D #312715 #153119
square
#151F31 #31152D #312715 #153119
split-complementary
#151F31 #311915 #2D3115
monochromatic
#090E15 #090E15 #151F31 #273A5C #3A5587

Accessibility & contrast

On white

16.51
#151F31 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #151F31
16.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##151F31#FFFFFF#000000##FFFFFF
##151F311.0016.511.2716.51
#FFFFFF16.511.0021.001.00
#0000001.2721.001.0021.00
##FFFFFF16.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#182032
Deuteranopia (green-blind)
#151E31
Tritanopia (blue-blind)
#092325
Achromatopsia (no color)
#1F1F1F

Design tokens & code

CSS
--color: #151f31;
/* rgb */ color: rgb(21, 31, 49);
/* oklch */ color: oklch(23.9% 0.038 261.7);
Tailwind
colors: {
  custom: {
    50: '#545a69',
    500: '#151f31',
    950: '#000000',
  },
}
SCSS
$custom: #151f31;
$custom-light: #545a69;
$custom-dark: #000000;
JSON
{
  "hex": "#151f31",
  "rgb": {
    "r": 21,
    "g": 31,
    "b": 49
  },
  "hsl": {
    "h": 218.571,
    "s": 40,
    "l": 13.725
  },
  "oklch": {
    "l": 0.23928,
    "c": 0.03769,
    "h": 261.7
  },
  "luminance": 0.01361
}

Semantic roles & 50–950 ramp

primary
#151F31
secondary
#68573A
accent
#A558D0
background
#F4F5F6
surface
#E7E9EB
border
#C3C5C6
text
#030306
muted
#78787A

Preview Lab

Preview with #151F31

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

Preview Lab → · Contrast checker → · Palette generator →

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