#151D52#151D52

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

Color values

HEX#151D52
RGBrgb(21, 29, 82)
HSLhsl(232, 59%, 20%)
HSVhsv(232, 74%, 32%)
CMYKcmyk(74.4%, 64.6%, 0%, 67.8%)
CIE-LABlab(13.51, 16.80, -33.50)
CIE-LCHlch(13.51, 37.48, 296.63°)
OKLaboklab(26.1% 0.0025 -0.0965)
OKLCHoklch(26.1% 0.097 271.5)
XYZxyz(2.2711, 1.6471, 8.1792)
Luminance0.0165 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#151D52 #524A15
analogous
#153B52 #151D52 #2B1552
triadic
#151D52 #52151D #1D5215
tetradic
#151D52 #52153B #524A15 #15522B
square
#151D52 #52153B #524A15 #15522B
split-complementary
#151D52 #522B15 #3B5215
monochromatic
#060918 #090C21 #151D52 #212E83 #2E3FB3

Accessibility & contrast

On white

15.80
#151D52 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #151D52
15.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##151D52#FFFFFF#000000##FFFFFF
##151D521.0015.801.3315.80
#FFFFFF15.801.0021.001.00
#0000001.3321.001.0021.00
##FFFFFF15.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002554
Deuteranopia (green-blind)
#002051
Tritanopia (blue-blind)
#002A34
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #151d52;
/* rgb */ color: rgb(21, 29, 82);
/* oklch */ color: oklch(26.1% 0.097 271.5);
Tailwind
colors: {
  custom: {
    50: '#5c5883',
    500: '#151d52',
    950: '#000000',
  },
}
SCSS
$custom: #151d52;
$custom-light: #5c5883;
$custom-dark: #000000;
JSON
{
  "hex": "#151d52",
  "rgb": {
    "r": 21,
    "g": 29,
    "b": 82
  },
  "hsl": {
    "h": 232.131,
    "s": 59.223,
    "l": 20.196
  },
  "oklch": {
    "l": 0.261,
    "c": 0.09658,
    "h": 271.5
  },
  "luminance": 0.01647
}

Semantic roles & 50–950 ramp

primary
#151D52
secondary
#8A7F39
accent
#CE45E2
background
#F5F5F8
surface
#E9E9EF
border
#C5C5CA
text
#04030B
muted
#79787C

Preview Lab

Preview with #151D52

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

Preview Lab → · Contrast checker → · Palette generator →

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