#151C52#151C52

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

Color values

HEX#151C52
RGBrgb(21, 28, 82)
HSLhsl(233, 59%, 20%)
HSVhsv(233, 74%, 32%)
CMYKcmyk(74.4%, 65.9%, 0%, 67.8%)
CIE-LABlab(13.22, 17.54, -33.98)
CIE-LCHlch(13.22, 38.24, 297.30°)
OKLaboklab(25.88% 0.0034 -0.098)
OKLCHoklch(25.88% 0.098 272)
XYZxyz(2.2470, 1.5989, 8.1712)
Luminance0.0160 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#151C52 #524B15
analogous
#153A52 #151C52 #2D1552
triadic
#151C52 #52151C #1C5215
tetradic
#151C52 #52153A #524B15 #15522D
square
#151C52 #52153A #524B15 #15522D
split-complementary
#151C52 #522D15 #3A5215
monochromatic
#060818 #090B21 #151C52 #212D83 #2E3DB3

Accessibility & contrast

On white

15.91
#151C52 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #151C52
15.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##151C52#FFFFFF#000000##FFFFFF
##151C521.0015.911.3215.91
#FFFFFF15.911.0021.001.00
#0000001.3221.001.0021.00
##FFFFFF15.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002554
Deuteranopia (green-blind)
#001F51
Tritanopia (blue-blind)
#002A33
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #151c52;
/* rgb */ color: rgb(21, 28, 82);
/* oklch */ color: oklch(25.9% 0.098 272.0);
Tailwind
colors: {
  custom: {
    50: '#5c5883',
    500: '#151c52',
    950: '#000000',
  },
}
SCSS
$custom: #151c52;
$custom-light: #5c5883;
$custom-dark: #000000;
JSON
{
  "hex": "#151c52",
  "rgb": {
    "r": 21,
    "g": 28,
    "b": 82
  },
  "hsl": {
    "h": 233.115,
    "s": 59.223,
    "l": 20.196
  },
  "oklch": {
    "l": 0.25884,
    "c": 0.09802,
    "h": 272
  },
  "luminance": 0.01599
}

Semantic roles & 50–950 ramp

primary
#151C52
secondary
#8A8139
accent
#D045E2
background
#F5F5F8
surface
#E9E9EF
border
#C5C5CA
text
#04030B
muted
#79787C

Preview Lab

Preview with #151C52

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

Preview Lab → · Contrast checker → · Palette generator →

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