#201F81#201F81

#201F81 is a dark, vivid blue. Relative luminance 0.029; OKLCH L 32.1% C 0.158 H 273.4°. Best body text is #FFFFFF at 13.34:1 contrast (WCAG AA passes).

Color values

HEX#201F81
RGBrgb(32, 31, 129)
HSLhsl(241, 61%, 31%)
HSVhsv(241, 76%, 51%)
CMYKcmyk(75.2%, 76%, 0%, 49.4%)
CIE-LABlab(19.52, 34.82, -54.41)
CIE-LCHlch(19.52, 64.59, 302.62°)
OKLaboklab(32.1% 0.0095 -0.1574)
OKLCHoklch(32.1% 0.158 273.4)
XYZxyz(5.0468, 2.8715, 21.0529)
Luminance0.0287 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#201F81 #80811F
analogous
#1F4F81 #201F81 #511F81
triadic
#201F81 #81201F #1F8120
tetradic
#201F81 #811F4F #80811F #1F8151
square
#201F81 #811F4F #80811F #1F8151
split-complementary
#201F81 #81511F #4F811F
monochromatic
#08071E #141350 #201F81 #2C2BB2 #4947D3

Accessibility & contrast

On white

13.34
#201F81 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.57
#201F81 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #201F81
13.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##201F81#FFFFFF#000000##FFFFFF
##201F811.0013.341.5713.34
#FFFFFF13.341.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003484
Deuteranopia (green-blind)
#002B7F
Tritanopia (blue-blind)
#003B4E
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #201f81;
/* rgb */ color: rgb(32, 31, 129);
/* oklch */ color: oklch(32.1% 0.158 273.4);
Tailwind
colors: {
  custom: {
    50: '#6c5ca7',
    500: '#201f81',
    950: '#000000',
  },
}
SCSS
$custom: #201f81;
$custom-light: #6c5ca7;
$custom-dark: #000000;
JSON
{
  "hex": "#201f81",
  "rgb": {
    "r": 32,
    "g": 31,
    "b": 129
  },
  "hsl": {
    "h": 240.612,
    "s": 61.25,
    "l": 31.373
  },
  "oklch": {
    "l": 0.32103,
    "c": 0.15768,
    "h": 273.4
  },
  "luminance": 0.02872
}

Semantic roles & 50–950 ramp

primary
#201F81
secondary
#B3B448
accent
#E443E3
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#080410
muted
#7B797F

Preview Lab

Preview with #201F81

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

Preview Lab → · Contrast checker → · Palette generator →

#201F81 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva