#151B48#151B48

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

Color values

HEX#151B48
RGBrgb(21, 27, 72)
HSLhsl(233, 55%, 18%)
HSVhsv(233, 71%, 28%)
CMYKcmyk(70.8%, 62.5%, 0%, 71.8%)
CIE-LABlab(12.03, 14.17, -29.04)
CIE-LCHlch(12.03, 32.31, 296.01°)
OKLaboklab(24.72% 0.0043 -0.0835)
OKLCHoklch(24.72% 0.084 273)
XYZxyz(1.8705, 1.4110, 6.3034)
Luminance0.0141 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#151B48 #484215
analogous
#153448 #151B48 #281548
triadic
#151B48 #48151B #1B4815
tetradic
#151B48 #481534 #484215 #154828
square
#151B48 #481534 #484215 #154828
split-complementary
#151B48 #482815 #344815
monochromatic
#070918 #070919 #151B48 #232D77 #313FA7

Accessibility & contrast

On white

16.38
#151B48 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #151B48
16.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##151B48#FFFFFF#000000##FFFFFF
##151B481.0016.381.2816.38
#FFFFFF16.381.0021.001.00
#0000001.2821.001.0021.00
##FFFFFF16.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00224A
Deuteranopia (green-blind)
#001D47
Tritanopia (blue-blind)
#00262E
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #151b48;
/* rgb */ color: rgb(21, 27, 72);
/* oklch */ color: oklch(24.7% 0.084 273.0);
Tailwind
colors: {
  custom: {
    50: '#59577b',
    500: '#151b48',
    950: '#000000',
  },
}
SCSS
$custom: #151b48;
$custom-light: #59577b;
$custom-dark: #000000;
JSON
{
  "hex": "#151b48",
  "rgb": {
    "r": 21,
    "g": 27,
    "b": 72
  },
  "hsl": {
    "h": 232.941,
    "s": 54.839,
    "l": 18.235
  },
  "oklch": {
    "l": 0.24716,
    "c": 0.08357,
    "h": 273
  },
  "luminance": 0.01411
}

Semantic roles & 50–950 ramp

primary
#151B48
secondary
#807839
accent
#CD4ADE
background
#F5F5F7
surface
#E9E9EE
border
#C5C5C9
text
#040309
muted
#79787B

Preview Lab

Preview with #151B48

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

Preview Lab → · Contrast checker → · Palette generator →

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