#201F7A#201F7A

#201F7A is a dark, vivid blue. Relative luminance 0.027; OKLCH L 31.3% C 0.148 H 274.2°. Best body text is #FFFFFF at 13.65:1 contrast (WCAG AA passes).

Color values

HEX#201F7A
RGBrgb(32, 31, 122)
HSLhsl(241, 59%, 30%)
HSVhsv(241, 75%, 48%)
CMYKcmyk(73.8%, 74.6%, 0%, 52.2%)
CIE-LABlab(18.76, 32.33, -51.20)
CIE-LCHlch(18.76, 60.56, 302.27°)
OKLaboklab(31.34% 0.0108 -0.1481)
OKLCHoklch(31.34% 0.148 274.2)
XYZxyz(4.5973, 2.6917, 18.6859)
Luminance0.0269 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#201F7A #797A1F
analogous
#1F4C7A #201F7A #4D1F7A
triadic
#201F7A #7A201F #1F7A20
tetradic
#201F7A #7A1F4C #797A1F #1F7A4D
square
#201F7A #7A1F4C #797A1F #1F7A4D
split-complementary
#201F7A #7A4D1F #4C7A1F
monochromatic
#060618 #131349 #201F7A #2D2BAB #4544CF

Accessibility & contrast

On white

13.65
#201F7A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.54
#201F7A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #201F7A
13.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##201F7A#FFFFFF#000000##FFFFFF
##201F7A1.0013.651.5413.65
#FFFFFF13.651.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00327D
Deuteranopia (green-blind)
#002978
Tritanopia (blue-blind)
#00394A
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #201f7a;
/* rgb */ color: rgb(32, 31, 122);
/* oklch */ color: oklch(31.3% 0.148 274.2);
Tailwind
colors: {
  custom: {
    50: '#6a5ba1',
    500: '#201f7a',
    950: '#000000',
  },
}
SCSS
$custom: #201f7a;
$custom-light: #6a5ba1;
$custom-dark: #000000;
JSON
{
  "hex": "#201f7a",
  "rgb": {
    "r": 32,
    "g": 31,
    "b": 122
  },
  "hsl": {
    "h": 240.659,
    "s": 59.477,
    "l": 30
  },
  "oklch": {
    "l": 0.31337,
    "c": 0.14845,
    "h": 274.2
  },
  "luminance": 0.02692
}

Semantic roles & 50–950 ramp

primary
#201F7A
secondary
#ACAD47
accent
#E345E1
background
#F6F5FA
surface
#ECE9F3
border
#C7C5CD
text
#08040F
muted
#7A797F

Preview Lab

Preview with #201F7A

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

Preview Lab → · Contrast checker → · Palette generator →

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