#202871#202871

#202871 is a dark, vivid blue. Relative luminance 0.030; OKLCH L 32.0% C 0.125 H 272.4°. Best body text is #FFFFFF at 13.10:1 contrast (WCAG AA passes).

Color values

HEX#202871
RGBrgb(32, 40, 113)
HSLhsl(234, 56%, 28%)
HSVhsv(234, 72%, 44%)
CMYKcmyk(71.7%, 64.6%, 0%, 55.7%)
CIE-LABlab(20.11, 22.99, -43.22)
CIE-LCHlch(20.11, 48.95, 298.00°)
OKLaboklab(32.04% 0.0052 -0.1247)
OKLCHoklch(32.04% 0.125 272.4)
XYZxyz(4.3341, 3.0165, 15.9734)
Luminance0.0302 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#202871 #716920
analogous
#205071 #202871 #402071
triadic
#202871 #712028 #287120
tetradic
#202871 #712050 #716920 #207140
square
#202871 #712050 #716920 #207140
split-complementary
#202871 #714020 #507120
monochromatic
#070818 #121741 #202871 #2E39A1 #424FC9

Accessibility & contrast

On white

13.10
#202871 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.60
#202871 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #202871
13.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##202871#FFFFFF#000000##FFFFFF
##2028711.0013.101.6013.10
#FFFFFF13.101.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.101.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #202871;
/* rgb */ color: rgb(32, 40, 113);
/* oklch */ color: oklch(32.0% 0.125 272.4);
Tailwind
colors: {
  custom: {
    50: '#67619a',
    500: '#202871',
    950: '#000000',
  },
}
SCSS
$custom: #202871;
$custom-light: #67619a;
$custom-dark: #000000;
JSON
{
  "hex": "#202871",
  "rgb": {
    "r": 32,
    "g": 40,
    "b": 113
  },
  "hsl": {
    "h": 234.074,
    "s": 55.862,
    "l": 28.431
  },
  "oklch": {
    "l": 0.32044,
    "c": 0.12479,
    "h": 272.4
  },
  "luminance": 0.03017
}

Semantic roles & 50–950 ramp

primary
#202871
secondary
#A59C48
accent
#D049DF
background
#F6F5F9
surface
#EBEAF2
border
#C6C6CC
text
#07050E
muted
#7A797E

Preview Lab

Preview with #202871

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

Preview Lab → · Contrast checker → · Palette generator →

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