#21319D#21319D

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

Color values

HEX#21319D
RGBrgb(33, 49, 157)
HSLhsl(232, 65%, 37%)
HSVhsv(232, 79%, 62%)
CMYKcmyk(79%, 68.8%, 0%, 38.4%)
CIE-LABlab(26.60, 33.74, -60.12)
CIE-LCHlch(26.60, 68.94, 299.30°)
OKLaboklab(38.08% -0.0026 -0.1741)
OKLCHoklch(38.08% 0.174 269.1)
XYZxyz(7.8092, 4.9534, 32.4363)
Luminance0.0495 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21319D #9D8D21
analogous
#216F9D #21319D #4F219D
triadic
#21319D #9D2131 #319D21
tetradic
#21319D #9D216F #9D8D21 #219D4F
square
#21319D #9D216F #9D8D21 #219D4F
split-complementary
#21319D #9D4F21 #6F9D21
monochromatic
#0C1138 #16216A #21319D #2C41D0 #5C6CDD

Accessibility & contrast

On white

10.55
#21319D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.99
#21319D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21319D
10.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21319D#FFFFFF#000000##FFFFFF
##21319D1.0010.551.9910.55
#FFFFFF10.551.0021.001.00
#0000001.9921.001.0021.00
##FFFFFF10.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0045A0
Deuteranopia (green-blind)
#00399B
Tritanopia (blue-blind)
#004E63
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #21319d;
/* rgb */ color: rgb(33, 49, 157);
/* oklch */ color: oklch(38.1% 0.174 269.1);
Tailwind
colors: {
  custom: {
    50: '#7269bb',
    500: '#21319d',
    950: '#000000',
  },
}
SCSS
$custom: #21319d;
$custom-light: #7269bb;
$custom-dark: #000000;
JSON
{
  "hex": "#21319d",
  "rgb": {
    "r": 33,
    "g": 49,
    "b": 157
  },
  "hsl": {
    "h": 232.258,
    "s": 65.263,
    "l": 37.255
  },
  "oklch": {
    "l": 0.38084,
    "c": 0.17408,
    "h": 269.1
  },
  "luminance": 0.04954
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #21319D

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

Preview Lab → · Contrast checker → · Palette generator →

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