#201271#201271

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

Color values

HEX#201271
RGBrgb(32, 18, 113)
HSLhsl(249, 73%, 26%)
HSVhsv(249, 84%, 44%)
CMYKcmyk(71.7%, 84.1%, 0%, 55.7%)
CIE-LABlab(15.12, 36.69, -51.42)
CIE-LCHlch(15.12, 63.17, 305.51°)
OKLaboklab(28.47% 0.02 -0.1486)
OKLCHoklch(28.47% 0.15 277.7)
XYZxyz(3.7916, 1.9316, 15.7926)
Luminance0.0193 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#201271 #637112
analogous
#123371 #201271 #4F1271
triadic
#201271 #712012 #127120
tetradic
#201271 #711233 #637112 #12714F
square
#201271 #711233 #637112 #12714F
split-complementary
#201271 #714F12 #337112
monochromatic
#07041A #110A3C #201271 #2F1AA6 #3E23DB

Accessibility & contrast

On white

15.15
#201271 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.39
#201271 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #201271
15.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##201271#FFFFFF#000000##FFFFFF
##2012711.0015.151.3915.15
#FFFFFF15.151.0021.001.00
#0000001.3921.001.0021.00
##FFFFFF15.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A74
Deuteranopia (green-blind)
#00226F
Tritanopia (blue-blind)
#002F42
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #201271;
/* rgb */ color: rgb(32, 18, 113);
/* oklch */ color: oklch(28.5% 0.150 277.7);
Tailwind
colors: {
  custom: {
    50: '#6a539b',
    500: '#201271',
    950: '#000000',
  },
}
SCSS
$custom: #201271;
$custom-light: #6a539b;
$custom-dark: #000000;
JSON
{
  "hex": "#201271",
  "rgb": {
    "r": 32,
    "g": 18,
    "b": 113
  },
  "hsl": {
    "h": 248.842,
    "s": 72.519,
    "l": 25.686
  },
  "oklch": {
    "l": 0.28469,
    "c": 0.14991,
    "h": 277.7
  },
  "luminance": 0.01932
}

Semantic roles & 50–950 ramp

primary
#201271
secondary
#97A837
accent
#EF39D4
background
#F6F4F9
surface
#ECE7F2
border
#C7C3CC
text
#07030E
muted
#7A787E

Preview Lab

Preview with #201271

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

Preview Lab → · Contrast checker → · Palette generator →

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