#201F7D#201F7D

#201F7D is a dark, vivid blue. Relative luminance 0.028; OKLCH L 31.7% C 0.152 H 273.8°. Best body text is #FFFFFF at 13.52:1 contrast (WCAG AA passes).

Color values

HEX#201F7D
RGBrgb(32, 31, 125)
HSLhsl(241, 60%, 31%)
HSVhsv(241, 75%, 49%)
CMYKcmyk(74.4%, 75.2%, 0%, 51%)
CIE-LABlab(19.09, 33.40, -52.59)
CIE-LCHlch(19.09, 62.30, 302.42°)
OKLaboklab(31.66% 0.0102 -0.1521)
OKLCHoklch(31.66% 0.152 273.8)
XYZxyz(4.7861, 2.7672, 19.6800)
Luminance0.0277 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#201F7D #7C7D1F
analogous
#1F4D7D #201F7D #4F1F7D
triadic
#201F7D #7D201F #1F7D20
tetradic
#201F7D #7D1F4D #7C7D1F #1F7D4F
square
#201F7D #7D1F4D #7C7D1F #1F7D4F
split-complementary
#201F7D #7D4F1F #4D7D1F
monochromatic
#07071B #13134C #201F7D #2D2BAE #4745D1

Accessibility & contrast

On white

13.52
#201F7D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.55
#201F7D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #201F7D
13.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##201F7D#FFFFFF#000000##FFFFFF
##201F7D1.0013.521.5513.52
#FFFFFF13.521.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003380
Deuteranopia (green-blind)
#002A7B
Tritanopia (blue-blind)
#003A4C
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #201f7d;
/* rgb */ color: rgb(32, 31, 125);
/* oklch */ color: oklch(31.7% 0.152 273.8);
Tailwind
colors: {
  custom: {
    50: '#6b5ca4',
    500: '#201f7d',
    950: '#000000',
  },
}
SCSS
$custom: #201f7d;
$custom-light: #6b5ca4;
$custom-dark: #000000;
JSON
{
  "hex": "#201f7d",
  "rgb": {
    "r": 32,
    "g": 31,
    "b": 125
  },
  "hsl": {
    "h": 240.638,
    "s": 60.256,
    "l": 30.588
  },
  "oklch": {
    "l": 0.31663,
    "c": 0.15243,
    "h": 273.8
  },
  "luminance": 0.02768
}

Semantic roles & 50–950 ramp

primary
#201F7D
secondary
#AFB048
accent
#E344E2
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#08040F
muted
#7A797F

Preview Lab

Preview with #201F7D

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

Preview Lab → · Contrast checker → · Palette generator →

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