#21319B#21319B

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

Color values

HEX#21319B
RGBrgb(33, 49, 155)
HSLhsl(232, 65%, 37%)
HSVhsv(232, 79%, 61%)
CMYKcmyk(78.7%, 68.4%, 0%, 39.2%)
CIE-LABlab(26.41, 33.00, -59.22)
CIE-LCHlch(26.41, 67.80, 299.13°)
OKLaboklab(37.88% -0.0024 -0.1714)
OKLCHoklch(37.88% 0.171 269.2)
XYZxyz(7.6399, 4.8857, 31.5444)
Luminance0.0489 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21319B #9B8B21
analogous
#216E9B #21319B #4E219B
triadic
#21319B #9B2131 #319B21
tetradic
#21319B #9B216E #9B8B21 #219B4E
square
#21319B #9B216E #9B8B21 #219B4E
split-complementary
#21319B #9B4E21 #6E9B21
monochromatic
#0C1136 #162169 #21319B #2C41CD #5A6BDC

Accessibility & contrast

On white

10.62
#21319B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.98
#21319B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21319B
10.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21319B#FFFFFF#000000##FFFFFF
##21319B1.0010.621.9810.62
#FFFFFF10.621.0021.001.00
#0000001.9821.001.0021.00
##FFFFFF10.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00449E
Deuteranopia (green-blind)
#003999
Tritanopia (blue-blind)
#004E62
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #21319b;
/* rgb */ color: rgb(33, 49, 155);
/* oklch */ color: oklch(37.9% 0.171 269.2);
Tailwind
colors: {
  custom: {
    50: '#7269ba',
    500: '#21319b',
    950: '#000000',
  },
}
SCSS
$custom: #21319b;
$custom-light: #7269ba;
$custom-dark: #000000;
JSON
{
  "hex": "#21319b",
  "rgb": {
    "r": 33,
    "g": 49,
    "b": 155
  },
  "hsl": {
    "h": 232.131,
    "s": 64.894,
    "l": 36.863
  },
  "oklch": {
    "l": 0.37882,
    "c": 0.17146,
    "h": 269.2
  },
  "luminance": 0.04887
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #21319B

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

Preview Lab → · Contrast checker → · Palette generator →

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