#201F8C#201F8C

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

Color values

HEX#201F8C
RGBrgb(32, 31, 140)
HSLhsl(241, 64%, 34%)
HSVhsv(241, 78%, 55%)
CMYKcmyk(77.1%, 77.9%, 0%, 45.1%)
CIE-LABlab(20.75, 38.64, -59.29)
CIE-LCHlch(20.75, 70.77, 303.09°)
OKLaboklab(33.34% 0.0073 -0.1716)
OKLCHoklch(33.34% 0.172 272.4)
XYZxyz(5.8177, 3.1799, 25.1130)
Luminance0.0318 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#201F8C #8B8C1F
analogous
#1F548C #201F8C #561F8C
triadic
#201F8C #8C201F #1F8C20
tetradic
#201F8C #8C1F54 #8B8C1F #1F8C56
square
#201F8C #8C1F54 #8B8C1F #1F8C56
split-complementary
#201F8C #8C561F #548C1F
monochromatic
#090928 #15145A #201F8C #2B2ABE #4F4ED8

Accessibility & contrast

On white

12.84
#201F8C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #201F8C
12.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##201F8C#FFFFFF#000000##FFFFFF
##201F8C1.0012.841.6412.84
#FFFFFF12.841.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.841.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #201f8c;
/* rgb */ color: rgb(32, 31, 140);
/* oklch */ color: oklch(33.3% 0.172 272.4);
Tailwind
colors: {
  custom: {
    50: '#6f5caf',
    500: '#201f8c',
    950: '#000000',
  },
}
SCSS
$custom: #201f8c;
$custom-light: #6f5caf;
$custom-dark: #000000;
JSON
{
  "hex": "#201f8c",
  "rgb": {
    "r": 32,
    "g": 31,
    "b": 140
  },
  "hsl": {
    "h": 240.55,
    "s": 63.743,
    "l": 33.529
  },
  "oklch": {
    "l": 0.33338,
    "c": 0.17176,
    "h": 272.4
  },
  "luminance": 0.0318
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #201F8C

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

Preview Lab → · Contrast checker → · Palette generator →

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