#152C78#152C78

#152C78 is a dark, vivid blue. Relative luminance 0.033; OKLCH L 32.9% C 0.133 H 266.1°. Best body text is #FFFFFF at 12.62:1 contrast (WCAG AA passes).

Color values

HEX#152C78
RGBrgb(21, 44, 120)
HSLhsl(226, 70%, 28%)
HSVhsv(226, 83%, 47%)
CMYKcmyk(82.5%, 63.3%, 0%, 52.9%)
CIE-LABlab(21.27, 21.56, -45.84)
CIE-LCHlch(21.27, 50.66, 295.19°)
OKLaboklab(32.94% -0.009 -0.1326)
OKLCHoklch(32.94% 0.133 266.1)
XYZxyz(4.5989, 3.3163, 18.1634)
Luminance0.0332 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#152C78 #786115
analogous
#155D78 #152C78 #301578
triadic
#152C78 #78152C #2C7815
tetradic
#152C78 #78155D #786115 #157830
square
#152C78 #78155D #786115 #157830
split-complementary
#152C78 #783015 #5D7815
monochromatic
#050A1A #0C1944 #152C78 #1E3FAC #2D55DA

Accessibility & contrast

On white

12.62
#152C78 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#152C78 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #152C78
12.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##152C78#FFFFFF#000000##FFFFFF
##152C781.0012.621.6612.62
#FFFFFF12.621.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00387B
Deuteranopia (green-blind)
#002F77
Tritanopia (blue-blind)
#00404D
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #152c78;
/* rgb */ color: rgb(21, 44, 120);
/* oklch */ color: oklch(32.9% 0.133 266.1);
Tailwind
colors: {
  custom: {
    50: '#6564a0',
    500: '#152c78',
    950: '#000000',
  },
}
SCSS
$custom: #152c78;
$custom-light: #6564a0;
$custom-dark: #000000;
JSON
{
  "hex": "#152c78",
  "rgb": {
    "r": 21,
    "g": 44,
    "b": 120
  },
  "hsl": {
    "h": 226.061,
    "s": 70.213,
    "l": 27.647
  },
  "oklch": {
    "l": 0.32943,
    "c": 0.13287,
    "h": 266.1
  },
  "luminance": 0.03317
}

Semantic roles & 50–950 ramp

primary
#152C78
secondary
#AE933B
accent
#C43BED
background
#F6F6F9
surface
#EBEBF2
border
#C6C6CC
text
#06050F
muted
#7A7A7E

Preview Lab

Preview with #152C78

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

Preview Lab → · Contrast checker → · Palette generator →

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