#151B28#151B28

#151B28 is a very dark, muted blue. Relative luminance 0.011; OKLCH L 22.3% C 0.027 H 265.1°. Best body text is #FFFFFF at 17.22:1 contrast (WCAG AA passes).

Color values

HEX#151B28
RGBrgb(21, 27, 40)
HSLhsl(221, 31%, 12%)
HSVhsv(221, 48%, 16%)
CMYKcmyk(47.5%, 32.5%, 0%, 84.3%)
CIE-LABlab(9.77, 1.47, -9.72)
CIE-LCHlch(9.77, 9.83, 278.61°)
OKLaboklab(22.26% -0.0023 -0.027)
OKLCHoklch(22.26% 0.027 265.1)
XYZxyz(1.0841, 1.0964, 2.1616)
Luminance0.0110 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#151B28 #282215
analogous
#152528 #151B28 #191528
triadic
#151B28 #28151B #1B2815
tetradic
#151B28 #281525 #282215 #152819
square
#151B28 #281525 #282215 #152819
split-complementary
#151B28 #281915 #252815
monochromatic
#0B0E14 #0B0E14 #151B28 #2A3650 #3F5178

Accessibility & contrast

On white

17.22
#151B28 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.22
#151B28 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #151B28
17.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##151B28#FFFFFF#000000##FFFFFF
##151B281.0017.221.2217.22
#FFFFFF17.221.0021.001.00
#0000001.2221.001.0021.00
##FFFFFF17.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#171C29
Deuteranopia (green-blind)
#151A28
Tritanopia (blue-blind)
#0F1E1F
Achromatopsia (no color)
#1B1B1B

Design tokens & code

CSS
--color: #151b28;
/* rgb */ color: rgb(21, 27, 40);
/* oklch */ color: oklch(22.3% 0.027 265.1);
Tailwind
colors: {
  custom: {
    50: '#535761',
    500: '#151b28',
    950: '#000000',
  },
}
SCSS
$custom: #151b28;
$custom-light: #535761;
$custom-dark: #000000;
JSON
{
  "hex": "#151b28",
  "rgb": {
    "r": 21,
    "g": 27,
    "b": 40
  },
  "hsl": {
    "h": 221.053,
    "s": 31.148,
    "l": 11.961
  },
  "oklch": {
    "l": 0.22262,
    "c": 0.02712,
    "h": 265.1
  },
  "luminance": 0.01096
}

Semantic roles & 50–950 ramp

primary
#151B28
secondary
#5D533C
accent
#A760C7
background
#F4F5F5
surface
#E7E9EA
border
#C3C5C6
text
#020305
muted
#787879

Preview Lab

Preview with #151B28

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

Preview Lab → · Contrast checker → · Palette generator →

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