#152B78#152B78

#152B78 is a dark, vivid blue. Relative luminance 0.032; OKLCH L 32.7% C 0.134 H 266.4°. Best body text is #FFFFFF at 12.74:1 contrast (WCAG AA passes).

Color values

HEX#152B78
RGBrgb(21, 43, 120)
HSLhsl(227, 70%, 28%)
HSVhsv(227, 83%, 47%)
CMYKcmyk(82.5%, 64.2%, 0%, 52.9%)
CIE-LABlab(20.99, 22.27, -46.30)
CIE-LCHlch(20.99, 51.37, 295.69°)
OKLaboklab(32.74% -0.0084 -0.1339)
OKLCHoklch(32.74% 0.134 266.4)
XYZxyz(4.5621, 3.2427, 18.1511)
Luminance0.0324 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#152B78 #786215
analogous
#155C78 #152B78 #311578
triadic
#152B78 #78152B #2B7815
tetradic
#152B78 #78155C #786215 #157831
square
#152B78 #78155C #786215 #157831
split-complementary
#152B78 #783115 #5C7815
monochromatic
#05091A #0C1844 #152B78 #1E3EAC #2D54DA

Accessibility & contrast

On white

12.74
#152B78 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#152B78 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #152B78
12.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##152B78#FFFFFF#000000##FFFFFF
##152B781.0012.741.6512.74
#FFFFFF12.741.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.741.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #152b78;
/* rgb */ color: rgb(21, 43, 120);
/* oklch */ color: oklch(32.7% 0.134 266.4);
Tailwind
colors: {
  custom: {
    50: '#6564a0',
    500: '#152b78',
    950: '#000000',
  },
}
SCSS
$custom: #152b78;
$custom-light: #6564a0;
$custom-dark: #000000;
JSON
{
  "hex": "#152b78",
  "rgb": {
    "r": 21,
    "g": 43,
    "b": 120
  },
  "hsl": {
    "h": 226.667,
    "s": 70.213,
    "l": 27.647
  },
  "oklch": {
    "l": 0.32736,
    "c": 0.13417,
    "h": 266.4
  },
  "luminance": 0.03243
}

Semantic roles & 50–950 ramp

primary
#152B78
secondary
#AE943B
accent
#C53BED
background
#F6F5F9
surface
#EBEAF2
border
#C6C6CC
text
#07050F
muted
#7A797E

Preview Lab

Preview with #152B78

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

Preview Lab → · Contrast checker → · Palette generator →

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