#152A78#152A78

#152A78 is a dark, vivid blue. Relative luminance 0.032; OKLCH L 32.5% C 0.135 H 266.7°. Best body text is #FFFFFF at 12.85:1 contrast (WCAG AA passes).

Color values

HEX#152A78
RGBrgb(21, 42, 120)
HSLhsl(227, 70%, 28%)
HSVhsv(227, 83%, 47%)
CMYKcmyk(82.5%, 65%, 0%, 52.9%)
CIE-LABlab(20.72, 22.97, -46.75)
CIE-LCHlch(20.72, 52.09, 296.17°)
OKLaboklab(32.53% -0.0077 -0.1352)
OKLCHoklch(32.53% 0.135 266.7)
XYZxyz(4.5262, 3.1709, 18.1392)
Luminance0.0317 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#152A78 #786315
analogous
#155B78 #152A78 #321578
triadic
#152A78 #78152A #2A7815
tetradic
#152A78 #78155B #786315 #157832
square
#152A78 #78155B #786315 #157832
split-complementary
#152A78 #783215 #5B7815
monochromatic
#05091A #0C1844 #152A78 #1E3CAC #2D52DA

Accessibility & contrast

On white

12.85
#152A78 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#152A78 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #152A78
12.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##152A78#FFFFFF#000000##FFFFFF
##152A781.0012.851.6312.85
#FFFFFF12.851.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.851.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #152a78;
/* rgb */ color: rgb(21, 42, 120);
/* oklch */ color: oklch(32.5% 0.135 266.7);
Tailwind
colors: {
  custom: {
    50: '#6563a0',
    500: '#152a78',
    950: '#000000',
  },
}
SCSS
$custom: #152a78;
$custom-light: #6563a0;
$custom-dark: #000000;
JSON
{
  "hex": "#152a78",
  "rgb": {
    "r": 21,
    "g": 42,
    "b": 120
  },
  "hsl": {
    "h": 227.273,
    "s": 70.213,
    "l": 27.647
  },
  "oklch": {
    "l": 0.32533,
    "c": 0.13546,
    "h": 266.7
  },
  "luminance": 0.03171
}

Semantic roles & 50–950 ramp

primary
#152A78
secondary
#AE953B
accent
#C73BED
background
#F6F5F9
surface
#EBEAF2
border
#C6C6CC
text
#07050F
muted
#7A797E

Preview Lab

Preview with #152A78

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

Preview Lab → · Contrast checker → · Palette generator →

#152A78 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva