#152C80#152C80

#152C80 is a dark, vivid blue. Relative luminance 0.035; OKLCH L 33.7% C 0.144 H 266.4°. Best body text is #FFFFFF at 12.33:1 contrast (WCAG AA passes).

Color values

HEX#152C80
RGBrgb(21, 44, 128)
HSLhsl(227, 72%, 29%)
HSVhsv(227, 84%, 50%)
CMYKcmyk(83.6%, 65.6%, 0%, 49.8%)
CIE-LABlab(22.01, 24.80, -49.70)
CIE-LCHlch(22.01, 55.55, 296.52°)
OKLaboklab(33.72% -0.0091 -0.1439)
OKLCHoklch(33.72% 0.144 266.4)
XYZxyz(5.1049, 3.5187, 20.8280)
Luminance0.0352 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#152C80 #806915
analogous
#156280 #152C80 #341580
triadic
#152C80 #80152C #2C8015
tetradic
#152C80 #801562 #806915 #158034
square
#152C80 #801562 #806915 #158034
split-complementary
#152C80 #803415 #628015
monochromatic
#04091A #0C1A4B #152C80 #1E3EB5 #3257DD

Accessibility & contrast

On white

12.33
#152C80 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#152C80 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #152C80
12.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##152C80#FFFFFF#000000##FFFFFF
##152C801.0012.331.7012.33
#FFFFFF12.331.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A83
Deuteranopia (green-blind)
#00307E
Tritanopia (blue-blind)
#004251
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #152c80;
/* rgb */ color: rgb(21, 44, 128);
/* oklch */ color: oklch(33.7% 0.144 266.4);
Tailwind
colors: {
  custom: {
    50: '#6764a6',
    500: '#152c80',
    950: '#000000',
  },
}
SCSS
$custom: #152c80;
$custom-light: #6764a6;
$custom-dark: #000000;
JSON
{
  "hex": "#152c80",
  "rgb": {
    "r": 21,
    "g": 44,
    "b": 128
  },
  "hsl": {
    "h": 227.103,
    "s": 71.812,
    "l": 29.216
  },
  "oklch": {
    "l": 0.33723,
    "c": 0.14415,
    "h": 266.4
  },
  "luminance": 0.03519
}

Semantic roles & 50–950 ramp

primary
#152C80
secondary
#B59B3C
accent
#C839EF
background
#F6F6FA
surface
#ECEBF4
border
#C7C6CE
text
#07050F
muted
#7A7A7F

Preview Lab

Preview with #152C80

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

Preview Lab → · Contrast checker → · Palette generator →

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