#20216F#20216F

#20216F is a dark, vivid blue. Relative luminance 0.025; OKLCH L 30.5% C 0.131 H 274.8°. Best body text is #FFFFFF at 13.92:1 contrast (WCAG AA passes).

Color values

HEX#20216F
RGBrgb(32, 33, 111)
HSLhsl(239, 55%, 28%)
HSVhsv(239, 71%, 44%)
CMYKcmyk(71.2%, 70.3%, 0%, 56.5%)
CIE-LABlab(18.11, 27.01, -45.21)
CIE-LCHlch(18.11, 52.66, 300.86°)
OKLaboklab(30.52% 0.011 -0.1305)
OKLCHoklch(30.52% 0.131 274.8)
XYZxyz(4.0078, 2.5421, 15.3153)
Luminance0.0254 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20216F #6F6E20
analogous
#20486F #20216F #47206F
triadic
#20216F #6F2021 #216F20
tetradic
#20216F #6F2048 #6F6E20 #206F47
square
#20216F #6F2048 #6F6E20 #206F47
split-complementary
#20216F #6F4720 #486F20
monochromatic
#070718 #12133F #20216F #2E2F9F #4143C8

Accessibility & contrast

On white

13.92
#20216F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #20216F
13.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##20216F#FFFFFF#000000##FFFFFF
##20216F1.0013.921.5113.92
#FFFFFF13.921.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.921.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: #20216f;
/* rgb */ color: rgb(32, 33, 111);
/* oklch */ color: oklch(30.5% 0.131 274.8);
Tailwind
colors: {
  custom: {
    50: '#675c99',
    500: '#20216f',
    950: '#000000',
  },
}
SCSS
$custom: #20216f;
$custom-light: #675c99;
$custom-dark: #000000;
JSON
{
  "hex": "#20216f",
  "rgb": {
    "r": 32,
    "g": 33,
    "b": 111
  },
  "hsl": {
    "h": 239.241,
    "s": 55.245,
    "l": 28.039
  },
  "oklch": {
    "l": 0.30522,
    "c": 0.13101,
    "h": 274.8
  },
  "luminance": 0.02542
}

Semantic roles & 50–950 ramp

primary
#20216F
secondary
#A3A248
accent
#DD49DF
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#07040E
muted
#7A797E

Preview Lab

Preview with #20216F

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

Preview Lab → · Contrast checker → · Palette generator →

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