#201F8F#201F8F

#201F8F is a dark, vivid blue. Relative luminance 0.033; OKLCH L 33.7% C 0.176 H 272.2°. Best body text is #FFFFFF at 12.70:1 contrast (WCAG AA passes).

Color values

HEX#201F8F
RGBrgb(32, 31, 143)
HSLhsl(241, 64%, 34%)
HSVhsv(241, 78%, 56%)
CMYKcmyk(77.6%, 78.3%, 0%, 43.9%)
CIE-LABlab(21.09, 39.67, -60.59)
CIE-LCHlch(21.09, 72.42, 303.21°)
OKLaboklab(33.68% 0.0067 -0.1754)
OKLCHoklch(33.68% 0.176 272.2)
XYZxyz(6.0419, 3.2696, 26.2939)
Luminance0.0327 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#201F8F #8E8F1F
analogous
#1F568F #201F8F #581F8F
triadic
#201F8F #8F201F #1F8F20
tetradic
#201F8F #8F1F56 #8E8F1F #1F8F58
square
#201F8F #8F1F56 #8E8F1F #1F8F58
split-complementary
#201F8F #8F581F #568F1F
monochromatic
#09092A #15145D #201F8F #2B2AC1 #514FD9

Accessibility & contrast

On white

12.70
#201F8F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#201F8F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #201F8F
12.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##201F8F#FFFFFF#000000##FFFFFF
##201F8F1.0012.701.6512.70
#FFFFFF12.701.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003892
Deuteranopia (green-blind)
#002D8D
Tritanopia (blue-blind)
#004156
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #201f8f;
/* rgb */ color: rgb(32, 31, 143);
/* oklch */ color: oklch(33.7% 0.176 272.2);
Tailwind
colors: {
  custom: {
    50: '#705db1',
    500: '#201f8f',
    950: '#000000',
  },
}
SCSS
$custom: #201f8f;
$custom-light: #705db1;
$custom-dark: #000000;
JSON
{
  "hex": "#201f8f",
  "rgb": {
    "r": 32,
    "g": 31,
    "b": 143
  },
  "hsl": {
    "h": 240.536,
    "s": 64.368,
    "l": 34.118
  },
  "oklch": {
    "l": 0.3368,
    "c": 0.17552,
    "h": 272.2
  },
  "luminance": 0.0327
}

Semantic roles & 50–950 ramp

primary
#201F8F
secondary
#BBBC4E
accent
#E740E6
background
#F7F5FB
surface
#EDE9F6
border
#C8C5D0
text
#090411
muted
#7B7980

Preview Lab

Preview with #201F8F

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

Preview Lab → · Contrast checker → · Palette generator →

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