#21218D#21218D

#21218D is a dark, vivid blue. Relative luminance 0.033; OKLCH L 33.8% C 0.171 H 272.5°. Best body text is #FFFFFF at 12.60:1 contrast (WCAG AA passes).

Color values

HEX#21218D
RGBrgb(33, 33, 141)
HSLhsl(240, 62%, 34%)
HSVhsv(240, 77%, 55%)
CMYKcmyk(76.6%, 76.6%, 0%, 44.7%)
CIE-LABlab(21.33, 37.92, -58.95)
CIE-LCHlch(21.33, 70.09, 302.75°)
OKLaboklab(33.8% 0.0074 -0.1706)
OKLCHoklch(33.8% 0.171 272.5)
XYZxyz(5.9772, 3.3335, 25.5226)
Luminance0.0333 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21218D #8D8D21
analogous
#21578D #21218D #57218D
triadic
#21218D #8D2121 #218D21
tetradic
#21218D #8D2157 #8D8D21 #218D57
square
#21218D #8D2157 #8D8D21 #218D57
split-complementary
#21218D #8D5721 #578D21
monochromatic
#0A0A2A #15155B #21218D #2D2DBF #5252D6

Accessibility & contrast

On white

12.60
#21218D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#21218D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21218D
12.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21218D#FFFFFF#000000##FFFFFF
##21218D1.0012.601.6712.60
#FFFFFF12.601.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003890
Deuteranopia (green-blind)
#002E8B
Tritanopia (blue-blind)
#004155
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #21218d;
/* rgb */ color: rgb(33, 33, 141);
/* oklch */ color: oklch(33.8% 0.171 272.5);
Tailwind
colors: {
  custom: {
    50: '#705eb0',
    500: '#21218d',
    950: '#000000',
  },
}
SCSS
$custom: #21218d;
$custom-light: #705eb0;
$custom-dark: #000000;
JSON
{
  "hex": "#21218d",
  "rgb": {
    "r": 33,
    "g": 33,
    "b": 141
  },
  "hsl": {
    "h": 240,
    "s": 62.069,
    "l": 34.118
  },
  "oklch": {
    "l": 0.33799,
    "c": 0.17077,
    "h": 272.5
  },
  "luminance": 0.03334
}

Semantic roles & 50–950 ramp

primary
#21218D
secondary
#BABA50
accent
#E543E5
background
#F7F5FA
surface
#EDE9F5
border
#C8C5CF
text
#090411
muted
#7B7980

Preview Lab

Preview with #21218D

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

Preview Lab → · Contrast checker → · Palette generator →

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