#151B54#151B54

#151B54 is a dark, moderate blue. Relative luminance 0.016; OKLCH L 25.9% C 0.103 H 272.4°. Best body text is #FFFFFF at 15.95:1 contrast (WCAG AA passes).

Color values

HEX#151B54
RGBrgb(21, 27, 84)
HSLhsl(234, 60%, 21%)
HSVhsv(234, 75%, 33%)
CMYKcmyk(75%, 67.9%, 0%, 67.1%)
CIE-LABlab(13.13, 19.09, -35.49)
CIE-LCHlch(13.13, 40.30, 298.28°)
OKLaboklab(25.87% 0.0042 -0.1024)
OKLCHoklch(25.87% 0.103 272.4)
XYZxyz(2.3009, 1.5832, 8.5701)
Luminance0.0158 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#151B54 #544E15
analogous
#153A54 #151B54 #2E1554
triadic
#151B54 #54151B #1B5415
tetradic
#151B54 #54153A #544E15 #15542E
square
#151B54 #54153A #544E15 #15542E
split-complementary
#151B54 #542E15 #3A5415
monochromatic
#060818 #090B23 #151B54 #212B85 #2D3AB6

Accessibility & contrast

On white

15.95
#151B54 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.32
#151B54 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #151B54
15.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##151B54#FFFFFF#000000##FFFFFF
##151B541.0015.951.3215.95
#FFFFFF15.951.0021.001.00
#0000001.3221.001.0021.00
##FFFFFF15.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002556
Deuteranopia (green-blind)
#001F53
Tritanopia (blue-blind)
#002A34
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #151b54;
/* rgb */ color: rgb(21, 27, 84);
/* oklch */ color: oklch(25.9% 0.103 272.4);
Tailwind
colors: {
  custom: {
    50: '#5c5785',
    500: '#151b54',
    950: '#000000',
  },
}
SCSS
$custom: #151b54;
$custom-light: #5c5785;
$custom-dark: #000000;
JSON
{
  "hex": "#151b54",
  "rgb": {
    "r": 21,
    "g": 27,
    "b": 84
  },
  "hsl": {
    "h": 234.286,
    "s": 60,
    "l": 20.588
  },
  "oklch": {
    "l": 0.25872,
    "c": 0.10251,
    "h": 272.4
  },
  "luminance": 0.01583
}

Semantic roles & 50–950 ramp

primary
#151B54
secondary
#8C8439
accent
#D445E3
background
#F5F5F8
surface
#E9E9EF
border
#C5C5CA
text
#05030B
muted
#79787C

Preview Lab

Preview with #151B54

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

Preview Lab → · Contrast checker → · Palette generator →

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