#152780#152780

#152780 is a dark, vivid blue. Relative luminance 0.032; OKLCH L 32.8% C 0.150 H 267.6°. Best body text is #FFFFFF at 12.85:1 contrast (WCAG AA passes).

Color values

HEX#152780
RGBrgb(21, 39, 128)
HSLhsl(230, 72%, 29%)
HSVhsv(230, 84%, 50%)
CMYKcmyk(83.6%, 69.5%, 0%, 49.8%)
CIE-LABlab(20.71, 28.25, -51.84)
CIE-LCHlch(20.71, 59.04, 298.59°)
OKLaboklab(32.76% -0.0064 -0.1502)
OKLCHoklch(32.76% 0.15 267.6)
XYZxyz(4.9297, 3.1684, 20.7696)
Luminance0.0317 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#152780 #806E15
analogous
#155D80 #152780 #391580
triadic
#152780 #801527 #278015
tetradic
#152780 #80155D #806E15 #158039
square
#152780 #80155D #806E15 #158039
split-complementary
#152780 #803915 #5D8015
monochromatic
#04081A #0C174B #152780 #1E37B5 #324FDD

Accessibility & contrast

On white

12.85
#152780 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#152780 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #152780
12.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##152780#FFFFFF#000000##FFFFFF
##1527801.0012.851.6312.85
#FFFFFF12.851.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003783
Deuteranopia (green-blind)
#002D7E
Tritanopia (blue-blind)
#003F50
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #152780;
/* rgb */ color: rgb(21, 39, 128);
/* oklch */ color: oklch(32.8% 0.150 267.6);
Tailwind
colors: {
  custom: {
    50: '#6861a6',
    500: '#152780',
    950: '#000000',
  },
}
SCSS
$custom: #152780;
$custom-light: #6861a6;
$custom-dark: #000000;
JSON
{
  "hex": "#152780",
  "rgb": {
    "r": 21,
    "g": 39,
    "b": 128
  },
  "hsl": {
    "h": 229.907,
    "s": 71.812,
    "l": 29.216
  },
  "oklch": {
    "l": 0.32764,
    "c": 0.15031,
    "h": 267.6
  },
  "luminance": 0.03169
}

Semantic roles & 50–950 ramp

primary
#152780
secondary
#B5A13C
accent
#D039EF
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#07050F
muted
#7A797F

Preview Lab

Preview with #152780

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

Preview Lab → · Contrast checker → · Palette generator →

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