#152878#152878

#152878 is a dark, vivid blue. Relative luminance 0.030; OKLCH L 32.1% C 0.138 H 267.3°. Best body text is #FFFFFF at 13.07:1 contrast (WCAG AA passes).

Color values

HEX#152878
RGBrgb(21, 40, 120)
HSLhsl(228, 70%, 28%)
HSVhsv(228, 83%, 47%)
CMYKcmyk(82.5%, 66.7%, 0%, 52.9%)
CIE-LABlab(20.17, 24.38, -47.63)
CIE-LCHlch(20.17, 53.51, 297.11°)
OKLaboklab(32.13% -0.0065 -0.1379)
OKLCHoklch(32.13% 0.138 267.3)
XYZxyz(4.4570, 3.0326, 18.1161)
Luminance0.0303 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#152878 #786515
analogous
#155978 #152878 #341578
triadic
#152878 #781528 #287815
tetradic
#152878 #781559 #786515 #157834
square
#152878 #781559 #786515 #157834
split-complementary
#152878 #783415 #597815
monochromatic
#05091A #0C1744 #152878 #1E39AC #2D4EDA

Accessibility & contrast

On white

13.07
#152878 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.61
#152878 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #152878
13.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##152878#FFFFFF#000000##FFFFFF
##1528781.0013.071.6113.07
#FFFFFF13.071.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00357B
Deuteranopia (green-blind)
#002C76
Tritanopia (blue-blind)
#003D4C
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #152878;
/* rgb */ color: rgb(21, 40, 120);
/* oklch */ color: oklch(32.1% 0.138 267.3);
Tailwind
colors: {
  custom: {
    50: '#6561a0',
    500: '#152878',
    950: '#000000',
  },
}
SCSS
$custom: #152878;
$custom-light: #6561a0;
$custom-dark: #000000;
JSON
{
  "hex": "#152878",
  "rgb": {
    "r": 21,
    "g": 40,
    "b": 120
  },
  "hsl": {
    "h": 228.485,
    "s": 70.213,
    "l": 27.647
  },
  "oklch": {
    "l": 0.32132,
    "c": 0.13801,
    "h": 267.3
  },
  "luminance": 0.03033
}

Semantic roles & 50–950 ramp

primary
#152878
secondary
#AE983B
accent
#CB3BED
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#07050F
muted
#7A797E

Preview Lab

Preview with #152878

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

Preview Lab → · Contrast checker → · Palette generator →

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