#152578#152578

#152578 is a dark, vivid blue. Relative luminance 0.028; OKLCH L 31.6% C 0.142 H 268.1°. Best body text is #FFFFFF at 13.39:1 contrast (WCAG AA passes).

Color values

HEX#152578
RGBrgb(21, 37, 120)
HSLhsl(230, 70%, 28%)
HSVhsv(230, 83%, 47%)
CMYKcmyk(82.5%, 69.2%, 0%, 52.9%)
CIE-LABlab(19.38, 26.47, -48.93)
CIE-LCHlch(19.38, 55.63, 298.41°)
OKLaboklab(31.55% -0.0048 -0.1417)
OKLCHoklch(31.55% 0.142 268.1)
XYZxyz(4.3598, 2.8381, 18.0837)
Luminance0.0284 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#152578 #786815
analogous
#155678 #152578 #361578
triadic
#152578 #781525 #257815
tetradic
#152578 #781556 #786815 #157836
square
#152578 #781556 #786815 #157836
split-complementary
#152578 #783615 #567815
monochromatic
#05081A #0C1544 #152578 #1E35AC #2D49DA

Accessibility & contrast

On white

13.39
#152578 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.57
#152578 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #152578
13.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##152578#FFFFFF#000000##FFFFFF
##1525781.0013.391.5713.39
#FFFFFF13.391.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00347B
Deuteranopia (green-blind)
#002A76
Tritanopia (blue-blind)
#003B4B
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #152578;
/* rgb */ color: rgb(21, 37, 120);
/* oklch */ color: oklch(31.6% 0.142 268.1);
Tailwind
colors: {
  custom: {
    50: '#665fa0',
    500: '#152578',
    950: '#000000',
  },
}
SCSS
$custom: #152578;
$custom-light: #665fa0;
$custom-dark: #000000;
JSON
{
  "hex": "#152578",
  "rgb": {
    "r": 21,
    "g": 37,
    "b": 120
  },
  "hsl": {
    "h": 230.303,
    "s": 70.213,
    "l": 27.647
  },
  "oklch": {
    "l": 0.31553,
    "c": 0.14175,
    "h": 268.1
  },
  "luminance": 0.02839
}

Semantic roles & 50–950 ramp

primary
#152578
secondary
#AE9B3B
accent
#D03BED
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#07040F
muted
#7A797E

Preview Lab

Preview with #152578

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

Preview Lab → · Contrast checker → · Palette generator →

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