#202171#202171

#202171 is a dark, vivid blue. Relative luminance 0.026; OKLCH L 30.7% C 0.134 H 274.6°. Best body text is #FFFFFF at 13.84:1 contrast (WCAG AA passes).

Color values

HEX#202171
RGBrgb(32, 33, 113)
HSLhsl(239, 56%, 28%)
HSVhsv(239, 72%, 44%)
CMYKcmyk(71.7%, 70.8%, 0%, 55.7%)
CIE-LABlab(18.31, 27.76, -46.17)
CIE-LCHlch(18.31, 53.88, 301.01°)
OKLaboklab(30.73% 0.0108 -0.1334)
OKLCHoklch(30.73% 0.134 274.6)
XYZxyz(4.1192, 2.5867, 15.9018)
Luminance0.0259 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#202171 #717020
analogous
#204971 #202171 #472071
triadic
#202171 #712021 #217120
tetradic
#202171 #712049 #717020 #207147
square
#202171 #712049 #717020 #207147
split-complementary
#202171 #714720 #497120
monochromatic
#070718 #121341 #202171 #2E2FA1 #4244C9

Accessibility & contrast

On white

13.84
#202171 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.52
#202171 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #202171
13.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##202171#FFFFFF#000000##FFFFFF
##2021711.0013.841.5213.84
#FFFFFF13.841.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003073
Deuteranopia (green-blind)
#00296F
Tritanopia (blue-blind)
#003646
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #202171;
/* rgb */ color: rgb(32, 33, 113);
/* oklch */ color: oklch(30.7% 0.134 274.6);
Tailwind
colors: {
  custom: {
    50: '#685c9b',
    500: '#202171',
    950: '#000000',
  },
}
SCSS
$custom: #202171;
$custom-light: #685c9b;
$custom-dark: #000000;
JSON
{
  "hex": "#202171",
  "rgb": {
    "r": 32,
    "g": 33,
    "b": 113
  },
  "hsl": {
    "h": 239.259,
    "s": 55.862,
    "l": 28.431
  },
  "oklch": {
    "l": 0.30726,
    "c": 0.13382,
    "h": 274.6
  },
  "luminance": 0.02587
}

Semantic roles & 50–950 ramp

primary
#202171
secondary
#A5A448
accent
#DD49DF
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#07040E
muted
#7A797E

Preview Lab

Preview with #202171

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

Preview Lab → · Contrast checker → · Palette generator →

#202171 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva