#151878#151878

#151878 is a dark, vivid blue. Relative luminance 0.022; OKLCH L 29.4% C 0.156 H 270.4°. Best body text is #FFFFFF at 14.65:1 contrast (WCAG AA passes).

Color values

HEX#151878
RGBrgb(21, 24, 120)
HSLhsl(238, 70%, 28%)
HSVhsv(238, 83%, 47%)
CMYKcmyk(82.5%, 80%, 0%, 52.9%)
CIE-LABlab(16.35, 34.85, -53.94)
CIE-LCHlch(16.35, 64.22, 302.87°)
OKLaboklab(29.37% 0.001 -0.1562)
OKLCHoklch(29.37% 0.156 270.4)
XYZxyz(4.0249, 2.1683, 17.9721)
Luminance0.0217 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#151878 #787515
analogous
#154978 #151878 #441578
triadic
#151878 #781518 #187815
tetradic
#151878 #781549 #787515 #157844
square
#151878 #781549 #787515 #157844
split-complementary
#151878 #784415 #497815
monochromatic
#05051A #0C0E44 #151878 #1E22AC #2D32DA

Accessibility & contrast

On white

14.65
#151878 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.43
#151878 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #151878
14.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##151878#FFFFFF#000000##FFFFFF
##1518781.0014.651.4314.65
#FFFFFF14.651.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D7B
Deuteranopia (green-blind)
#002376
Tritanopia (blue-blind)
#003547
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #151878;
/* rgb */ color: rgb(21, 24, 120);
/* oklch */ color: oklch(29.4% 0.156 270.4);
Tailwind
colors: {
  custom: {
    50: '#6756a0',
    500: '#151878',
    950: '#000000',
  },
}
SCSS
$custom: #151878;
$custom-light: #6756a0;
$custom-dark: #000000;
JSON
{
  "hex": "#151878",
  "rgb": {
    "r": 21,
    "g": 24,
    "b": 120
  },
  "hsl": {
    "h": 238.182,
    "s": 70.213,
    "l": 27.647
  },
  "oklch": {
    "l": 0.29371,
    "c": 0.15621,
    "h": 270.4
  },
  "luminance": 0.02169
}

Semantic roles & 50–950 ramp

primary
#151878
secondary
#AEAA3B
accent
#E83BED
background
#F6F5FA
surface
#ECE9F3
border
#C7C5CD
text
#07030F
muted
#7A787F

Preview Lab

Preview with #151878

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

Preview Lab → · Contrast checker → · Palette generator →

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