#2021AA#2021AA

#2021AA is a dark, highly saturated blue. Relative luminance 0.043; OKLCH L 37.1% C 0.206 H 270.1°. Best body text is #FFFFFF at 11.29:1 contrast (WCAG AA passes).

Color values

HEX#2021AA
RGBrgb(32, 33, 170)
HSLhsl(240, 68%, 40%)
HSVhsv(240, 81%, 67%)
CMYKcmyk(81.2%, 80.6%, 0%, 33.3%)
CIE-LABlab(24.63, 47.53, -71.27)
CIE-LCHlch(24.63, 85.67, 303.70°)
OKLaboklab(37.08% 0.0005 -0.2064)
OKLCHoklch(37.08% 0.206 270.1)
XYZxyz(8.3928, 4.2961, 38.4093)
Luminance0.0430 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2021AA #AAA920
analogous
#2066AA #2021AA #6420AA
triadic
#2021AA #AA2021 #21AA20
tetradic
#2021AA #AA2066 #AAA920 #20AA64
square
#2021AA #AA2066 #AAA920 #20AA64
split-complementary
#2021AA #AA6420 #66AA20
monochromatic
#0D0D43 #161776 #2021AA #2F31D8 #6364E2

Accessibility & contrast

On white

11.29
#2021AA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.86
#2021AA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2021AA
11.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2021AA#FFFFFF#000000##FFFFFF
##2021AA1.0011.291.8611.29
#FFFFFF11.291.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0041AE
Deuteranopia (green-blind)
#0033A8
Tritanopia (blue-blind)
#004C66
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #2021aa;
/* rgb */ color: rgb(32, 33, 170);
/* oklch */ color: oklch(37.1% 0.206 270.1);
Tailwind
colors: {
  custom: {
    50: '#7760c5',
    500: '#2021aa',
    950: '#000000',
  },
}
SCSS
$custom: #2021aa;
$custom-light: #7760c5;
$custom-dark: #000000;
JSON
{
  "hex": "#2021aa",
  "rgb": {
    "r": 32,
    "g": 33,
    "b": 170
  },
  "hsl": {
    "h": 239.565,
    "s": 68.317,
    "l": 39.608
  },
  "oklch": {
    "l": 0.37079,
    "c": 0.20637,
    "h": 270.1
  },
  "luminance": 0.04297
}

Semantic roles & 50–950 ramp

primary
#2021AA
secondary
#C7C65F
accent
#EA3DEB
background
#F8F5FC
surface
#EFE9F8
border
#CAC5D1
text
#0B0513
muted
#7C7982

Preview Lab

Preview with #2021AA

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

Preview Lab → · Contrast checker → · Palette generator →

#2021AA Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva