#201172#201172

#201172 is a dark, vivid blue. Relative luminance 0.019; OKLCH L 28.5% C 0.152 H 277.6°. Best body text is #FFFFFF at 15.17:1 contrast (WCAG AA passes).

Color values

HEX#201172
RGBrgb(32, 17, 114)
HSLhsl(249, 74%, 26%)
HSVhsv(249, 85%, 45%)
CMYKcmyk(71.9%, 85.1%, 0%, 55.3%)
CIE-LABlab(15.08, 37.51, -52.15)
CIE-LCHlch(15.08, 64.24, 305.73°)
OKLaboklab(28.47% 0.0202 -0.1507)
OKLCHoklch(28.47% 0.152 277.6)
XYZxyz(3.8324, 1.9225, 16.0854)
Luminance0.0192 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#201172 #637211
analogous
#113272 #201172 #501172
triadic
#201172 #722011 #117220
tetradic
#201172 #721132 #637211 #117250
square
#201172 #721132 #637211 #117250
split-complementary
#201172 #725011 #327211
monochromatic
#07041B #11093D #201172 #2F19A7 #3E21DD

Accessibility & contrast

On white

15.17
#201172 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.38
#201172 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #201172
15.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##201172#FFFFFF#000000##FFFFFF
##2011721.0015.171.3815.17
#FFFFFF15.171.0021.001.00
#0000001.3821.001.0021.00
##FFFFFF15.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A75
Deuteranopia (green-blind)
#002270
Tritanopia (blue-blind)
#002F42
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #201172;
/* rgb */ color: rgb(32, 17, 114);
/* oklch */ color: oklch(28.5% 0.152 277.6);
Tailwind
colors: {
  custom: {
    50: '#6a539c',
    500: '#201172',
    950: '#000000',
  },
}
SCSS
$custom: #201172;
$custom-light: #6a539c;
$custom-dark: #000000;
JSON
{
  "hex": "#201172",
  "rgb": {
    "r": 32,
    "g": 17,
    "b": 114
  },
  "hsl": {
    "h": 249.278,
    "s": 74.046,
    "l": 25.686
  },
  "oklch": {
    "l": 0.28471,
    "c": 0.15201,
    "h": 277.6
  },
  "luminance": 0.01923
}

Semantic roles & 50–950 ramp

primary
#201172
secondary
#97A936
accent
#F137D4
background
#F6F4F9
surface
#ECE7F2
border
#C7C3CC
text
#07020E
muted
#7A787E

Preview Lab

Preview with #201172

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

Preview Lab → · Contrast checker → · Palette generator →

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