#21319A#21319A

#21319A is a dark, vivid blue. Relative luminance 0.049; OKLCH L 37.8% C 0.170 H 269.2°. Best body text is #FFFFFF at 10.66:1 contrast (WCAG AA passes).

Color values

HEX#21319A
RGBrgb(33, 49, 154)
HSLhsl(232, 65%, 37%)
HSVhsv(232, 79%, 60%)
CMYKcmyk(78.6%, 68.2%, 0%, 39.6%)
CIE-LABlab(26.31, 32.63, -58.77)
CIE-LCHlch(26.31, 67.22, 299.04°)
OKLaboklab(37.78% -0.0023 -0.1701)
OKLCHoklch(37.78% 0.17 269.2)
XYZxyz(7.5562, 4.8522, 31.1039)
Luminance0.0485 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21319A #9A8A21
analogous
#216E9A #21319A #4E219A
triadic
#21319A #9A2131 #319A21
tetradic
#21319A #9A216E #9A8A21 #219A4E
square
#21319A #9A216E #9A8A21 #219A4E
split-complementary
#21319A #9A4E21 #6E9A21
monochromatic
#0B1135 #162168 #21319A #2C41CC #5A6BDC

Accessibility & contrast

On white

10.66
#21319A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.97
#21319A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21319A
10.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21319A#FFFFFF#000000##FFFFFF
##21319A1.0010.661.9710.66
#FFFFFF10.661.0021.001.00
#0000001.9721.001.0021.00
##FFFFFF10.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00449D
Deuteranopia (green-blind)
#003998
Tritanopia (blue-blind)
#004D61
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #21319a;
/* rgb */ color: rgb(33, 49, 154);
/* oklch */ color: oklch(37.8% 0.170 269.2);
Tailwind
colors: {
  custom: {
    50: '#7169b9',
    500: '#21319a',
    950: '#000000',
  },
}
SCSS
$custom: #21319a;
$custom-light: #7169b9;
$custom-dark: #000000;
JSON
{
  "hex": "#21319a",
  "rgb": {
    "r": 33,
    "g": 49,
    "b": 154
  },
  "hsl": {
    "h": 232.066,
    "s": 64.706,
    "l": 36.667
  },
  "oklch": {
    "l": 0.37782,
    "c": 0.17014,
    "h": 269.2
  },
  "luminance": 0.04853
}

Semantic roles & 50–950 ramp

primary
#21319A
secondary
#C0B257
accent
#D240E8
background
#F7F6FB
surface
#EDEBF6
border
#C8C6D0
text
#090612
muted
#7B7A81

Preview Lab

Preview with #21319A

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

Preview Lab → · Contrast checker → · Palette generator →

#21319A Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva