#151B4A#151B4A

#151B4A is a very dark, moderate blue. Relative luminance 0.014; OKLCH L 24.9% C 0.087 H 272.9°. Best body text is #FFFFFF at 16.31:1 contrast (WCAG AA passes).

Color values

HEX#151B4A
RGBrgb(21, 27, 74)
HSLhsl(233, 56%, 19%)
HSVhsv(233, 72%, 29%)
CMYKcmyk(71.6%, 63.5%, 0%, 71%)
CIE-LABlab(12.21, 15.00, -30.14)
CIE-LCHlch(12.21, 33.67, 296.45°)
OKLaboklab(24.9% 0.0044 -0.0867)
OKLCHoklch(24.9% 0.087 272.9)
XYZxyz(1.9368, 1.4375, 6.6526)
Luminance0.0144 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#151B4A #4A4415
analogous
#15354A #151B4A #29154A
triadic
#151B4A #4A151B #1B4A15
tetradic
#151B4A #4A1535 #4A4415 #154A29
square
#151B4A #4A1535 #4A4415 #154A29
split-complementary
#151B4A #4A2915 #354A15
monochromatic
#070918 #070A1A #151B4A #232C7A #303EA9

Accessibility & contrast

On white

16.31
#151B4A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #151B4A
16.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##151B4A#FFFFFF#000000##FFFFFF
##151B4A1.0016.311.2916.31
#FFFFFF16.311.0021.001.00
#0000001.2921.001.0021.00
##FFFFFF16.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00224C
Deuteranopia (green-blind)
#001E49
Tritanopia (blue-blind)
#00262F
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #151b4a;
/* rgb */ color: rgb(21, 27, 74);
/* oklch */ color: oklch(24.9% 0.087 272.9);
Tailwind
colors: {
  custom: {
    50: '#5a577d',
    500: '#151b4a',
    950: '#000000',
  },
}
SCSS
$custom: #151b4a;
$custom-light: #5a577d;
$custom-dark: #000000;
JSON
{
  "hex": "#151b4a",
  "rgb": {
    "r": 21,
    "g": 27,
    "b": 74
  },
  "hsl": {
    "h": 233.208,
    "s": 55.789,
    "l": 18.627
  },
  "oklch": {
    "l": 0.24901,
    "c": 0.08682,
    "h": 272.9
  },
  "luminance": 0.01438
}

Semantic roles & 50–950 ramp

primary
#151B4A
secondary
#827A39
accent
#CE49DF
background
#F5F5F7
surface
#E9E9EE
border
#C5C5C9
text
#040309
muted
#79787B

Preview Lab

Preview with #151B4A

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

Preview Lab → · Contrast checker → · Palette generator →

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