#21519C#21519C

#21519C is a dark, vivid blue. Relative luminance 0.086; OKLCH L 44.5% C 0.133 H 259.2°. Best body text is #FFFFFF at 7.72:1 contrast (WCAG AA passes).

Color values

HEX#21519C
RGBrgb(33, 81, 156)
HSLhsl(217, 65%, 37%)
HSVhsv(217, 79%, 61%)
CMYKcmyk(78.8%, 48.1%, 0%, 38.8%)
CIE-LABlab(35.22, 11.83, -45.50)
CIE-LCHlch(35.22, 47.01, 284.58°)
OKLaboklab(44.52% -0.0249 -0.1307)
OKLCHoklch(44.52% 0.133 259.2)
XYZxyz(9.5682, 8.6074, 32.6032)
Luminance0.0861 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21519C #9C6C21
analogous
#218F9C #21519C #2E219C
triadic
#21519C #9C2151 #519C21
tetradic
#21519C #9C218F #9C6C21 #219C2E
square
#21519C #9C218F #9C6C21 #219C2E
split-complementary
#21519C #9C2E21 #8F9C21
monochromatic
#0C1D37 #163769 #21519C #2C6BCF #5B8EDC

Accessibility & contrast

On white

7.72
#21519C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.72
#21519C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21519C
7.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21519C#FFFFFF#000000##FFFFFF
##21519C1.007.722.727.72
#FFFFFF7.721.0021.001.00
#0000002.7221.001.0021.00
##FFFFFF7.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#28599F
Deuteranopia (green-blind)
#024E9B
Tritanopia (blue-blind)
#00636F
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #21519c;
/* rgb */ color: rgb(33, 81, 156);
/* oklch */ color: oklch(44.5% 0.133 259.2);
Tailwind
colors: {
  custom: {
    50: '#7081ba',
    500: '#21519c',
    950: '#000000',
  },
}
SCSS
$custom: #21519c;
$custom-light: #7081ba;
$custom-dark: #000000;
JSON
{
  "hex": "#21519c",
  "rgb": {
    "r": 33,
    "g": 81,
    "b": 156
  },
  "hsl": {
    "h": 216.585,
    "s": 65.079,
    "l": 37.059
  },
  "oklch": {
    "l": 0.44522,
    "c": 0.13301,
    "h": 259.2
  },
  "luminance": 0.08608
}

Semantic roles & 50–950 ramp

primary
#21519C
secondary
#C19858
accent
#A640E8
background
#F7F7FB
surface
#EDEEF6
border
#C8C9D0
text
#090A11
muted
#7B7C80

Preview Lab

Preview with #21519C

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

Preview Lab → · Contrast checker → · Palette generator →

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