#152978#152978

#152978 is a dark, vivid blue. Relative luminance 0.031; OKLCH L 32.3% C 0.137 H 267.0°. Best body text is #FFFFFF at 12.96:1 contrast (WCAG AA passes).

Color values

HEX#152978
RGBrgb(21, 41, 120)
HSLhsl(228, 70%, 28%)
HSVhsv(228, 83%, 47%)
CMYKcmyk(82.5%, 65.8%, 0%, 52.9%)
CIE-LABlab(20.44, 23.68, -47.19)
CIE-LCHlch(20.44, 52.80, 296.65°)
OKLaboklab(32.33% -0.0071 -0.1366)
OKLCHoklch(32.33% 0.137 267)
XYZxyz(4.4912, 3.1009, 18.1275)
Luminance0.0310 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#152978 #786415
analogous
#155A78 #152978 #331578
triadic
#152978 #781529 #297815
tetradic
#152978 #78155A #786415 #157833
square
#152978 #78155A #786415 #157833
split-complementary
#152978 #783315 #5A7815
monochromatic
#05091A #0C1744 #152978 #1E3BAC #2D50DA

Accessibility & contrast

On white

12.96
#152978 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#152978 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #152978
12.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##152978#FFFFFF#000000##FFFFFF
##1529781.0012.961.6212.96
#FFFFFF12.961.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00367B
Deuteranopia (green-blind)
#002D77
Tritanopia (blue-blind)
#003E4C
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #152978;
/* rgb */ color: rgb(21, 41, 120);
/* oklch */ color: oklch(32.3% 0.137 267.0);
Tailwind
colors: {
  custom: {
    50: '#6562a0',
    500: '#152978',
    950: '#000000',
  },
}
SCSS
$custom: #152978;
$custom-light: #6562a0;
$custom-dark: #000000;
JSON
{
  "hex": "#152978",
  "rgb": {
    "r": 21,
    "g": 41,
    "b": 120
  },
  "hsl": {
    "h": 227.879,
    "s": 70.213,
    "l": 27.647
  },
  "oklch": {
    "l": 0.32331,
    "c": 0.13675,
    "h": 267
  },
  "luminance": 0.03101
}

Semantic roles & 50–950 ramp

primary
#152978
secondary
#AE963B
accent
#C93BED
background
#F6F5F9
surface
#EBEAF2
border
#C6C6CC
text
#07050F
muted
#7A797E

Preview Lab

Preview with #152978

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

Preview Lab → · Contrast checker → · Palette generator →

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