#202172#202172

#202172 is a dark, vivid blue. Relative luminance 0.026; OKLCH L 30.8% C 0.135 H 274.5°. Best body text is #FFFFFF at 13.80:1 contrast (WCAG AA passes).

Color values

HEX#202172
RGBrgb(32, 33, 114)
HSLhsl(239, 56%, 29%)
HSVhsv(239, 72%, 45%)
CMYKcmyk(71.9%, 71.1%, 0%, 55.3%)
CIE-LABlab(18.41, 28.13, -46.66)
CIE-LCHlch(18.41, 54.48, 301.08°)
OKLaboklab(30.83% 0.0107 -0.1348)
OKLCHoklch(30.83% 0.135 274.5)
XYZxyz(4.1758, 2.6093, 16.1999)
Luminance0.0261 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#202172 #727120
analogous
#204A72 #202172 #482072
triadic
#202172 #722021 #217220
tetradic
#202172 #72204A #727120 #207248
square
#202172 #72204A #727120 #207248
split-complementary
#202172 #724820 #4A7220
monochromatic
#070718 #131342 #202172 #2D2FA2 #4244CA

Accessibility & contrast

On white

13.80
#202172 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #202172
13.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##202172#FFFFFF#000000##FFFFFF
##2021721.0013.801.5213.80
#FFFFFF13.801.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.801.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #202172;
/* rgb */ color: rgb(32, 33, 114);
/* oklch */ color: oklch(30.8% 0.135 274.5);
Tailwind
colors: {
  custom: {
    50: '#685d9b',
    500: '#202172',
    950: '#000000',
  },
}
SCSS
$custom: #202172;
$custom-light: #685d9b;
$custom-dark: #000000;
JSON
{
  "hex": "#202172",
  "rgb": {
    "r": 32,
    "g": 33,
    "b": 114
  },
  "hsl": {
    "h": 239.268,
    "s": 56.164,
    "l": 28.627
  },
  "oklch": {
    "l": 0.30829,
    "c": 0.13521,
    "h": 274.5
  },
  "luminance": 0.0261
}

Semantic roles & 50–950 ramp

primary
#202172
secondary
#A6A548
accent
#DE48DF
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#07040E
muted
#7A797E

Preview Lab

Preview with #202172

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

Preview Lab → · Contrast checker → · Palette generator →

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