#202771#202771

#202771 is a dark, vivid blue. Relative luminance 0.029; OKLCH L 31.8% C 0.126 H 272.8°. Best body text is #FFFFFF at 13.21:1 contrast (WCAG AA passes).

Color values

HEX#202771
RGBrgb(32, 39, 113)
HSLhsl(235, 56%, 28%)
HSVhsv(235, 72%, 44%)
CMYKcmyk(71.7%, 65.5%, 0%, 55.7%)
CIE-LABlab(19.84, 23.68, -43.66)
CIE-LCHlch(19.84, 49.67, 298.47°)
OKLaboklab(31.85% 0.0061 -0.126)
OKLCHoklch(31.85% 0.126 272.8)
XYZxyz(4.3008, 2.9500, 15.9623)
Luminance0.0295 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#202771 #716A20
analogous
#204F71 #202771 #412071
triadic
#202771 #712027 #277120
tetradic
#202771 #71204F #716A20 #207141
square
#202771 #71204F #716A20 #207141
split-complementary
#202771 #714120 #4F7120
monochromatic
#070818 #121741 #202771 #2E37A1 #424EC9

Accessibility & contrast

On white

13.21
#202771 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.59
#202771 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #202771
13.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##202771#FFFFFF#000000##FFFFFF
##2027711.0013.211.5913.21
#FFFFFF13.211.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003473
Deuteranopia (green-blind)
#002C70
Tritanopia (blue-blind)
#003A48
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #202771;
/* rgb */ color: rgb(32, 39, 113);
/* oklch */ color: oklch(31.8% 0.126 272.8);
Tailwind
colors: {
  custom: {
    50: '#67619b',
    500: '#202771',
    950: '#000000',
  },
}
SCSS
$custom: #202771;
$custom-light: #67619b;
$custom-dark: #000000;
JSON
{
  "hex": "#202771",
  "rgb": {
    "r": 32,
    "g": 39,
    "b": 113
  },
  "hsl": {
    "h": 234.815,
    "s": 55.862,
    "l": 28.431
  },
  "oklch": {
    "l": 0.31847,
    "c": 0.12612,
    "h": 272.8
  },
  "luminance": 0.0295
}

Semantic roles & 50–950 ramp

primary
#202771
secondary
#A59D48
accent
#D249DF
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#07050E
muted
#7A797E

Preview Lab

Preview with #202771

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

Preview Lab → · Contrast checker → · Palette generator →

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