#151B41#151B41

#151B41 is a very dark, moderate blue. Relative luminance 0.013; OKLCH L 24.1% C 0.072 H 273.1°. Best body text is #FFFFFF at 16.60:1 contrast (WCAG AA passes).

Color values

HEX#151B41
RGBrgb(21, 27, 65)
HSLhsl(232, 51%, 17%)
HSVhsv(232, 68%, 25%)
CMYKcmyk(67.7%, 58.5%, 0%, 74.5%)
CIE-LABlab(11.45, 11.29, -25.09)
CIE-LCHlch(11.45, 27.51, 294.22°)
OKLaboklab(24.09% 0.0038 -0.0718)
OKLCHoklch(24.09% 0.072 273.1)
XYZxyz(1.6550, 1.3248, 5.1685)
Luminance0.0132 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#151B41 #413B15
analogous
#153141 #151B41 #251541
triadic
#151B41 #41151B #1B4115
tetradic
#151B41 #411531 #413B15 #154125
square
#151B41 #411531 #413B15 #154125
split-complementary
#151B41 #412515 #314115
monochromatic
#070A17 #070A17 #151B41 #242E6F #33419E

Accessibility & contrast

On white

16.60
#151B41 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #151B41
16.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##151B41#FFFFFF#000000##FFFFFF
##151B411.0016.601.2616.60
#FFFFFF16.601.0021.001.00
#0000001.2621.001.0021.00
##FFFFFF16.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#062042
Deuteranopia (green-blind)
#001D40
Tritanopia (blue-blind)
#00242B
Achromatopsia (no color)
#1E1E1E

Design tokens & code

CSS
--color: #151b41;
/* rgb */ color: rgb(21, 27, 65);
/* oklch */ color: oklch(24.1% 0.072 273.1);
Tailwind
colors: {
  custom: {
    50: '#585776',
    500: '#151b41',
    950: '#000000',
  },
}
SCSS
$custom: #151b41;
$custom-light: #585776;
$custom-dark: #000000;
JSON
{
  "hex": "#151b41",
  "rgb": {
    "r": 21,
    "g": 27,
    "b": 65
  },
  "hsl": {
    "h": 231.818,
    "s": 51.163,
    "l": 16.863
  },
  "oklch": {
    "l": 0.24093,
    "c": 0.07195,
    "h": 273.1
  },
  "luminance": 0.01325
}

Semantic roles & 50–950 ramp

primary
#151B41
secondary
#797039
accent
#C74DDB
background
#F5F5F7
surface
#E9E9ED
border
#C5C5C8
text
#030308
muted
#78787B

Preview Lab

Preview with #151B41

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

Preview Lab → · Contrast checker → · Palette generator →

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