#201F98#201F98

#201F98 is a dark, vivid blue. Relative luminance 0.036; OKLCH L 34.7% C 0.187 H 271.5°. Best body text is #FFFFFF at 12.27:1 contrast (WCAG AA passes).

Color values

HEX#201F98
RGBrgb(32, 31, 152)
HSLhsl(240, 66%, 36%)
HSVhsv(240, 80%, 60%)
CMYKcmyk(78.9%, 79.6%, 0%, 40.4%)
CIE-LABlab(22.14, 42.69, -64.43)
CIE-LCHlch(22.14, 77.29, 303.53°)
OKLaboklab(34.72% 0.0048 -0.1865)
OKLCHoklch(34.72% 0.187 271.5)
XYZxyz(6.7512, 3.5533, 30.0297)
Luminance0.0355 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#201F98 #97981F
analogous
#1F5A98 #201F98 #5C1F98
triadic
#201F98 #98201F #1F9820
tetradic
#201F98 #981F5A #97981F #1F985C
square
#201F98 #981F5A #97981F #1F985C
split-complementary
#201F98 #985C1F #5A981F
monochromatic
#0B0A32 #151565 #201F98 #2B29CB #5655DC

Accessibility & contrast

On white

12.27
#201F98 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#201F98 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #201F98
12.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##201F98#FFFFFF#000000##FFFFFF
##201F981.0012.271.7112.27
#FFFFFF12.271.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B9B
Deuteranopia (green-blind)
#002F96
Tritanopia (blue-blind)
#00445B
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #201f98;
/* rgb */ color: rgb(32, 31, 152);
/* oklch */ color: oklch(34.7% 0.187 271.5);
Tailwind
colors: {
  custom: {
    50: '#725db8',
    500: '#201f98',
    950: '#000000',
  },
}
SCSS
$custom: #201f98;
$custom-light: #725db8;
$custom-dark: #000000;
JSON
{
  "hex": "#201f98",
  "rgb": {
    "r": 32,
    "g": 31,
    "b": 152
  },
  "hsl": {
    "h": 240.496,
    "s": 66.12,
    "l": 35.882
  },
  "oklch": {
    "l": 0.34718,
    "c": 0.18659,
    "h": 271.5
  },
  "luminance": 0.03554
}

Semantic roles & 50–950 ramp

primary
#201F98
secondary
#BFC053
accent
#E93FE8
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#090411
muted
#7B7980

Preview Lab

Preview with #201F98

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

Preview Lab → · Contrast checker → · Palette generator →

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