#151C54#151C54

#151C54 is a dark, moderate blue. Relative luminance 0.016; OKLCH L 26.1% C 0.101 H 271.9°. Best body text is #FFFFFF at 15.84:1 contrast (WCAG AA passes).

Color values

HEX#151C54
RGBrgb(21, 28, 84)
HSLhsl(233, 60%, 21%)
HSVhsv(233, 75%, 33%)
CMYKcmyk(75%, 66.7%, 0%, 67.1%)
CIE-LABlab(13.41, 18.36, -35.03)
CIE-LCHlch(13.41, 39.55, 297.66°)
OKLaboklab(26.08% 0.0033 -0.101)
OKLCHoklch(26.08% 0.101 271.9)
XYZxyz(2.3242, 1.6298, 8.5779)
Luminance0.0163 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#151C54 #544D15
analogous
#153B54 #151C54 #2D1554
triadic
#151C54 #54151C #1C5415
tetradic
#151C54 #54153B #544D15 #15542D
square
#151C54 #54153B #544D15 #15542D
split-complementary
#151C54 #542D15 #3B5415
monochromatic
#060818 #090C23 #151C54 #212C85 #2D3DB6

Accessibility & contrast

On white

15.84
#151C54 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.33
#151C54 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #151C54
15.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##151C54#FFFFFF#000000##FFFFFF
##151C541.0015.841.3315.84
#FFFFFF15.841.0021.001.00
#0000001.3321.001.0021.00
##FFFFFF15.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002556
Deuteranopia (green-blind)
#002053
Tritanopia (blue-blind)
#002A35
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #151c54;
/* rgb */ color: rgb(21, 28, 84);
/* oklch */ color: oklch(26.1% 0.101 271.9);
Tailwind
colors: {
  custom: {
    50: '#5c5885',
    500: '#151c54',
    950: '#000000',
  },
}
SCSS
$custom: #151c54;
$custom-light: #5c5885;
$custom-dark: #000000;
JSON
{
  "hex": "#151c54",
  "rgb": {
    "r": 21,
    "g": 28,
    "b": 84
  },
  "hsl": {
    "h": 233.333,
    "s": 60,
    "l": 20.588
  },
  "oklch": {
    "l": 0.26081,
    "c": 0.10111,
    "h": 271.9
  },
  "luminance": 0.0163
}

Semantic roles & 50–950 ramp

primary
#151C54
secondary
#8C8339
accent
#D245E3
background
#F5F5F8
surface
#E9E9EF
border
#C5C5CA
text
#05030B
muted
#79787C

Preview Lab

Preview with #151C54

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

Preview Lab → · Contrast checker → · Palette generator →

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