#201787#201787

#201787 is a dark, vivid blue. Relative luminance 0.027; OKLCH L 31.7% C 0.173 H 273.9°. Best body text is #FFFFFF at 13.69:1 contrast (WCAG AA passes).

Color values

HEX#201787
RGBrgb(32, 23, 135)
HSLhsl(245, 71%, 31%)
HSVhsv(245, 83%, 53%)
CMYKcmyk(76.3%, 83%, 0%, 47.1%)
CIE-LABlab(18.66, 41.29, -59.61)
CIE-LCHlch(18.66, 72.51, 304.71°)
OKLaboklab(31.71% 0.0116 -0.1724)
OKLCHoklch(31.71% 0.173 273.9)
XYZxyz(5.2738, 2.6686, 23.1541)
Luminance0.0267 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#201787 #7E8717
analogous
#174687 #201787 #581787
triadic
#201787 #872017 #178720
tetradic
#201787 #871746 #7E8717 #178758
square
#201787 #871746 #7E8717 #178758
split-complementary
#201787 #875817 #468717
monochromatic
#07051E #140E53 #201787 #2C20BB #483BDE

Accessibility & contrast

On white

13.69
#201787 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #201787
13.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##201787#FFFFFF#000000##FFFFFF
##2017871.0013.691.5313.69
#FFFFFF13.691.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00328A
Deuteranopia (green-blind)
#002885
Tritanopia (blue-blind)
#003A50
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #201787;
/* rgb */ color: rgb(32, 23, 135);
/* oklch */ color: oklch(31.7% 0.173 273.9);
Tailwind
colors: {
  custom: {
    50: '#6f58ab',
    500: '#201787',
    950: '#000000',
  },
}
SCSS
$custom: #201787;
$custom-light: #6f58ab;
$custom-dark: #000000;
JSON
{
  "hex": "#201787",
  "rgb": {
    "r": 32,
    "g": 23,
    "b": 135
  },
  "hsl": {
    "h": 244.821,
    "s": 70.886,
    "l": 30.98
  },
  "oklch": {
    "l": 0.31705,
    "c": 0.17281,
    "h": 273.9
  },
  "luminance": 0.02669
}

Semantic roles & 50–950 ramp

primary
#201787
secondary
#B1BB3F
accent
#EE3ADF
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090310
muted
#7B787F

Preview Lab

Preview with #201787

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

Preview Lab → · Contrast checker → · Palette generator →

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