#152880#152880

#152880 is a dark, vivid blue. Relative luminance 0.032; OKLCH L 33.0% C 0.149 H 267.4°. Best body text is #FFFFFF at 12.75:1 contrast (WCAG AA passes).

Color values

HEX#152880
RGBrgb(21, 40, 128)
HSLhsl(229, 72%, 29%)
HSVhsv(229, 84%, 50%)
CMYKcmyk(83.6%, 68.8%, 0%, 49.8%)
CIE-LABlab(20.96, 27.57, -51.42)
CIE-LCHlch(20.96, 58.35, 298.20°)
OKLaboklab(32.95% -0.0069 -0.1489)
OKLCHoklch(32.95% 0.149 267.4)
XYZxyz(4.9630, 3.2349, 20.7807)
Luminance0.0324 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#152880 #806D15
analogous
#155E80 #152880 #381580
triadic
#152880 #801528 #288015
tetradic
#152880 #80155E #806D15 #158038
square
#152880 #80155E #806D15 #158038
split-complementary
#152880 #803815 #5E8015
monochromatic
#04081A #0C184B #152880 #1E38B5 #3250DD

Accessibility & contrast

On white

12.75
#152880 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#152880 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #152880
12.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##152880#FFFFFF#000000##FFFFFF
##1528801.0012.751.6512.75
#FFFFFF12.751.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003883
Deuteranopia (green-blind)
#002D7E
Tritanopia (blue-blind)
#004050
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #152880;
/* rgb */ color: rgb(21, 40, 128);
/* oklch */ color: oklch(33.0% 0.149 267.4);
Tailwind
colors: {
  custom: {
    50: '#6862a6',
    500: '#152880',
    950: '#000000',
  },
}
SCSS
$custom: #152880;
$custom-light: #6862a6;
$custom-dark: #000000;
JSON
{
  "hex": "#152880",
  "rgb": {
    "r": 21,
    "g": 40,
    "b": 128
  },
  "hsl": {
    "h": 229.346,
    "s": 71.812,
    "l": 29.216
  },
  "oklch": {
    "l": 0.32951,
    "c": 0.1491,
    "h": 267.4
  },
  "luminance": 0.03236
}

Semantic roles & 50–950 ramp

primary
#152880
secondary
#B59F3C
accent
#CE39EF
background
#F6F5FA
surface
#ECEAF4
border
#C7C6CE
text
#07050F
muted
#7A797F

Preview Lab

Preview with #152880

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

Preview Lab → · Contrast checker → · Palette generator →

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