#151B5E#151B5E

#151B5E is a dark, moderate blue. Relative luminance 0.018; OKLCH L 26.9% C 0.117 H 271.7°. Best body text is #FFFFFF at 15.55:1 contrast (WCAG AA passes).

Color values

HEX#151B5E
RGBrgb(21, 27, 94)
HSLhsl(235, 63%, 23%)
HSVhsv(235, 78%, 37%)
CMYKcmyk(77.7%, 71.3%, 0%, 63.1%)
CIE-LABlab(14.12, 23.11, -40.59)
CIE-LCHlch(14.12, 46.71, 299.66°)
OKLaboklab(26.91% 0.0035 -0.1174)
OKLCHoklch(26.91% 0.117 271.7)
XYZxyz(2.7209, 1.7512, 10.7821)
Luminance0.0175 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#151B5E #5E5815
analogous
#15405E #151B5E #33155E
triadic
#151B5E #5E151B #1B5E15
tetradic
#151B5E #5E1540 #5E5815 #155E33
square
#151B5E #5E1540 #5E5815 #155E33
split-complementary
#151B5E #5E3315 #405E15
monochromatic
#060719 #0A0D2C #151B5E #202990 #2B38C2

Accessibility & contrast

On white

15.55
#151B5E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.35
#151B5E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #151B5E
15.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##151B5E#FFFFFF#000000##FFFFFF
##151B5E1.0015.551.3515.55
#FFFFFF15.551.0021.001.00
#0000001.3521.001.0021.00
##FFFFFF15.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002760
Deuteranopia (green-blind)
#00205D
Tritanopia (blue-blind)
#002D3A
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #151b5e;
/* rgb */ color: rgb(21, 27, 94);
/* oklch */ color: oklch(26.9% 0.117 271.7);
Tailwind
colors: {
  custom: {
    50: '#5f578c',
    500: '#151b5e',
    950: '#000000',
  },
}
SCSS
$custom: #151b5e;
$custom-light: #5f578c;
$custom-dark: #000000;
JSON
{
  "hex": "#151b5e",
  "rgb": {
    "r": 21,
    "g": 27,
    "b": 94
  },
  "hsl": {
    "h": 235.068,
    "s": 63.478,
    "l": 22.549
  },
  "oklch": {
    "l": 0.26907,
    "c": 0.11741,
    "h": 271.7
  },
  "luminance": 0.01751
}

Semantic roles & 50–950 ramp

primary
#151B5E
secondary
#958E39
accent
#D941E7
background
#F5F5F8
surface
#EAE9F0
border
#C6C5CB
text
#05030C
muted
#79787D

Preview Lab

Preview with #151B5E

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

Preview Lab → · Contrast checker → · Palette generator →

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