#202271#202271

#202271 is a dark, vivid blue. Relative luminance 0.026; OKLCH L 30.9% C 0.133 H 274.3°. Best body text is #FFFFFF at 13.74:1 contrast (WCAG AA passes).

Color values

HEX#202271
RGBrgb(32, 34, 113)
HSLhsl(239, 56%, 28%)
HSVhsv(239, 72%, 44%)
CMYKcmyk(71.7%, 69.9%, 0%, 55.7%)
CIE-LABlab(18.55, 27.09, -45.77)
CIE-LCHlch(18.55, 53.19, 300.62°)
OKLaboklab(30.9% 0.01 -0.1322)
OKLCHoklch(30.9% 0.133 274.3)
XYZxyz(4.1473, 2.6430, 15.9112)
Luminance0.0264 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#202271 #716F20
analogous
#204A71 #202271 #462071
triadic
#202271 #712022 #227120
tetradic
#202271 #71204A #716F20 #207146
square
#202271 #71204A #716F20 #207146
split-complementary
#202271 #714620 #4A7120
monochromatic
#070718 #121441 #202271 #2E30A1 #4245C9

Accessibility & contrast

On white

13.74
#202271 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.53
#202271 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #202271
13.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##202271#FFFFFF#000000##FFFFFF
##2022711.0013.741.5313.74
#FFFFFF13.741.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003173
Deuteranopia (green-blind)
#002970
Tritanopia (blue-blind)
#003746
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #202271;
/* rgb */ color: rgb(32, 34, 113);
/* oklch */ color: oklch(30.9% 0.133 274.3);
Tailwind
colors: {
  custom: {
    50: '#685d9b',
    500: '#202271',
    950: '#000000',
  },
}
SCSS
$custom: #202271;
$custom-light: #685d9b;
$custom-dark: #000000;
JSON
{
  "hex": "#202271",
  "rgb": {
    "r": 32,
    "g": 34,
    "b": 113
  },
  "hsl": {
    "h": 238.519,
    "s": 55.862,
    "l": 28.431
  },
  "oklch": {
    "l": 0.30905,
    "c": 0.13257,
    "h": 274.3
  },
  "luminance": 0.02643
}

Semantic roles & 50–950 ramp

primary
#202271
secondary
#A5A248
accent
#DB49DF
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#07040E
muted
#7A797E

Preview Lab

Preview with #202271

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

Preview Lab → · Contrast checker → · Palette generator →

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