#151F4F#151F4F

#151F4F is a dark, moderate blue. Relative luminance 0.017; OKLCH L 26.3% C 0.089 H 270.3°. Best body text is #FFFFFF at 15.66:1 contrast (WCAG AA passes).

Color values

HEX#151F4F
RGBrgb(21, 31, 79)
HSLhsl(230, 58%, 20%)
HSVhsv(230, 73%, 31%)
CMYKcmyk(73.4%, 60.8%, 0%, 69%)
CIE-LABlab(13.85, 14.05, -30.91)
CIE-LCHlch(13.85, 33.96, 294.45°)
OKLaboklab(26.27% 0.0004 -0.0889)
OKLCHoklch(26.27% 0.089 270.3)
XYZxyz(2.2101, 1.7037, 7.6080)
Luminance0.0170 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#151F4F #4F4515
analogous
#153C4F #151F4F #28154F
triadic
#151F4F #4F151F #1F4F15
tetradic
#151F4F #4F153C #4F4515 #154F28
square
#151F4F #4F153C #4F4515 #154F28
split-complementary
#151F4F #4F2815 #3C4F15
monochromatic
#060918 #080C1F #151F4F #22327F #2F45B0

Accessibility & contrast

On white

15.66
#151F4F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.34
#151F4F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #151F4F
15.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##151F4F#FFFFFF#000000##FFFFFF
##151F4F1.0015.661.3415.66
#FFFFFF15.661.0021.001.00
#0000001.3421.001.0021.00
##FFFFFF15.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002651
Deuteranopia (green-blind)
#00214E
Tritanopia (blue-blind)
#002B33
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #151f4f;
/* rgb */ color: rgb(21, 31, 79);
/* oklch */ color: oklch(26.3% 0.089 270.3);
Tailwind
colors: {
  custom: {
    50: '#5b5a81',
    500: '#151f4f',
    950: '#000000',
  },
}
SCSS
$custom: #151f4f;
$custom-light: #5b5a81;
$custom-dark: #000000;
JSON
{
  "hex": "#151f4f",
  "rgb": {
    "r": 21,
    "g": 31,
    "b": 79
  },
  "hsl": {
    "h": 229.655,
    "s": 58,
    "l": 19.608
  },
  "oklch": {
    "l": 0.26266,
    "c": 0.08891,
    "h": 270.3
  },
  "luminance": 0.01704
}

Semantic roles & 50–950 ramp

primary
#151F4F
secondary
#877939
accent
#C747E1
background
#F5F5F7
surface
#E9E9EE
border
#C5C5C9
text
#04030A
muted
#79787C

Preview Lab

Preview with #151F4F

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

Preview Lab → · Contrast checker → · Palette generator →

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