#21218C#21218C

#21218C is a dark, vivid blue. Relative luminance 0.033; OKLCH L 33.7% C 0.170 H 272.6°. Best body text is #FFFFFF at 12.64:1 contrast (WCAG AA passes).

Color values

HEX#21218C
RGBrgb(33, 33, 140)
HSLhsl(240, 62%, 34%)
HSVhsv(240, 76%, 55%)
CMYKcmyk(76.4%, 76.4%, 0%, 45.1%)
CIE-LABlab(21.22, 37.57, -58.51)
CIE-LCHlch(21.22, 69.53, 302.70°)
OKLaboklab(33.69% 0.0076 -0.1693)
OKLCHoklch(33.69% 0.17 272.6)
XYZxyz(5.9031, 3.3039, 25.1325)
Luminance0.0330 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21218C #8C8C21
analogous
#21578C #21218C #57218C
triadic
#21218C #8C2121 #218C21
tetradic
#21218C #8C2157 #8C8C21 #218C57
square
#21218C #8C2157 #8C8C21 #218C57
split-complementary
#21218C #8C5721 #578C21
monochromatic
#0A0A29 #15155A #21218C #2D2DBE #5151D6

Accessibility & contrast

On white

12.64
#21218C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#21218C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21218C
12.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21218C#FFFFFF#000000##FFFFFF
##21218C1.0012.641.6612.64
#FFFFFF12.641.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00388F
Deuteranopia (green-blind)
#002E8A
Tritanopia (blue-blind)
#004055
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #21218c;
/* rgb */ color: rgb(33, 33, 140);
/* oklch */ color: oklch(33.7% 0.170 272.6);
Tailwind
colors: {
  custom: {
    50: '#6f5eaf',
    500: '#21218c',
    950: '#000000',
  },
}
SCSS
$custom: #21218c;
$custom-light: #6f5eaf;
$custom-dark: #000000;
JSON
{
  "hex": "#21218c",
  "rgb": {
    "r": 33,
    "g": 33,
    "b": 140
  },
  "hsl": {
    "h": 240,
    "s": 61.85,
    "l": 33.922
  },
  "oklch": {
    "l": 0.33688,
    "c": 0.1695,
    "h": 272.6
  },
  "luminance": 0.03304
}

Semantic roles & 50–950 ramp

primary
#21218C
secondary
#B9B94F
accent
#E543E5
background
#F7F5FA
surface
#EDE9F5
border
#C8C5CF
text
#090410
muted
#7B797F

Preview Lab

Preview with #21218C

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

Preview Lab → · Contrast checker → · Palette generator →

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