#21216E#21216E

#21216E is a dark, vivid blue. Relative luminance 0.025; OKLCH L 30.5% C 0.129 H 275.5°. Best body text is #FFFFFF at 13.93:1 contrast (WCAG AA passes).

Color values

HEX#21216E
RGBrgb(33, 33, 110)
HSLhsl(240, 54%, 28%)
HSVhsv(240, 70%, 43%)
CMYKcmyk(70%, 70%, 0%, 56.9%)
CIE-LABlab(18.08, 26.79, -44.60)
CIE-LCHlch(18.08, 52.02, 300.99°)
OKLaboklab(30.49% 0.0125 -0.1287)
OKLCHoklch(30.49% 0.129 275.5)
XYZxyz(3.9846, 2.5365, 15.0284)
Luminance0.0254 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21216E #6E6E21
analogous
#21476E #21216E #47216E
triadic
#21216E #6E2121 #216E21
tetradic
#21216E #6E2147 #6E6E21 #216E47
square
#21216E #6E2147 #6E6E21 #216E47
split-complementary
#21216E #6E4721 #476E21
monochromatic
#070718 #13133F #21216E #2F2F9D #4343C7

Accessibility & contrast

On white

13.93
#21216E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.51
#21216E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21216E
13.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21216E#FFFFFF#000000##FFFFFF
##21216E1.0013.931.5113.93
#FFFFFF13.931.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003070
Deuteranopia (green-blind)
#00296D
Tritanopia (blue-blind)
#003544
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #21216e;
/* rgb */ color: rgb(33, 33, 110);
/* oklch */ color: oklch(30.5% 0.129 275.5);
Tailwind
colors: {
  custom: {
    50: '#685c98',
    500: '#21216e',
    950: '#000000',
  },
}
SCSS
$custom: #21216e;
$custom-light: #685c98;
$custom-dark: #000000;
JSON
{
  "hex": "#21216e",
  "rgb": {
    "r": 33,
    "g": 33,
    "b": 110
  },
  "hsl": {
    "h": 240,
    "s": 53.846,
    "l": 28.039
  },
  "oklch": {
    "l": 0.30493,
    "c": 0.12932,
    "h": 275.5
  },
  "luminance": 0.02537
}

Semantic roles & 50–950 ramp

primary
#21216E
secondary
#A2A249
accent
#DD4BDD
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#07040E
muted
#7A797E

Preview Lab

Preview with #21216E

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

Preview Lab → · Contrast checker → · Palette generator →

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