#202170#202170

#202170 is a dark, vivid blue. Relative luminance 0.026; OKLCH L 30.6% C 0.132 H 274.7°. Best body text is #FFFFFF at 13.88:1 contrast (WCAG AA passes).

Color values

HEX#202170
RGBrgb(32, 33, 112)
HSLhsl(239, 56%, 28%)
HSVhsv(239, 71%, 44%)
CMYKcmyk(71.4%, 70.5%, 0%, 56.1%)
CIE-LABlab(18.21, 27.39, -45.69)
CIE-LCHlch(18.21, 53.27, 300.94°)
OKLaboklab(30.62% 0.0109 -0.132)
OKLCHoklch(30.62% 0.132 274.7)
XYZxyz(4.0632, 2.5643, 15.6069)
Luminance0.0256 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#202170 #706F20
analogous
#204970 #202170 #472070
triadic
#202170 #702021 #217020
tetradic
#202170 #702049 #706F20 #207047
square
#202170 #702049 #706F20 #207047
split-complementary
#202170 #704720 #497020
monochromatic
#070718 #121340 #202170 #2E2FA0 #4243C9

Accessibility & contrast

On white

13.88
#202170 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.51
#202170 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #202170
13.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##202170#FFFFFF#000000##FFFFFF
##2021701.0013.881.5113.88
#FFFFFF13.881.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003072
Deuteranopia (green-blind)
#00296F
Tritanopia (blue-blind)
#003645
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #202170;
/* rgb */ color: rgb(32, 33, 112);
/* oklch */ color: oklch(30.6% 0.132 274.7);
Tailwind
colors: {
  custom: {
    50: '#685c9a',
    500: '#202170',
    950: '#000000',
  },
}
SCSS
$custom: #202170;
$custom-light: #685c9a;
$custom-dark: #000000;
JSON
{
  "hex": "#202170",
  "rgb": {
    "r": 32,
    "g": 33,
    "b": 112
  },
  "hsl": {
    "h": 239.25,
    "s": 55.556,
    "l": 28.235
  },
  "oklch": {
    "l": 0.30624,
    "c": 0.13241,
    "h": 274.7
  },
  "luminance": 0.02565
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #202170

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

Preview Lab → · Contrast checker → · Palette generator →

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