#21319E#21319E

#21319E is a dark, vivid blue. Relative luminance 0.050; OKLCH L 38.2% C 0.175 H 269.1°. Best body text is #FFFFFF at 10.51:1 contrast (WCAG AA passes).

Color values

HEX#21319E
RGBrgb(33, 49, 158)
HSLhsl(232, 65%, 37%)
HSVhsv(232, 79%, 62%)
CMYKcmyk(79.1%, 69%, 0%, 38%)
CIE-LABlab(26.70, 34.11, -60.57)
CIE-LCHlch(26.70, 69.51, 299.38°)
OKLaboklab(38.19% -0.0027 -0.1754)
OKLCHoklch(38.19% 0.175 269.1)
XYZxyz(7.8949, 4.9877, 32.8878)
Luminance0.0499 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21319E #9E8E21
analogous
#21709E #21319E #50219E
triadic
#21319E #9E2131 #319E21
tetradic
#21319E #9E2170 #9E8E21 #219E50
square
#21319E #9E2170 #9E8E21 #219E50
split-complementary
#21319E #9E5021 #709E21
monochromatic
#0C1239 #16216B #21319E #2C41D1 #5C6DDD

Accessibility & contrast

On white

10.51
#21319E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.00
#21319E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21319E
10.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21319E#FFFFFF#000000##FFFFFF
##21319E1.0010.512.0010.51
#FFFFFF10.511.0021.001.00
#0000002.0021.001.0021.00
##FFFFFF10.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0045A1
Deuteranopia (green-blind)
#00399C
Tritanopia (blue-blind)
#004F63
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #21319e;
/* rgb */ color: rgb(33, 49, 158);
/* oklch */ color: oklch(38.2% 0.175 269.1);
Tailwind
colors: {
  custom: {
    50: '#7269bc',
    500: '#21319e',
    950: '#000000',
  },
}
SCSS
$custom: #21319e;
$custom-light: #7269bc;
$custom-dark: #000000;
JSON
{
  "hex": "#21319e",
  "rgb": {
    "r": 33,
    "g": 49,
    "b": 158
  },
  "hsl": {
    "h": 232.32,
    "s": 65.445,
    "l": 37.451
  },
  "oklch": {
    "l": 0.38185,
    "c": 0.17539,
    "h": 269.1
  },
  "luminance": 0.04989
}

Semantic roles & 50–950 ramp

primary
#21319E
secondary
#C1B459
accent
#D33FE8
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#090612
muted
#7B7A81

Preview Lab

Preview with #21319E

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

Preview Lab → · Contrast checker → · Palette generator →

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