#151571#151571

#151571 is a dark, vivid blue. Relative luminance 0.019; OKLCH L 28.1% C 0.150 H 271.3°. Best body text is #FFFFFF at 15.24:1 contrast (WCAG AA passes).

Color values

HEX#151571
RGBrgb(21, 21, 113)
HSLhsl(240, 69%, 26%)
HSVhsv(240, 81%, 44%)
CMYKcmyk(81.4%, 81.4%, 0%, 55.7%)
CIE-LABlab(14.89, 34.12, -51.84)
CIE-LCHlch(14.89, 62.06, 303.35°)
OKLaboklab(28.09% 0.0034 -0.1501)
OKLCHoklch(28.09% 0.15 271.3)
XYZxyz(3.5571, 1.8876, 15.7965)
Luminance0.0189 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#151571 #717115
analogous
#154371 #151571 #431571
triadic
#151571 #711515 #157115
tetradic
#151571 #711543 #717115 #157143
square
#151571 #711543 #717115 #157143
split-complementary
#151571 #714315 #437115
monochromatic
#05051A #0B0B3D #151571 #1F1FA5 #2929D7

Accessibility & contrast

On white

15.24
#151571 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.38
#151571 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #151571
15.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##151571#FFFFFF#000000##FFFFFF
##1515711.0015.241.3815.24
#FFFFFF15.241.0021.001.00
#0000001.3821.001.0021.00
##FFFFFF15.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A74
Deuteranopia (green-blind)
#00216F
Tritanopia (blue-blind)
#003143
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #151571;
/* rgb */ color: rgb(21, 21, 113);
/* oklch */ color: oklch(28.1% 0.150 271.3);
Tailwind
colors: {
  custom: {
    50: '#65549b',
    500: '#151571',
    950: '#000000',
  },
}
SCSS
$custom: #151571;
$custom-light: #65549b;
$custom-dark: #000000;
JSON
{
  "hex": "#151571",
  "rgb": {
    "r": 21,
    "g": 21,
    "b": 113
  },
  "hsl": {
    "h": 240,
    "s": 68.657,
    "l": 26.275
  },
  "oklch": {
    "l": 0.28094,
    "c": 0.15012,
    "h": 271.3
  },
  "luminance": 0.01888
}

Semantic roles & 50–950 ramp

primary
#151571
secondary
#A7A73B
accent
#EB3CEB
background
#F6F4F9
surface
#EBE8F2
border
#C6C4CC
text
#07030E
muted
#7A787E

Preview Lab

Preview with #151571

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

Preview Lab → · Contrast checker → · Palette generator →

#151571 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva