#21218A#21218A

#21218A is a dark, vivid blue. Relative luminance 0.032; OKLCH L 33.5% C 0.167 H 272.8°. Best body text is #FFFFFF at 12.73:1 contrast (WCAG AA passes).

Color values

HEX#21218A
RGBrgb(33, 33, 138)
HSLhsl(240, 61%, 34%)
HSVhsv(240, 76%, 54%)
CMYKcmyk(76.1%, 76.1%, 0%, 45.9%)
CIE-LABlab(21.00, 36.87, -57.62)
CIE-LCHlch(21.00, 68.41, 302.62°)
OKLaboklab(33.47% 0.008 -0.1667)
OKLCHoklch(33.47% 0.167 272.8)
XYZxyz(5.7570, 3.2454, 24.3629)
Luminance0.0325 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21218A #8A8A21
analogous
#21558A #21218A #55218A
triadic
#21218A #8A2121 #218A21
tetradic
#21218A #8A2155 #8A8A21 #218A55
square
#21218A #8A2155 #8A8A21 #218A55
split-complementary
#21218A #8A5521 #558A21
monochromatic
#090927 #151559 #21218A #2D2DBB #5050D5

Accessibility & contrast

On white

12.73
#21218A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#21218A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21218A
12.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21218A#FFFFFF#000000##FFFFFF
##21218A1.0012.731.6512.73
#FFFFFF12.731.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00388D
Deuteranopia (green-blind)
#002D88
Tritanopia (blue-blind)
#003F54
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #21218a;
/* rgb */ color: rgb(33, 33, 138);
/* oklch */ color: oklch(33.5% 0.167 272.8);
Tailwind
colors: {
  custom: {
    50: '#6f5ead',
    500: '#21218a',
    950: '#000000',
  },
}
SCSS
$custom: #21218a;
$custom-light: #6f5ead;
$custom-dark: #000000;
JSON
{
  "hex": "#21218a",
  "rgb": {
    "r": 33,
    "g": 33,
    "b": 138
  },
  "hsl": {
    "h": 240,
    "s": 61.404,
    "l": 33.529
  },
  "oklch": {
    "l": 0.33466,
    "c": 0.16694,
    "h": 272.8
  },
  "luminance": 0.03246
}

Semantic roles & 50–950 ramp

primary
#21218A
secondary
#B9B94E
accent
#E543E5
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #21218A

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

Preview Lab → · Contrast checker → · Palette generator →

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