#201F7E#201F7E

#201F7E is a dark, vivid blue. Relative luminance 0.028; OKLCH L 31.8% C 0.154 H 273.7°. Best body text is #FFFFFF at 13.47:1 contrast (WCAG AA passes).

Color values

HEX#201F7E
RGBrgb(32, 31, 126)
HSLhsl(241, 61%, 31%)
HSVhsv(241, 75%, 49%)
CMYKcmyk(74.6%, 75.4%, 0%, 50.6%)
CIE-LABlab(19.19, 33.76, -53.04)
CIE-LCHlch(19.19, 62.87, 302.47°)
OKLaboklab(31.77% 0.01 -0.1534)
OKLCHoklch(31.77% 0.154 273.7)
XYZxyz(4.8503, 2.7929, 20.0181)
Luminance0.0279 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#201F7E #7D7E1F
analogous
#1F4D7E #201F7E #4F1F7E
triadic
#201F7E #7E201F #1F7E20
tetradic
#201F7E #7E1F4D #7D7E1F #1F7E4F
square
#201F7E #7E1F4D #7D7E1F #1F7E4F
split-complementary
#201F7E #7E4F1F #4D7E1F
monochromatic
#07071C #14134D #201F7E #2C2BAF #4746D1

Accessibility & contrast

On white

13.47
#201F7E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #201F7E
13.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##201F7E#FFFFFF#000000##FFFFFF
##201F7E1.0013.471.5613.47
#FFFFFF13.471.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003381
Deuteranopia (green-blind)
#002A7C
Tritanopia (blue-blind)
#003A4C
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #201f7e;
/* rgb */ color: rgb(32, 31, 126);
/* oklch */ color: oklch(31.8% 0.154 273.7);
Tailwind
colors: {
  custom: {
    50: '#6b5ca4',
    500: '#201f7e',
    950: '#000000',
  },
}
SCSS
$custom: #201f7e;
$custom-light: #6b5ca4;
$custom-dark: #000000;
JSON
{
  "hex": "#201f7e",
  "rgb": {
    "r": 32,
    "g": 31,
    "b": 126
  },
  "hsl": {
    "h": 240.632,
    "s": 60.51,
    "l": 30.784
  },
  "oklch": {
    "l": 0.31773,
    "c": 0.15376,
    "h": 273.7
  },
  "luminance": 0.02793
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #201F7E

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

Preview Lab → · Contrast checker → · Palette generator →

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