#21216F#21216F

#21216F is a dark, vivid blue. Relative luminance 0.026; OKLCH L 30.6% C 0.131 H 275.4°. Best body text is #FFFFFF at 13.89:1 contrast (WCAG AA passes).

Color values

HEX#21216F
RGBrgb(33, 33, 111)
HSLhsl(240, 54%, 28%)
HSVhsv(240, 70%, 44%)
CMYKcmyk(70.3%, 70.3%, 0%, 56.5%)
CIE-LABlab(18.18, 27.16, -45.08)
CIE-LCHlch(18.18, 52.63, 301.06°)
OKLaboklab(30.59% 0.0124 -0.1301)
OKLCHoklch(30.59% 0.131 275.4)
XYZxyz(4.0394, 2.5584, 15.3168)
Luminance0.0256 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21216F #6F6F21
analogous
#21486F #21216F #48216F
triadic
#21216F #6F2121 #216F21
tetradic
#21216F #6F2148 #6F6F21 #216F48
square
#21216F #6F2148 #6F6F21 #216F48
split-complementary
#21216F #6F4821 #486F21
monochromatic
#070718 #131340 #21216F #2F2F9E #4343C7

Accessibility & contrast

On white

13.89
#21216F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #21216F
13.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21216F#FFFFFF#000000##FFFFFF
##21216F1.0013.891.5113.89
#FFFFFF13.891.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003071
Deuteranopia (green-blind)
#00296E
Tritanopia (blue-blind)
#003645
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #21216f;
/* rgb */ color: rgb(33, 33, 111);
/* oklch */ color: oklch(30.6% 0.131 275.4);
Tailwind
colors: {
  custom: {
    50: '#685c99',
    500: '#21216f',
    950: '#000000',
  },
}
SCSS
$custom: #21216f;
$custom-light: #685c99;
$custom-dark: #000000;
JSON
{
  "hex": "#21216f",
  "rgb": {
    "r": 33,
    "g": 33,
    "b": 111
  },
  "hsl": {
    "h": 240,
    "s": 54.167,
    "l": 28.235
  },
  "oklch": {
    "l": 0.30594,
    "c": 0.13074,
    "h": 275.4
  },
  "luminance": 0.02559
}

Semantic roles & 50–950 ramp

primary
#21216F
secondary
#A3A349
accent
#DE4ADE
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#07040E
muted
#7A797E

Preview Lab

Preview with #21216F

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

Preview Lab → · Contrast checker → · Palette generator →

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