#201F7B#201F7B

#201F7B is a dark, vivid blue. Relative luminance 0.027; OKLCH L 31.4% C 0.150 H 274.1°. Best body text is #FFFFFF at 13.61:1 contrast (WCAG AA passes).

Color values

HEX#201F7B
RGBrgb(32, 31, 123)
HSLhsl(241, 60%, 30%)
HSVhsv(241, 75%, 48%)
CMYKcmyk(74%, 74.8%, 0%, 51.8%)
CIE-LABlab(18.87, 32.69, -51.67)
CIE-LCHlch(18.87, 61.14, 302.32°)
OKLaboklab(31.45% 0.0106 -0.1494)
OKLCHoklch(31.45% 0.15 274.1)
XYZxyz(4.6596, 2.7167, 19.0139)
Luminance0.0272 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#201F7B #7A7B1F
analogous
#1F4C7B #201F7B #4E1F7B
triadic
#201F7B #7B201F #1F7B20
tetradic
#201F7B #7B1F4C #7A7B1F #1F7B4E
square
#201F7B #7B1F4C #7A7B1F #1F7B4E
split-complementary
#201F7B #7B4E1F #4C7B1F
monochromatic
#070619 #13134A #201F7B #2D2BAC #4644D0

Accessibility & contrast

On white

13.61
#201F7B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #201F7B
13.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##201F7B#FFFFFF#000000##FFFFFF
##201F7B1.0013.611.5413.61
#FFFFFF13.611.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00327E
Deuteranopia (green-blind)
#002979
Tritanopia (blue-blind)
#00394B
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #201f7b;
/* rgb */ color: rgb(32, 31, 123);
/* oklch */ color: oklch(31.4% 0.150 274.1);
Tailwind
colors: {
  custom: {
    50: '#6b5ca2',
    500: '#201f7b',
    950: '#000000',
  },
}
SCSS
$custom: #201f7b;
$custom-light: #6b5ca2;
$custom-dark: #000000;
JSON
{
  "hex": "#201f7b",
  "rgb": {
    "r": 32,
    "g": 31,
    "b": 123
  },
  "hsl": {
    "h": 240.652,
    "s": 59.74,
    "l": 30.196
  },
  "oklch": {
    "l": 0.31445,
    "c": 0.14978,
    "h": 274.1
  },
  "luminance": 0.02717
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #201F7B

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

Preview Lab → · Contrast checker → · Palette generator →

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