#151B5B#151B5B

#151B5B is a dark, moderate blue. Relative luminance 0.017; OKLCH L 26.6% C 0.113 H 271.9°. Best body text is #FFFFFF at 15.67:1 contrast (WCAG AA passes).

Color values

HEX#151B5B
RGBrgb(21, 27, 91)
HSLhsl(235, 63%, 22%)
HSVhsv(235, 77%, 36%)
CMYKcmyk(76.9%, 70.3%, 0%, 64.3%)
CIE-LABlab(13.82, 21.92, -39.09)
CIE-LCHlch(13.82, 44.81, 299.28°)
OKLaboklab(26.59% 0.0037 -0.1129)
OKLCHoklch(26.59% 0.113 271.9)
XYZxyz(2.5889, 1.6984, 10.0869)
Luminance0.0170 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#151B5B #5B5515
analogous
#153E5B #151B5B #32155B
triadic
#151B5B #5B151B #1B5B15
tetradic
#151B5B #5B153E #5B5515 #155B32
square
#151B5B #5B153E #5B5515 #155B32
split-complementary
#151B5B #5B3215 #3E5B15
monochromatic
#060719 #0A0C29 #151B5B #202A8D #2C39BE

Accessibility & contrast

On white

15.67
#151B5B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.34
#151B5B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #151B5B
15.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##151B5B#FFFFFF#000000##FFFFFF
##151B5B1.0015.671.3415.67
#FFFFFF15.671.0021.001.00
#0000001.3421.001.0021.00
##FFFFFF15.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00275D
Deuteranopia (green-blind)
#00205A
Tritanopia (blue-blind)
#002C38
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #151b5b;
/* rgb */ color: rgb(21, 27, 91);
/* oklch */ color: oklch(26.6% 0.113 271.9);
Tailwind
colors: {
  custom: {
    50: '#5e578a',
    500: '#151b5b',
    950: '#000000',
  },
}
SCSS
$custom: #151b5b;
$custom-light: #5e578a;
$custom-dark: #000000;
JSON
{
  "hex": "#151b5b",
  "rgb": {
    "r": 21,
    "g": 27,
    "b": 91
  },
  "hsl": {
    "h": 234.857,
    "s": 62.5,
    "l": 21.961
  },
  "oklch": {
    "l": 0.26591,
    "c": 0.11301,
    "h": 271.9
  },
  "luminance": 0.01699
}

Semantic roles & 50–950 ramp

primary
#151B5B
secondary
#928B39
accent
#D842E6
background
#F5F5F8
surface
#EAE9F0
border
#C6C5CB
text
#05030C
muted
#79787D

Preview Lab

Preview with #151B5B

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

Preview Lab → · Contrast checker → · Palette generator →

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