#151F3F#151F3F

#151F3F is a very dark, moderate blue. Relative luminance 0.015; OKLCH L 24.9% C 0.062 H 268.6°. Best body text is #FFFFFF at 16.16:1 contrast (WCAG AA passes).

Color values

HEX#151F3F
RGBrgb(21, 31, 63)
HSLhsl(226, 50%, 16%)
HSVhsv(226, 67%, 25%)
CMYKcmyk(66.7%, 50.8%, 0%, 75.3%)
CIE-LABlab(12.60, 7.40, -21.84)
CIE-LCHlch(12.60, 23.06, 288.72°)
OKLaboklab(24.92% -0.0016 -0.0622)
OKLCHoklch(24.92% 0.062 268.6)
XYZxyz(1.6961, 1.4981, 4.9015)
Luminance0.0150 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#151F3F #3F3515
analogous
#15343F #151F3F #20153F
triadic
#151F3F #3F151F #1F3F15
tetradic
#151F3F #3F1534 #3F3515 #153F20
square
#151F3F #3F1534 #3F3515 #153F20
split-complementary
#151F3F #3F2015 #343F15
monochromatic
#080B17 #080B17 #151F3F #24366D #344C9B

Accessibility & contrast

On white

16.16
#151F3F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.30
#151F3F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #151F3F
16.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##151F3F#FFFFFF#000000##FFFFFF
##151F3F1.0016.161.3016.16
#FFFFFF16.161.0021.001.00
#0000001.3021.001.0021.00
##FFFFFF16.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#102340
Deuteranopia (green-blind)
#0B1F3E
Tritanopia (blue-blind)
#00262B
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #151f3f;
/* rgb */ color: rgb(21, 31, 63);
/* oklch */ color: oklch(24.9% 0.062 268.6);
Tailwind
colors: {
  custom: {
    50: '#575a74',
    500: '#151f3f',
    950: '#000000',
  },
}
SCSS
$custom: #151f3f;
$custom-light: #575a74;
$custom-dark: #000000;
JSON
{
  "hex": "#151f3f",
  "rgb": {
    "r": 21,
    "g": 31,
    "b": 63
  },
  "hsl": {
    "h": 225.714,
    "s": 50,
    "l": 16.471
  },
  "oklch": {
    "l": 0.24917,
    "c": 0.06226,
    "h": 268.6
  },
  "luminance": 0.01498
}

Semantic roles & 50–950 ramp

primary
#151F3F
secondary
#776839
accent
#B84EDA
background
#F5F5F7
surface
#E9E9ED
border
#C5C5C8
text
#030308
muted
#78787B

Preview Lab

Preview with #151F3F

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

Preview Lab → · Contrast checker → · Palette generator →

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