#151B40#151B40

#151B40 is a very dark, moderate blue. Relative luminance 0.013; OKLCH L 24.0% C 0.070 H 273.0°. Best body text is #FFFFFF at 16.63:1 contrast (WCAG AA passes).

Color values

HEX#151B40
RGBrgb(21, 27, 64)
HSLhsl(232, 51%, 17%)
HSVhsv(232, 67%, 25%)
CMYKcmyk(67.2%, 57.8%, 0%, 74.9%)
CIE-LABlab(11.37, 10.88, -24.52)
CIE-LCHlch(11.37, 26.82, 293.92°)
OKLaboklab(24.01% 0.0037 -0.0701)
OKLCHoklch(24.01% 0.07 273)
XYZxyz(1.6263, 1.3133, 5.0173)
Luminance0.0131 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#151B40 #403A15
analogous
#153140 #151B40 #251540
triadic
#151B40 #40151B #1B4015
tetradic
#151B40 #401531 #403A15 #154025
square
#151B40 #401531 #403A15 #154025
split-complementary
#151B40 #402515 #314015
monochromatic
#080A17 #080A17 #151B40 #242E6E #33429C

Accessibility & contrast

On white

16.63
#151B40 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.26
#151B40 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #151B40
16.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##151B40#FFFFFF#000000##FFFFFF
##151B401.0016.631.2616.63
#FFFFFF16.631.0021.001.00
#0000001.2621.001.0021.00
##FFFFFF16.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#072041
Deuteranopia (green-blind)
#021C3F
Tritanopia (blue-blind)
#00232A
Achromatopsia (no color)
#1E1E1E

Design tokens & code

CSS
--color: #151b40;
/* rgb */ color: rgb(21, 27, 64);
/* oklch */ color: oklch(24.0% 0.070 273.0);
Tailwind
colors: {
  custom: {
    50: '#575775',
    500: '#151b40',
    950: '#000000',
  },
}
SCSS
$custom: #151b40;
$custom-light: #575775;
$custom-dark: #000000;
JSON
{
  "hex": "#151b40",
  "rgb": {
    "r": 21,
    "g": 27,
    "b": 64
  },
  "hsl": {
    "h": 231.628,
    "s": 50.588,
    "l": 16.667
  },
  "oklch": {
    "l": 0.24008,
    "c": 0.07025,
    "h": 273
  },
  "luminance": 0.01313
}

Semantic roles & 50–950 ramp

primary
#151B40
secondary
#786F39
accent
#C64EDA
background
#F5F5F7
surface
#E9E9ED
border
#C5C5C8
text
#030308
muted
#78787B

Preview Lab

Preview with #151B40

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

Preview Lab → · Contrast checker → · Palette generator →

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