#152A80#152A80

#152A80 is a dark, vivid blue. Relative luminance 0.034; OKLCH L 33.3% C 0.147 H 266.9°. Best body text is #FFFFFF at 12.54:1 contrast (WCAG AA passes).

Color values

HEX#152A80
RGBrgb(21, 42, 128)
HSLhsl(228, 72%, 29%)
HSVhsv(228, 84%, 50%)
CMYKcmyk(83.6%, 67.2%, 0%, 49.8%)
CIE-LABlab(21.48, 26.19, -50.57)
CIE-LCHlch(21.48, 56.95, 297.38°)
OKLaboklab(33.33% -0.0079 -0.1464)
OKLCHoklch(33.33% 0.147 266.9)
XYZxyz(5.0321, 3.3733, 20.8038)
Luminance0.0337 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#152A80 #806B15
analogous
#156080 #152A80 #361580
triadic
#152A80 #80152A #2A8015
tetradic
#152A80 #801560 #806B15 #158036
square
#152A80 #801560 #806B15 #158036
split-complementary
#152A80 #803615 #608015
monochromatic
#04091A #0C194B #152A80 #1E3BB5 #3254DD

Accessibility & contrast

On white

12.54
#152A80 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#152A80 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #152A80
12.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##152A80#FFFFFF#000000##FFFFFF
##152A801.0012.541.6712.54
#FFFFFF12.541.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.541.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #152a80;
/* rgb */ color: rgb(21, 42, 128);
/* oklch */ color: oklch(33.3% 0.147 266.9);
Tailwind
colors: {
  custom: {
    50: '#6763a6',
    500: '#152a80',
    950: '#000000',
  },
}
SCSS
$custom: #152a80;
$custom-light: #6763a6;
$custom-dark: #000000;
JSON
{
  "hex": "#152a80",
  "rgb": {
    "r": 21,
    "g": 42,
    "b": 128
  },
  "hsl": {
    "h": 228.224,
    "s": 71.812,
    "l": 29.216
  },
  "oklch": {
    "l": 0.33332,
    "c": 0.14665,
    "h": 266.9
  },
  "luminance": 0.03374
}

Semantic roles & 50–950 ramp

primary
#152A80
secondary
#B59D3C
accent
#CB39EF
background
#F6F5FA
surface
#ECEAF4
border
#C7C6CE
text
#07050F
muted
#7A797F

Preview Lab

Preview with #152A80

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

Preview Lab → · Contrast checker → · Palette generator →

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