#21206C#21206C

#21206C is a dark, vivid blue. Relative luminance 0.024; OKLCH L 30.1% C 0.128 H 276.1°. Best body text is #FFFFFF at 14.11:1 contrast (WCAG AA passes).

Color values

HEX#21206C
RGBrgb(33, 32, 108)
HSLhsl(241, 54%, 27%)
HSVhsv(241, 70%, 42%)
CMYKcmyk(69.4%, 70.4%, 0%, 57.6%)
CIE-LABlab(17.64, 26.71, -44.02)
CIE-LCHlch(17.64, 51.49, 301.25°)
OKLaboklab(30.11% 0.0135 -0.127)
OKLCHoklch(30.11% 0.128 276.1)
XYZxyz(3.8496, 2.4387, 14.4523)
Luminance0.0244 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21206C #6B6C20
analogous
#20456C #21206C #47206C
triadic
#21206C #6C2120 #206C21
tetradic
#21206C #6C2045 #6B6C20 #206C47
square
#21206C #6C2045 #6B6C20 #206C47
split-complementary
#21206C #6C4720 #456C20
monochromatic
#070718 #13123D #21206C #2F2E9B #4240C6

Accessibility & contrast

On white

14.11
#21206C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.49
#21206C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21206C
14.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21206C#FFFFFF#000000##FFFFFF
##21206C1.0014.111.4914.11
#FFFFFF14.111.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F6E
Deuteranopia (green-blind)
#00286B
Tritanopia (blue-blind)
#003443
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #21206c;
/* rgb */ color: rgb(33, 32, 108);
/* oklch */ color: oklch(30.1% 0.128 276.1);
Tailwind
colors: {
  custom: {
    50: '#675c97',
    500: '#21206c',
    950: '#000000',
  },
}
SCSS
$custom: #21206c;
$custom-light: #675c97;
$custom-dark: #000000;
JSON
{
  "hex": "#21206c",
  "rgb": {
    "r": 33,
    "g": 32,
    "b": 108
  },
  "hsl": {
    "h": 240.789,
    "s": 54.286,
    "l": 27.451
  },
  "oklch": {
    "l": 0.30111,
    "c": 0.12777,
    "h": 276.1
  },
  "luminance": 0.02439
}

Semantic roles & 50–950 ramp

primary
#21206C
secondary
#9FA048
accent
#DE4ADC
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#07040D
muted
#7A797E

Preview Lab

Preview with #21206C

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

Preview Lab → · Contrast checker → · Palette generator →

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