#201F7C#201F7C

#201F7C is a dark, vivid blue. Relative luminance 0.027; OKLCH L 31.6% C 0.151 H 273.9°. Best body text is #FFFFFF at 13.56:1 contrast (WCAG AA passes).

Color values

HEX#201F7C
RGBrgb(32, 31, 124)
HSLhsl(241, 60%, 30%)
HSVhsv(241, 75%, 49%)
CMYKcmyk(74.2%, 75%, 0%, 51.4%)
CIE-LABlab(18.98, 33.05, -52.13)
CIE-LCHlch(18.98, 61.72, 302.37°)
OKLaboklab(31.55% 0.0104 -0.1507)
OKLCHoklch(31.55% 0.151 273.9)
XYZxyz(4.7225, 2.7418, 19.3452)
Luminance0.0274 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#201F7C #7B7C1F
analogous
#1F4C7C #201F7C #4E1F7C
triadic
#201F7C #7C201F #1F7C20
tetradic
#201F7C #7C1F4C #7B7C1F #1F7C4E
square
#201F7C #7C1F4C #7B7C1F #1F7C4E
split-complementary
#201F7C #7C4E1F #4C7C1F
monochromatic
#07071A #13134B #201F7C #2D2BAD #4645D0

Accessibility & contrast

On white

13.56
#201F7C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.55
#201F7C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #201F7C
13.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##201F7C#FFFFFF#000000##FFFFFF
##201F7C1.0013.561.5513.56
#FFFFFF13.561.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00327F
Deuteranopia (green-blind)
#002A7A
Tritanopia (blue-blind)
#00394B
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #201f7c;
/* rgb */ color: rgb(32, 31, 124);
/* oklch */ color: oklch(31.6% 0.151 273.9);
Tailwind
colors: {
  custom: {
    50: '#6b5ca3',
    500: '#201f7c',
    950: '#000000',
  },
}
SCSS
$custom: #201f7c;
$custom-light: #6b5ca3;
$custom-dark: #000000;
JSON
{
  "hex": "#201f7c",
  "rgb": {
    "r": 32,
    "g": 31,
    "b": 124
  },
  "hsl": {
    "h": 240.645,
    "s": 60,
    "l": 30.392
  },
  "oklch": {
    "l": 0.31554,
    "c": 0.15111,
    "h": 273.9
  },
  "luminance": 0.02742
}

Semantic roles & 50–950 ramp

primary
#201F7C
secondary
#AEAF48
accent
#E345E1
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#08040F
muted
#7A797F

Preview Lab

Preview with #201F7C

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

Preview Lab → · Contrast checker → · Palette generator →

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