#201F7F#201F7F

#201F7F is a dark, vivid blue. Relative luminance 0.028; OKLCH L 31.9% C 0.155 H 273.6°. Best body text is #FFFFFF at 13.43:1 contrast (WCAG AA passes).

Color values

HEX#201F7F
RGBrgb(32, 31, 127)
HSLhsl(241, 61%, 31%)
HSVhsv(241, 76%, 50%)
CMYKcmyk(74.8%, 75.6%, 0%, 50.2%)
CIE-LABlab(19.30, 34.11, -53.50)
CIE-LCHlch(19.30, 63.45, 302.52°)
OKLaboklab(31.88% 0.0099 -0.1547)
OKLCHoklch(31.88% 0.155 273.6)
XYZxyz(4.9151, 2.8189, 20.3596)
Luminance0.0282 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#201F7F #7E7F1F
analogous
#1F4E7F #201F7F #501F7F
triadic
#201F7F #7F201F #1F7F20
tetradic
#201F7F #7F1F4E #7E7F1F #1F7F50
square
#201F7F #7F1F4E #7E7F1F #1F7F50
split-complementary
#201F7F #7F501F #4E7F1F
monochromatic
#07071D #14134E #201F7F #2C2BB0 #4846D2

Accessibility & contrast

On white

13.43
#201F7F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.56
#201F7F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #201F7F
13.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##201F7F#FFFFFF#000000##FFFFFF
##201F7F1.0013.431.5613.43
#FFFFFF13.431.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003382
Deuteranopia (green-blind)
#002A7D
Tritanopia (blue-blind)
#003A4D
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #201f7f;
/* rgb */ color: rgb(32, 31, 127);
/* oklch */ color: oklch(31.9% 0.155 273.6);
Tailwind
colors: {
  custom: {
    50: '#6c5ca5',
    500: '#201f7f',
    950: '#000000',
  },
}
SCSS
$custom: #201f7f;
$custom-light: #6c5ca5;
$custom-dark: #000000;
JSON
{
  "hex": "#201f7f",
  "rgb": {
    "r": 32,
    "g": 31,
    "b": 127
  },
  "hsl": {
    "h": 240.625,
    "s": 60.759,
    "l": 30.98
  },
  "oklch": {
    "l": 0.31883,
    "c": 0.15506,
    "h": 273.6
  },
  "luminance": 0.02819
}

Semantic roles & 50–950 ramp

primary
#201F7F
secondary
#B1B248
accent
#E444E2
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08040F
muted
#7B797F

Preview Lab

Preview with #201F7F

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

Preview Lab → · Contrast checker → · Palette generator →

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