#152B80#152B80

#152B80 is a dark, vivid blue. Relative luminance 0.034; OKLCH L 33.5% C 0.145 H 266.6°. Best body text is #FFFFFF at 12.43:1 contrast (WCAG AA passes).

Color values

HEX#152B80
RGBrgb(21, 43, 128)
HSLhsl(228, 72%, 29%)
HSVhsv(228, 84%, 50%)
CMYKcmyk(83.6%, 66.4%, 0%, 49.8%)
CIE-LABlab(21.74, 25.50, -50.14)
CIE-LCHlch(21.74, 56.25, 296.96°)
OKLaboklab(33.53% -0.0085 -0.1452)
OKLCHoklch(33.53% 0.145 266.6)
XYZxyz(5.0681, 3.4451, 20.8158)
Luminance0.0345 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#152B80 #806A15
analogous
#156180 #152B80 #351580
triadic
#152B80 #80152B #2B8015
tetradic
#152B80 #801561 #806A15 #158035
square
#152B80 #801561 #806A15 #158035
split-complementary
#152B80 #803515 #618015
monochromatic
#04091A #0C194B #152B80 #1E3DB5 #3255DD

Accessibility & contrast

On white

12.43
#152B80 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#152B80 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #152B80
12.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##152B80#FFFFFF#000000##FFFFFF
##152B801.0012.431.6912.43
#FFFFFF12.431.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003983
Deuteranopia (green-blind)
#002F7E
Tritanopia (blue-blind)
#004251
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #152b80;
/* rgb */ color: rgb(21, 43, 128);
/* oklch */ color: oklch(33.5% 0.145 266.6);
Tailwind
colors: {
  custom: {
    50: '#6764a6',
    500: '#152b80',
    950: '#000000',
  },
}
SCSS
$custom: #152b80;
$custom-light: #6764a6;
$custom-dark: #000000;
JSON
{
  "hex": "#152b80",
  "rgb": {
    "r": 21,
    "g": 43,
    "b": 128
  },
  "hsl": {
    "h": 227.664,
    "s": 71.812,
    "l": 29.216
  },
  "oklch": {
    "l": 0.33526,
    "c": 0.14541,
    "h": 266.6
  },
  "luminance": 0.03446
}

Semantic roles & 50–950 ramp

primary
#152B80
secondary
#B59C3C
accent
#C939EF
background
#F6F5FA
surface
#ECEAF4
border
#C7C6CE
text
#07050F
muted
#7A797F

Preview Lab

Preview with #152B80

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

Preview Lab → · Contrast checker → · Palette generator →

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