#201871#201871

#201871 is a dark, vivid blue. Relative luminance 0.022; OKLCH L 29.3% C 0.144 H 276.7°. Best body text is #FFFFFF at 14.68:1 contrast (WCAG AA passes).

Color values

HEX#201871
RGBrgb(32, 24, 113)
HSLhsl(245, 65%, 27%)
HSVhsv(245, 79%, 44%)
CMYKcmyk(71.7%, 78.8%, 0%, 55.7%)
CIE-LABlab(16.27, 33.41, -49.53)
CIE-LCHlch(16.27, 59.74, 304.00°)
OKLaboklab(29.27% 0.0168 -0.1431)
OKLCHoklch(29.27% 0.144 276.7)
XYZxyz(3.9020, 2.1522, 15.8294)
Luminance0.0215 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#201871 #697118
analogous
#183D71 #201871 #4D1871
triadic
#201871 #712018 #187120
tetradic
#201871 #71183D #697118 #18714D
square
#201871 #71183D #697118 #18714D
split-complementary
#201871 #714D18 #3D7118
monochromatic
#070519 #120D3F #201871 #2E23A3 #3F30D3

Accessibility & contrast

On white

14.68
#201871 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.43
#201871 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #201871
14.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##201871#FFFFFF#000000##FFFFFF
##2018711.0014.681.4314.68
#FFFFFF14.681.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C74
Deuteranopia (green-blind)
#00246F
Tritanopia (blue-blind)
#003243
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #201871;
/* rgb */ color: rgb(32, 24, 113);
/* oklch */ color: oklch(29.3% 0.144 276.7);
Tailwind
colors: {
  custom: {
    50: '#69579b',
    500: '#201871',
    950: '#000000',
  },
}
SCSS
$custom: #201871;
$custom-light: #69579b;
$custom-dark: #000000;
JSON
{
  "hex": "#201871",
  "rgb": {
    "r": 32,
    "g": 24,
    "b": 113
  },
  "hsl": {
    "h": 245.393,
    "s": 64.964,
    "l": 26.863
  },
  "oklch": {
    "l": 0.29268,
    "c": 0.14412,
    "h": 276.7
  },
  "luminance": 0.02153
}

Semantic roles & 50–950 ramp

primary
#201871
secondary
#9DA63E
accent
#E840D9
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#07030E
muted
#7A787E

Preview Lab

Preview with #201871

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

Preview Lab → · Contrast checker → · Palette generator →

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