#152F78#152F78

#152F78 is a dark, vivid blue. Relative luminance 0.035; OKLCH L 33.6% C 0.129 H 265.1°. Best body text is #FFFFFF at 12.28:1 contrast (WCAG AA passes).

Color values

HEX#152F78
RGBrgb(21, 47, 120)
HSLhsl(224, 70%, 28%)
HSVhsv(224, 83%, 47%)
CMYKcmyk(82.5%, 60.8%, 0%, 52.9%)
CIE-LABlab(22.12, 19.42, -44.46)
CIE-LCHlch(22.12, 48.51, 293.59°)
OKLaboklab(33.58% -0.0111 -0.1284)
OKLCHoklch(33.58% 0.129 265.1)
XYZxyz(4.7147, 3.5480, 18.2020)
Luminance0.0355 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#152F78 #785E15
analogous
#156178 #152F78 #2C1578
triadic
#152F78 #78152F #2F7815
tetradic
#152F78 #781561 #785E15 #15782C
square
#152F78 #781561 #785E15 #15782C
split-complementary
#152F78 #782C15 #617815
monochromatic
#050A1A #0C1B44 #152F78 #1E43AC #2D5BDA

Accessibility & contrast

On white

12.28
#152F78 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#152F78 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #152F78
12.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##152F78#FFFFFF#000000##FFFFFF
##152F781.0012.281.7112.28
#FFFFFF12.281.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A7A
Deuteranopia (green-blind)
#003077
Tritanopia (blue-blind)
#00414E
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #152f78;
/* rgb */ color: rgb(21, 47, 120);
/* oklch */ color: oklch(33.6% 0.129 265.1);
Tailwind
colors: {
  custom: {
    50: '#6567a0',
    500: '#152f78',
    950: '#000000',
  },
}
SCSS
$custom: #152f78;
$custom-light: #6567a0;
$custom-dark: #000000;
JSON
{
  "hex": "#152f78",
  "rgb": {
    "r": 21,
    "g": 47,
    "b": 120
  },
  "hsl": {
    "h": 224.242,
    "s": 70.213,
    "l": 27.647
  },
  "oklch": {
    "l": 0.33576,
    "c": 0.12893,
    "h": 265.1
  },
  "luminance": 0.03549
}

Semantic roles & 50–950 ramp

primary
#152F78
secondary
#AE903B
accent
#BE3BED
background
#F6F6F9
surface
#EBEBF2
border
#C6C6CC
text
#06060F
muted
#7A7A7E

Preview Lab

Preview with #152F78

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

Preview Lab → · Contrast checker → · Palette generator →

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