#21319C#21319C

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

Color values

HEX#21319C
RGBrgb(33, 49, 156)
HSLhsl(232, 65%, 37%)
HSVhsv(232, 79%, 61%)
CMYKcmyk(78.8%, 68.6%, 0%, 38.8%)
CIE-LABlab(26.50, 33.37, -59.67)
CIE-LCHlch(26.50, 68.37, 299.21°)
OKLaboklab(37.98% -0.0025 -0.1727)
OKLCHoklch(37.98% 0.173 269.2)
XYZxyz(7.7242, 4.9194, 31.9885)
Luminance0.0492 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21319C #9C8C21
analogous
#216F9C #21319C #4F219C
triadic
#21319C #9C2131 #319C21
tetradic
#21319C #9C216F #9C8C21 #219C4F
square
#21319C #9C216F #9C8C21 #219C4F
split-complementary
#21319C #9C4F21 #6F9C21
monochromatic
#0C1137 #162169 #21319C #2C41CF #5B6CDC

Accessibility & contrast

On white

10.58
#21319C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #21319C
10.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21319C#FFFFFF#000000##FFFFFF
##21319C1.0010.581.9810.58
#FFFFFF10.581.0021.001.00
#0000001.9821.001.0021.00
##FFFFFF10.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00459F
Deuteranopia (green-blind)
#00399A
Tritanopia (blue-blind)
#004E62
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #21319c;
/* rgb */ color: rgb(33, 49, 156);
/* oklch */ color: oklch(38.0% 0.173 269.2);
Tailwind
colors: {
  custom: {
    50: '#7269ba',
    500: '#21319c',
    950: '#000000',
  },
}
SCSS
$custom: #21319c;
$custom-light: #7269ba;
$custom-dark: #000000;
JSON
{
  "hex": "#21319c",
  "rgb": {
    "r": 33,
    "g": 49,
    "b": 156
  },
  "hsl": {
    "h": 232.195,
    "s": 65.079,
    "l": 37.059
  },
  "oklch": {
    "l": 0.37983,
    "c": 0.17277,
    "h": 269.2
  },
  "luminance": 0.0492
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #21319C

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

Preview Lab → · Contrast checker → · Palette generator →

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