#151B47#151B47

#151B47 is a very dark, moderate blue. Relative luminance 0.014; OKLCH L 24.6% C 0.082 H 273.0°. Best body text is #FFFFFF at 16.41:1 contrast (WCAG AA passes).

Color values

HEX#151B47
RGBrgb(21, 27, 71)
HSLhsl(233, 54%, 18%)
HSVhsv(233, 70%, 28%)
CMYKcmyk(70.4%, 62%, 0%, 72.2%)
CIE-LABlab(11.95, 13.76, -28.48)
CIE-LCHlch(11.95, 31.63, 295.78°)
OKLaboklab(24.62% 0.0043 -0.0818)
OKLCHoklch(24.62% 0.082 273)
XYZxyz(1.8381, 1.3981, 6.1330)
Luminance0.0140 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#151B47 #474115
analogous
#153447 #151B47 #281547
triadic
#151B47 #47151B #1B4715
tetradic
#151B47 #471534 #474115 #154728
square
#151B47 #471534 #474115 #154728
split-complementary
#151B47 #472815 #344715
monochromatic
#070918 #070918 #151B47 #232D76 #313FA5

Accessibility & contrast

On white

16.41
#151B47 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.28
#151B47 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #151B47
16.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##151B47#FFFFFF#000000##FFFFFF
##151B471.0016.411.2816.41
#FFFFFF16.411.0021.001.00
#0000001.2821.001.0021.00
##FFFFFF16.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002249
Deuteranopia (green-blind)
#001D46
Tritanopia (blue-blind)
#00252D
Achromatopsia (no color)
#1F1F1F

Design tokens & code

CSS
--color: #151b47;
/* rgb */ color: rgb(21, 27, 71);
/* oklch */ color: oklch(24.6% 0.082 273.0);
Tailwind
colors: {
  custom: {
    50: '#59577b',
    500: '#151b47',
    950: '#000000',
  },
}
SCSS
$custom: #151b47;
$custom-light: #59577b;
$custom-dark: #000000;
JSON
{
  "hex": "#151b47",
  "rgb": {
    "r": 21,
    "g": 27,
    "b": 71
  },
  "hsl": {
    "h": 232.8,
    "s": 54.348,
    "l": 18.039
  },
  "oklch": {
    "l": 0.24624,
    "c": 0.08194,
    "h": 273
  },
  "luminance": 0.01398
}

Semantic roles & 50–950 ramp

primary
#151B47
secondary
#7F7639
accent
#CC4ADE
background
#F5F5F7
surface
#E9E9EE
border
#C5C5C9
text
#040309
muted
#79787B

Preview Lab

Preview with #151B47

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

Preview Lab → · Contrast checker → · Palette generator →

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