#20218C#20218C

#20218C is a dark, vivid blue. Relative luminance 0.033; OKLCH L 33.6% C 0.170 H 272.2°. Best body text is #FFFFFF at 12.67:1 contrast (WCAG AA passes).

Color values

HEX#20218C
RGBrgb(32, 33, 140)
HSLhsl(239, 63%, 34%)
HSVhsv(239, 77%, 55%)
CMYKcmyk(77.1%, 76.4%, 0%, 45.1%)
CIE-LABlab(21.16, 37.48, -58.61)
CIE-LCHlch(21.16, 69.57, 302.60°)
OKLaboklab(33.63% 0.0064 -0.1696)
OKLCHoklch(33.63% 0.17 272.2)
XYZxyz(5.8716, 3.2876, 25.1310)
Luminance0.0329 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20218C #8C8B20
analogous
#20578C #20218C #55208C
triadic
#20218C #8C2021 #218C20
tetradic
#20218C #8C2057 #8C8B20 #208C55
square
#20218C #8C2057 #8C8B20 #208C55
split-complementary
#20218C #8C5520 #578C20
monochromatic
#090A28 #15155A #20218C #2B2DBE #5051D7

Accessibility & contrast

On white

12.67
#20218C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#20218C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #20218C
12.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##20218C#FFFFFF#000000##FFFFFF
##20218C1.0012.671.6612.67
#FFFFFF12.671.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00388F
Deuteranopia (green-blind)
#002D8A
Tritanopia (blue-blind)
#004055
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #20218c;
/* rgb */ color: rgb(32, 33, 140);
/* oklch */ color: oklch(33.6% 0.170 272.2);
Tailwind
colors: {
  custom: {
    50: '#6f5eaf',
    500: '#20218c',
    950: '#000000',
  },
}
SCSS
$custom: #20218c;
$custom-light: #6f5eaf;
$custom-dark: #000000;
JSON
{
  "hex": "#20218c",
  "rgb": {
    "r": 32,
    "g": 33,
    "b": 140
  },
  "hsl": {
    "h": 239.444,
    "s": 62.791,
    "l": 33.725
  },
  "oklch": {
    "l": 0.33628,
    "c": 0.16977,
    "h": 272.2
  },
  "luminance": 0.03288
}

Semantic roles & 50–950 ramp

primary
#20218C
secondary
#BAB94E
accent
#E442E6
background
#F7F5FA
surface
#EDE9F5
border
#C8C5CF
text
#090410
muted
#7B797F

Preview Lab

Preview with #20218C

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

Preview Lab → · Contrast checker → · Palette generator →

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