#151F4B#151F4B

#151F4B is a dark, moderate blue. Relative luminance 0.016; OKLCH L 25.9% C 0.082 H 270.1°. Best body text is #FFFFFF at 15.80:1 contrast (WCAG AA passes).

Color values

HEX#151F4B
RGBrgb(21, 31, 75)
HSLhsl(229, 56%, 19%)
HSVhsv(229, 72%, 29%)
CMYKcmyk(72%, 58.7%, 0%, 70.6%)
CIE-LABlab(13.51, 12.38, -28.71)
CIE-LCHlch(13.51, 31.27, 293.33°)
OKLaboklab(25.91% 0.0001 -0.0824)
OKLCHoklch(25.91% 0.082 270.1)
XYZxyz(2.0688, 1.6472, 6.8642)
Luminance0.0165 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#151F4B #4B4115
analogous
#153A4B #151F4B #26154B
triadic
#151F4B #4B151F #1F4B15
tetradic
#151F4B #4B153A #4B4115 #154B26
square
#151F4B #4B153A #4B4115 #154B26
split-complementary
#151F4B #4B2615 #3A4B15
monochromatic
#070A18 #080B1B #151F4B #22337B #3047AB

Accessibility & contrast

On white

15.80
#151F4B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.33
#151F4B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #151F4B
15.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##151F4B#FFFFFF#000000##FFFFFF
##151F4B1.0015.801.3315.80
#FFFFFF15.801.0021.001.00
#0000001.3321.001.0021.00
##FFFFFF15.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#04254D
Deuteranopia (green-blind)
#00204A
Tritanopia (blue-blind)
#002931
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #151f4b;
/* rgb */ color: rgb(21, 31, 75);
/* oklch */ color: oklch(25.9% 0.082 270.1);
Tailwind
colors: {
  custom: {
    50: '#5a5a7e',
    500: '#151f4b',
    950: '#000000',
  },
}
SCSS
$custom: #151f4b;
$custom-light: #5a5a7e;
$custom-dark: #000000;
JSON
{
  "hex": "#151f4b",
  "rgb": {
    "r": 21,
    "g": 31,
    "b": 75
  },
  "hsl": {
    "h": 228.889,
    "s": 56.25,
    "l": 18.824
  },
  "oklch": {
    "l": 0.2591,
    "c": 0.08244,
    "h": 270.1
  },
  "luminance": 0.01647
}

Semantic roles & 50–950 ramp

primary
#151F4B
secondary
#837539
accent
#C448E0
background
#F5F5F7
surface
#E9E9EE
border
#C5C5C9
text
#04030A
muted
#79787C

Preview Lab

Preview with #151F4B

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

Preview Lab → · Contrast checker → · Palette generator →

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