#152E80#152E80

#152E80 is a dark, vivid blue. Relative luminance 0.037; OKLCH L 34.1% C 0.142 H 265.9°. Best body text is #FFFFFF at 12.11:1 contrast (WCAG AA passes).

Color values

HEX#152E80
RGBrgb(21, 46, 128)
HSLhsl(226, 72%, 29%)
HSVhsv(226, 84%, 50%)
CMYKcmyk(83.6%, 64.1%, 0%, 49.8%)
CIE-LABlab(22.55, 23.40, -48.81)
CIE-LCHlch(22.55, 54.13, 295.62°)
OKLaboklab(34.12% -0.0102 -0.1412)
OKLCHoklch(34.12% 0.142 265.9)
XYZxyz(5.1812, 3.6713, 20.8535)
Luminance0.0367 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#152E80 #806715
analogous
#156480 #152E80 #321580
triadic
#152E80 #80152E #2E8015
tetradic
#152E80 #801564 #806715 #158032
square
#152E80 #801564 #806715 #158032
split-complementary
#152E80 #803215 #648015
monochromatic
#04091A #0C1B4B #152E80 #1E41B5 #325ADD

Accessibility & contrast

On white

12.11
#152E80 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#152E80 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #152E80
12.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##152E80#FFFFFF#000000##FFFFFF
##152E801.0012.111.7312.11
#FFFFFF12.111.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B83
Deuteranopia (green-blind)
#00317E
Tritanopia (blue-blind)
#004352
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #152e80;
/* rgb */ color: rgb(21, 46, 128);
/* oklch */ color: oklch(34.1% 0.142 265.9);
Tailwind
colors: {
  custom: {
    50: '#6766a6',
    500: '#152e80',
    950: '#000000',
  },
}
SCSS
$custom: #152e80;
$custom-light: #6766a6;
$custom-dark: #000000;
JSON
{
  "hex": "#152e80",
  "rgb": {
    "r": 21,
    "g": 46,
    "b": 128
  },
  "hsl": {
    "h": 225.981,
    "s": 71.812,
    "l": 29.216
  },
  "oklch": {
    "l": 0.34124,
    "c": 0.14161,
    "h": 265.9
  },
  "luminance": 0.03672
}

Semantic roles & 50–950 ramp

primary
#152E80
secondary
#B5993C
accent
#C439EF
background
#F6F6FA
surface
#EBEBF4
border
#C6C6CE
text
#07050F
muted
#7A7A7F

Preview Lab

Preview with #152E80

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

Preview Lab → · Contrast checker → · Palette generator →

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