#21519F#21519F

#21519F is a dark, vivid blue. Relative luminance 0.087; OKLCH L 44.7% C 0.137 H 259.8°. Best body text is #FFFFFF at 7.66:1 contrast (WCAG AA passes).

Color values

HEX#21519F
RGBrgb(33, 81, 159)
HSLhsl(217, 66%, 38%)
HSVhsv(217, 79%, 62%)
CMYKcmyk(79.2%, 49.1%, 0%, 37.6%)
CIE-LABlab(35.42, 13.02, -46.97)
CIE-LCHlch(35.42, 48.75, 285.49°)
OKLaboklab(44.74% -0.0244 -0.135)
OKLCHoklch(44.74% 0.137 259.8)
XYZxyz(9.8254, 8.7102, 33.9576)
Luminance0.0871 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21519F #9F6F21
analogous
#21909F #21519F #30219F
triadic
#21519F #9F2151 #519F21
tetradic
#21519F #9F2190 #9F6F21 #219F30
square
#21519F #9F2190 #9F6F21 #219F30
split-complementary
#21519F #9F3021 #909F21
monochromatic
#0C1D3A #16376C #21519F #2C6BD2 #5D8EDD

Accessibility & contrast

On white

7.66
#21519F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.74
#21519F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21519F
7.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21519F#FFFFFF#000000##FFFFFF
##21519F1.007.662.747.66
#FFFFFF7.661.0021.001.00
#0000002.7421.001.0021.00
##FFFFFF7.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2459A2
Deuteranopia (green-blind)
#004E9D
Tritanopia (blue-blind)
#006470
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #21519f;
/* rgb */ color: rgb(33, 81, 159);
/* oklch */ color: oklch(44.7% 0.137 259.8);
Tailwind
colors: {
  custom: {
    50: '#7081bc',
    500: '#21519f',
    950: '#000000',
  },
}
SCSS
$custom: #21519f;
$custom-light: #7081bc;
$custom-dark: #000000;
JSON
{
  "hex": "#21519f",
  "rgb": {
    "r": 33,
    "g": 81,
    "b": 159
  },
  "hsl": {
    "h": 217.143,
    "s": 65.625,
    "l": 37.647
  },
  "oklch": {
    "l": 0.44743,
    "c": 0.13719,
    "h": 259.8
  },
  "luminance": 0.08711
}

Semantic roles & 50–950 ramp

primary
#21519F
secondary
#C29A5A
accent
#A83FE9
background
#F7F7FB
surface
#EDEEF6
border
#C8C9D0
text
#090A12
muted
#7B7C81

Preview Lab

Preview with #21519F

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

Preview Lab → · Contrast checker → · Palette generator →

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