#151578#151578

#151578 is a dark, vivid blue. Relative luminance 0.021; OKLCH L 29.0% C 0.159 H 270.7°. Best body text is #FFFFFF at 14.89:1 contrast (WCAG AA passes).

Color values

HEX#151578
RGBrgb(21, 21, 120)
HSLhsl(240, 70%, 28%)
HSVhsv(240, 83%, 47%)
CMYKcmyk(82.5%, 82.5%, 0%, 52.9%)
CIE-LABlab(15.75, 36.56, -54.92)
CIE-LCHlch(15.75, 65.97, 303.65°)
OKLaboklab(28.96% 0.0019 -0.159)
OKLCHoklch(28.96% 0.159 270.7)
XYZxyz(3.9664, 2.0514, 17.9526)
Luminance0.0205 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#151578 #787815
analogous
#154678 #151578 #461578
triadic
#151578 #781515 #157815
tetradic
#151578 #781546 #787815 #157846
square
#151578 #781546 #787815 #157846
split-complementary
#151578 #784615 #467815
monochromatic
#05051A #0C0C44 #151578 #1E1EAC #2D2DDA

Accessibility & contrast

On white

14.89
#151578 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.41
#151578 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #151578
14.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##151578#FFFFFF#000000##FFFFFF
##1515781.0014.891.4114.89
#FFFFFF14.891.0021.001.00
#0000001.4121.001.0021.00
##FFFFFF14.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C7B
Deuteranopia (green-blind)
#002276
Tritanopia (blue-blind)
#003447
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #151578;
/* rgb */ color: rgb(21, 21, 120);
/* oklch */ color: oklch(29.0% 0.159 270.7);
Tailwind
colors: {
  custom: {
    50: '#6755a0',
    500: '#151578',
    950: '#000000',
  },
}
SCSS
$custom: #151578;
$custom-light: #6755a0;
$custom-dark: #000000;
JSON
{
  "hex": "#151578",
  "rgb": {
    "r": 21,
    "g": 21,
    "b": 120
  },
  "hsl": {
    "h": 240,
    "s": 70.213,
    "l": 27.647
  },
  "oklch": {
    "l": 0.28955,
    "c": 0.15903,
    "h": 270.7
  },
  "luminance": 0.02052
}

Semantic roles & 50–950 ramp

primary
#151578
secondary
#AEAE3B
accent
#ED3BED
background
#F6F5FA
surface
#ECE9F3
border
#C7C5CD
text
#07030F
muted
#7A787F

Preview Lab

Preview with #151578

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

Preview Lab → · Contrast checker → · Palette generator →

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