#151B4F#151B4F

#151B4F is a dark, moderate blue. Relative luminance 0.015; OKLCH L 25.4% C 0.095 H 272.6°. Best body text is #FFFFFF at 16.13:1 contrast (WCAG AA passes).

Color values

HEX#151B4F
RGBrgb(21, 27, 79)
HSLhsl(234, 58%, 20%)
HSVhsv(234, 73%, 31%)
CMYKcmyk(73.4%, 65.8%, 0%, 69%)
CIE-LABlab(12.66, 17.05, -32.85)
CIE-LCHlch(12.66, 37.01, 297.43°)
OKLaboklab(25.38% 0.0044 -0.0947)
OKLCHoklch(25.38% 0.095 272.6)
XYZxyz(2.1120, 1.5076, 7.5753)
Luminance0.0151 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#151B4F #4F4915
analogous
#15384F #151B4F #2C154F
triadic
#151B4F #4F151B #1B4F15
tetradic
#151B4F #4F1538 #4F4915 #154F2C
square
#151B4F #4F1538 #4F4915 #154F2C
split-complementary
#151B4F #4F2C15 #384F15
monochromatic
#060818 #080A1F #151B4F #222C7F #2F3CB0

Accessibility & contrast

On white

16.13
#151B4F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #151B4F
16.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##151B4F#FFFFFF#000000##FFFFFF
##151B4F1.0016.131.3016.13
#FFFFFF16.131.0021.001.00
#0000001.3021.001.0021.00
##FFFFFF16.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002451
Deuteranopia (green-blind)
#001E4E
Tritanopia (blue-blind)
#002832
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #151b4f;
/* rgb */ color: rgb(21, 27, 79);
/* oklch */ color: oklch(25.4% 0.095 272.6);
Tailwind
colors: {
  custom: {
    50: '#5b5781',
    500: '#151b4f',
    950: '#000000',
  },
}
SCSS
$custom: #151b4f;
$custom-light: #5b5781;
$custom-dark: #000000;
JSON
{
  "hex": "#151b4f",
  "rgb": {
    "r": 21,
    "g": 27,
    "b": 79
  },
  "hsl": {
    "h": 233.793,
    "s": 58,
    "l": 19.608
  },
  "oklch": {
    "l": 0.25378,
    "c": 0.09476,
    "h": 272.6
  },
  "luminance": 0.01508
}

Semantic roles & 50–950 ramp

primary
#151B4F
secondary
#877F39
accent
#D147E1
background
#F5F5F7
surface
#E9E9EE
border
#C5C5C9
text
#04030A
muted
#79787C

Preview Lab

Preview with #151B4F

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

Preview Lab → · Contrast checker → · Palette generator →

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