#21218F#21218F

#21218F is a dark, vivid blue. Relative luminance 0.034; OKLCH L 34.0% C 0.173 H 272.3°. Best body text is #FFFFFF at 12.51:1 contrast (WCAG AA passes).

Color values

HEX#21218F
RGBrgb(33, 33, 143)
HSLhsl(240, 63%, 35%)
HSVhsv(240, 77%, 56%)
CMYKcmyk(76.9%, 76.9%, 0%, 43.9%)
CIE-LABlab(21.56, 38.61, -59.82)
CIE-LCHlch(21.56, 71.20, 302.83°)
OKLaboklab(34.02% 0.0071 -0.1731)
OKLCHoklch(34.02% 0.173 272.3)
XYZxyz(6.1273, 3.3936, 26.3134)
Luminance0.0339 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21218F #8F8F21
analogous
#21588F #21218F #58218F
triadic
#21218F #8F2121 #218F21
tetradic
#21218F #8F2158 #8F8F21 #218F58
square
#21218F #8F2158 #8F8F21 #218F58
split-complementary
#21218F #8F5821 #588F21
monochromatic
#0A0A2C #16165D #21218F #2C2CC1 #5353D7

Accessibility & contrast

On white

12.51
#21218F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#21218F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21218F
12.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21218F#FFFFFF#000000##FFFFFF
##21218F1.0012.511.6812.51
#FFFFFF12.511.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003992
Deuteranopia (green-blind)
#002E8D
Tritanopia (blue-blind)
#004156
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #21218f;
/* rgb */ color: rgb(33, 33, 143);
/* oklch */ color: oklch(34.0% 0.173 272.3);
Tailwind
colors: {
  custom: {
    50: '#705eb1',
    500: '#21218f',
    950: '#000000',
  },
}
SCSS
$custom: #21218f;
$custom-light: #705eb1;
$custom-dark: #000000;
JSON
{
  "hex": "#21218f",
  "rgb": {
    "r": 33,
    "g": 33,
    "b": 143
  },
  "hsl": {
    "h": 240,
    "s": 62.5,
    "l": 34.51
  },
  "oklch": {
    "l": 0.34023,
    "c": 0.17329,
    "h": 272.3
  },
  "luminance": 0.03394
}

Semantic roles & 50–950 ramp

primary
#21218F
secondary
#BBBB51
accent
#E642E6
background
#F7F5FB
surface
#EDE9F6
border
#C8C5D0
text
#090411
muted
#7B7980

Preview Lab

Preview with #21218F

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

Preview Lab → · Contrast checker → · Palette generator →

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