#151F38#151F38

#151F38 is a very dark, muted blue. Relative luminance 0.014; OKLCH L 24.4% C 0.050 H 266.3°. Best body text is #FFFFFF at 16.34:1 contrast (WCAG AA passes).

Color values

HEX#151F38
RGBrgb(21, 31, 56)
HSLhsl(223, 45%, 15%)
HSVhsv(223, 63%, 22%)
CMYKcmyk(62.5%, 44.6%, 0%, 78%)
CIE-LABlab(12.12, 4.56, -17.64)
CIE-LCHlch(12.12, 18.22, 284.48°)
OKLaboklab(24.4% -0.0032 -0.0499)
OKLCHoklch(24.4% 0.05 266.3)
XYZxyz(1.5128, 1.4248, 3.9359)
Luminance0.0143 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#151F38 #382E15
analogous
#153138 #151F38 #1C1538
triadic
#151F38 #38151F #1F3815
tetradic
#151F38 #381531 #382E15 #15381C
square
#151F38 #381531 #382E15 #15381C
split-complementary
#151F38 #381C15 #313815
monochromatic
#080C16 #080C16 #151F38 #263865 #365091

Accessibility & contrast

On white

16.34
#151F38 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.29
#151F38 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #151F38
16.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##151F38#FFFFFF#000000##FFFFFF
##151F381.0016.341.2916.34
#FFFFFF16.341.0021.001.00
#0000001.2921.001.0021.00
##FFFFFF16.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#152139
Deuteranopia (green-blind)
#111E37
Tritanopia (blue-blind)
#042428
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #151f38;
/* rgb */ color: rgb(21, 31, 56);
/* oklch */ color: oklch(24.4% 0.050 266.3);
Tailwind
colors: {
  custom: {
    50: '#555a6e',
    500: '#151f38',
    950: '#000000',
  },
}
SCSS
$custom: #151f38;
$custom-light: #555a6e;
$custom-dark: #000000;
JSON
{
  "hex": "#151f38",
  "rgb": {
    "r": 21,
    "g": 31,
    "b": 56
  },
  "hsl": {
    "h": 222.857,
    "s": 45.455,
    "l": 15.098
  },
  "oklch": {
    "l": 0.24398,
    "c": 0.05004,
    "h": 266.3
  },
  "luminance": 0.01425
}

Semantic roles & 50–950 ramp

primary
#151F38
secondary
#6F603A
accent
#B053D5
background
#F5F5F6
surface
#E9E9EC
border
#C5C5C7
text
#030307
muted
#78787A

Preview Lab

Preview with #151F38

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

Preview Lab → · Contrast checker → · Palette generator →

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