#201F8D#201F8D

#201F8D is a dark, vivid blue. Relative luminance 0.032; OKLCH L 33.5% C 0.173 H 272.4°. Best body text is #FFFFFF at 12.79:1 contrast (WCAG AA passes).

Color values

HEX#201F8D
RGBrgb(32, 31, 141)
HSLhsl(241, 64%, 34%)
HSVhsv(241, 78%, 55%)
CMYKcmyk(77.3%, 78%, 0%, 44.7%)
CIE-LABlab(20.86, 38.99, -59.73)
CIE-LCHlch(20.86, 71.32, 303.13°)
OKLaboklab(33.45% 0.0071 -0.1729)
OKLCHoklch(33.45% 0.173 272.4)
XYZxyz(5.8918, 3.2095, 25.5031)
Luminance0.0321 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#201F8D #8C8D1F
analogous
#1F558D #201F8D #571F8D
triadic
#201F8D #8D201F #1F8D20
tetradic
#201F8D #8D1F55 #8C8D1F #1F8D57
square
#201F8D #8D1F55 #8C8D1F #1F8D57
split-complementary
#201F8D #8D571F #558D1F
monochromatic
#090929 #15145B #201F8D #2B2ABF #504ED8

Accessibility & contrast

On white

12.79
#201F8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.64
#201F8D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #201F8D
12.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##201F8D#FFFFFF#000000##FFFFFF
##201F8D1.0012.791.6412.79
#FFFFFF12.791.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003790
Deuteranopia (green-blind)
#002D8B
Tritanopia (blue-blind)
#004055
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #201f8d;
/* rgb */ color: rgb(32, 31, 141);
/* oklch */ color: oklch(33.5% 0.173 272.4);
Tailwind
colors: {
  custom: {
    50: '#6f5db0',
    500: '#201f8d',
    950: '#000000',
  },
}
SCSS
$custom: #201f8d;
$custom-light: #6f5db0;
$custom-dark: #000000;
JSON
{
  "hex": "#201f8d",
  "rgb": {
    "r": 32,
    "g": 31,
    "b": 141
  },
  "hsl": {
    "h": 240.545,
    "s": 63.953,
    "l": 33.725
  },
  "oklch": {
    "l": 0.33451,
    "c": 0.17302,
    "h": 272.4
  },
  "luminance": 0.0321
}

Semantic roles & 50–950 ramp

primary
#201F8D
secondary
#BABB4D
accent
#E741E5
background
#F7F5FB
surface
#EDE9F6
border
#C8C5D0
text
#090411
muted
#7B7980

Preview Lab

Preview with #201F8D

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

Preview Lab → · Contrast checker → · Palette generator →

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