#152080#152080

#152080 is a dark, vivid blue. Relative luminance 0.028; OKLCH L 31.5% C 0.158 H 268.8°. Best body text is #FFFFFF at 13.55:1 contrast (WCAG AA passes).

Color values

HEX#152080
RGBrgb(21, 32, 128)
HSLhsl(234, 72%, 29%)
HSVhsv(234, 84%, 50%)
CMYKcmyk(83.6%, 75%, 0%, 49.8%)
CIE-LABlab(19.02, 32.86, -54.63)
CIE-LCHlch(19.02, 63.75, 301.03°)
OKLaboklab(31.54% -0.0033 -0.1583)
OKLCHoklch(31.54% 0.158 268.8)
XYZxyz(4.7207, 2.7504, 20.7000)
Luminance0.0275 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#152080 #807515
analogous
#155680 #152080 #401580
triadic
#152080 #801520 #208015
tetradic
#152080 #801556 #807515 #158040
square
#152080 #801556 #807515 #158040
split-complementary
#152080 #804015 #568015
monochromatic
#04071A #0C134B #152080 #1E2DB5 #3244DD

Accessibility & contrast

On white

13.55
#152080 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.55
#152080 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #152080
13.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##152080#FFFFFF#000000##FFFFFF
##1520801.0013.551.5513.55
#FFFFFF13.551.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003383
Deuteranopia (green-blind)
#00297E
Tritanopia (blue-blind)
#003C4E
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #152080;
/* rgb */ color: rgb(21, 32, 128);
/* oklch */ color: oklch(31.5% 0.158 268.8);
Tailwind
colors: {
  custom: {
    50: '#685ca6',
    500: '#152080',
    950: '#000000',
  },
}
SCSS
$custom: #152080;
$custom-light: #685ca6;
$custom-dark: #000000;
JSON
{
  "hex": "#152080",
  "rgb": {
    "r": 21,
    "g": 32,
    "b": 128
  },
  "hsl": {
    "h": 233.832,
    "s": 71.812,
    "l": 29.216
  },
  "oklch": {
    "l": 0.31542,
    "c": 0.15832,
    "h": 268.8
  },
  "luminance": 0.02751
}

Semantic roles & 50–950 ramp

primary
#152080
secondary
#B5A83C
accent
#DC39EF
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#07040F
muted
#7A797F

Preview Lab

Preview with #152080

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

Preview Lab → · Contrast checker → · Palette generator →

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