#201797#201797

#201797 is a dark, vivid blue. Relative luminance 0.032; OKLCH L 33.6% C 0.192 H 272.2°. Best body text is #FFFFFF at 12.88:1 contrast (WCAG AA passes).

Color values

HEX#201797
RGBrgb(32, 23, 151)
HSLhsl(244, 74%, 34%)
HSVhsv(244, 85%, 59%)
CMYKcmyk(78.8%, 84.8%, 0%, 40.8%)
CIE-LABlab(20.65, 46.36, -66.28)
CIE-LCHlch(20.65, 80.89, 304.97°)
OKLaboklab(33.65% 0.0074 -0.1918)
OKLCHoklch(33.65% 0.192 272.2)
XYZxyz(6.4861, 3.1535, 29.5390)
Luminance0.0315 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#201797 #8E9717
analogous
#174E97 #201797 #601797
triadic
#201797 #972017 #179720
tetradic
#201797 #97174E #8E9717 #179760
square
#201797 #97174E #8E9717 #179760
split-complementary
#201797 #976017 #4E9717
monochromatic
#09072D #150F62 #201797 #2B1FCC #5146E3

Accessibility & contrast

On white

12.88
#201797 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#201797 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #201797
12.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##201797#FFFFFF#000000##FFFFFF
##2017971.0012.881.6312.88
#FFFFFF12.881.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00389A
Deuteranopia (green-blind)
#002B95
Tritanopia (blue-blind)
#004159
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #201797;
/* rgb */ color: rgb(32, 23, 151);
/* oklch */ color: oklch(33.6% 0.192 272.2);
Tailwind
colors: {
  custom: {
    50: '#7359b7',
    500: '#201797',
    950: '#000000',
  },
}
SCSS
$custom: #201797;
$custom-light: #7359b7;
$custom-dark: #000000;
JSON
{
  "hex": "#201797",
  "rgb": {
    "r": 32,
    "g": 23,
    "b": 151
  },
  "hsl": {
    "h": 244.219,
    "s": 73.563,
    "l": 34.118
  },
  "oklch": {
    "l": 0.33649,
    "c": 0.1919,
    "h": 272.2
  },
  "luminance": 0.03154
}

Semantic roles & 50–950 ramp

primary
#201797
secondary
#BBC446
accent
#F038E3
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #201797

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

Preview Lab → · Contrast checker → · Palette generator →

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