#201F8B#201F8B

#201F8B is a dark, vivid blue. Relative luminance 0.032; OKLCH L 33.2% C 0.171 H 272.5°. Best body text is #FFFFFF at 12.88:1 contrast (WCAG AA passes).

Color values

HEX#201F8B
RGBrgb(32, 31, 139)
HSLhsl(241, 64%, 33%)
HSVhsv(241, 78%, 55%)
CMYKcmyk(77%, 77.7%, 0%, 45.5%)
CIE-LABlab(20.64, 38.30, -58.85)
CIE-LCHlch(20.64, 70.22, 303.05°)
OKLaboklab(33.22% 0.0075 -0.1703)
OKLCHoklch(33.22% 0.171 272.5)
XYZxyz(5.7443, 3.1505, 24.7265)
Luminance0.0315 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#201F8B #8A8B1F
analogous
#1F548B #201F8B #561F8B
triadic
#201F8B #8B201F #1F8B20
tetradic
#201F8B #8B1F54 #8A8B1F #1F8B56
square
#201F8B #8B1F54 #8A8B1F #1F8B56
split-complementary
#201F8B #8B561F #548B1F
monochromatic
#090927 #141459 #201F8B #2C2ABD #4E4DD7

Accessibility & contrast

On white

12.88
#201F8B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#201F8B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #201F8B
12.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##201F8B#FFFFFF#000000##FFFFFF
##201F8B1.0012.881.6312.88
#FFFFFF12.881.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00378E
Deuteranopia (green-blind)
#002C89
Tritanopia (blue-blind)
#003F54
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #201f8b;
/* rgb */ color: rgb(32, 31, 139);
/* oklch */ color: oklch(33.2% 0.171 272.5);
Tailwind
colors: {
  custom: {
    50: '#6f5cae',
    500: '#201f8b',
    950: '#000000',
  },
}
SCSS
$custom: #201f8b;
$custom-light: #6f5cae;
$custom-dark: #000000;
JSON
{
  "hex": "#201f8b",
  "rgb": {
    "r": 32,
    "g": 31,
    "b": 139
  },
  "hsl": {
    "h": 240.556,
    "s": 63.529,
    "l": 33.333
  },
  "oklch": {
    "l": 0.33224,
    "c": 0.1705,
    "h": 272.5
  },
  "luminance": 0.03151
}

Semantic roles & 50–950 ramp

primary
#201F8B
secondary
#B9BA4C
accent
#E741E5
background
#F7F5FA
surface
#EDE9F5
border
#C8C5CF
text
#090410
muted
#7B797F

Preview Lab

Preview with #201F8B

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

Preview Lab → · Contrast checker → · Palette generator →

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