#201D7F#201D7F

#201D7F is a dark, vivid blue. Relative luminance 0.027; OKLCH L 31.6% C 0.157 H 274.0°. Best body text is #FFFFFF at 13.60:1 contrast (WCAG AA passes).

Color values

HEX#201D7F
RGBrgb(32, 29, 127)
HSLhsl(242, 63%, 31%)
HSVhsv(242, 77%, 50%)
CMYKcmyk(74.8%, 77.2%, 0%, 50.2%)
CIE-LABlab(18.88, 35.31, -54.20)
CIE-LCHlch(18.88, 64.69, 303.08°)
OKLaboklab(31.58% 0.0109 -0.1568)
OKLCHoklch(31.58% 0.157 274)
XYZxyz(4.8645, 2.7176, 20.3427)
Luminance0.0272 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#201D7F #7C7F1D
analogous
#1D4B7F #201D7F #511D7F
triadic
#201D7F #7F201D #1D7F20
tetradic
#201D7F #7F1D4B #7C7F1D #1D7F51
square
#201D7F #7F1D4B #7C7F1D #1D7F51
split-complementary
#201D7F #7F511D #4B7F1D
monochromatic
#07061B #13124D #201D7F #2D28B1 #4742D4

Accessibility & contrast

On white

13.60
#201D7F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.54
#201D7F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #201D7F
13.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##201D7F#FFFFFF#000000##FFFFFF
##201D7F1.0013.601.5413.60
#FFFFFF13.601.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003282
Deuteranopia (green-blind)
#00297D
Tritanopia (blue-blind)
#003A4C
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #201d7f;
/* rgb */ color: rgb(32, 29, 127);
/* oklch */ color: oklch(31.6% 0.157 274.0);
Tailwind
colors: {
  custom: {
    50: '#6c5aa5',
    500: '#201d7f',
    950: '#000000',
  },
}
SCSS
$custom: #201d7f;
$custom-light: #6c5aa5;
$custom-dark: #000000;
JSON
{
  "hex": "#201d7f",
  "rgb": {
    "r": 32,
    "g": 29,
    "b": 127
  },
  "hsl": {
    "h": 241.837,
    "s": 62.821,
    "l": 30.588
  },
  "oklch": {
    "l": 0.31579,
    "c": 0.15717,
    "h": 274
  },
  "luminance": 0.02718
}

Semantic roles & 50–950 ramp

primary
#201D7F
secondary
#AFB245
accent
#E642E1
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08040F
muted
#7B797F

Preview Lab

Preview with #201D7F

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

Preview Lab → · Contrast checker → · Palette generator →

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