#21519D#21519D

#21519D is a dark, vivid blue. Relative luminance 0.086; OKLCH L 44.6% C 0.134 H 259.4°. Best body text is #FFFFFF at 7.70:1 contrast (WCAG AA passes).

Color values

HEX#21519D
RGBrgb(33, 81, 157)
HSLhsl(217, 65%, 37%)
HSVhsv(217, 79%, 62%)
CMYKcmyk(79%, 48.4%, 0%, 38.4%)
CIE-LABlab(35.28, 12.23, -45.99)
CIE-LCHlch(35.28, 47.59, 284.89°)
OKLaboklab(44.6% -0.0247 -0.1321)
OKLCHoklch(44.6% 0.134 259.4)
XYZxyz(9.6532, 8.6414, 33.0509)
Luminance0.0864 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21519D #9D6D21
analogous
#218F9D #21519D #2F219D
triadic
#21519D #9D2151 #519D21
tetradic
#21519D #9D218F #9D6D21 #219D2F
square
#21519D #9D218F #9D6D21 #219D2F
split-complementary
#21519D #9D2F21 #8F9D21
monochromatic
#0C1D38 #16376A #21519D #2C6BD0 #5C8EDD

Accessibility & contrast

On white

7.70
#21519D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.73
#21519D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21519D
7.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21519D#FFFFFF#000000##FFFFFF
##21519D1.007.702.737.70
#FFFFFF7.701.0021.001.00
#0000002.7321.001.0021.00
##FFFFFF7.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2759A0
Deuteranopia (green-blind)
#004E9B
Tritanopia (blue-blind)
#00636F
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #21519d;
/* rgb */ color: rgb(33, 81, 157);
/* oklch */ color: oklch(44.6% 0.134 259.4);
Tailwind
colors: {
  custom: {
    50: '#7081ba',
    500: '#21519d',
    950: '#000000',
  },
}
SCSS
$custom: #21519d;
$custom-light: #7081ba;
$custom-dark: #000000;
JSON
{
  "hex": "#21519d",
  "rgb": {
    "r": 33,
    "g": 81,
    "b": 157
  },
  "hsl": {
    "h": 216.774,
    "s": 65.263,
    "l": 37.255
  },
  "oklch": {
    "l": 0.44596,
    "c": 0.1344,
    "h": 259.4
  },
  "luminance": 0.08643
}

Semantic roles & 50–950 ramp

primary
#21519D
secondary
#C19959
accent
#A740E8
background
#F7F7FB
surface
#EDEEF6
border
#C8C9D0
text
#090A12
muted
#7B7C81

Preview Lab

Preview with #21519D

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

Preview Lab → · Contrast checker → · Palette generator →

#21519D Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva