#201F40#201F40

#201F40 is a dark, moderate blue. Relative luminance 0.017; OKLCH L 25.9% C 0.061 H 282.7°. Best body text is #FFFFFF at 15.77:1 contrast (WCAG AA passes).

Color values

HEX#201F40
RGBrgb(32, 31, 64)
HSLhsl(242, 35%, 19%)
HSVhsv(242, 52%, 25%)
CMYKcmyk(50%, 51.6%, 0%, 74.9%)
CIE-LABlab(13.57, 10.81, -20.93)
CIE-LCHlch(13.57, 23.56, 297.32°)
OKLaboklab(25.92% 0.0133 -0.0593)
OKLCHoklch(25.92% 0.061 282.7)
XYZxyz(2.0108, 1.6571, 5.0634)
Luminance0.0166 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#201F40 #3F401F
analogous
#1F2E40 #201F40 #301F40
triadic
#201F40 #40201F #1F4020
tetradic
#201F40 #401F2E #3F401F #1F4030
square
#201F40 #401F2E #3F401F #1F4030
split-complementary
#201F40 #40301F #2E401F
monochromatic
#0A0A15 #0B0B17 #201F40 #353369 #494792

Accessibility & contrast

On white

15.77
#201F40 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.33
#201F40 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #201F40
15.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##201F40#FFFFFF#000000##FFFFFF
##201F401.0015.771.3315.77
#FFFFFF15.771.0021.001.00
#0000001.3321.001.0021.00
##FFFFFF15.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#122441
Deuteranopia (green-blind)
#11223F
Tritanopia (blue-blind)
#16262C
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #201f40;
/* rgb */ color: rgb(32, 31, 64);
/* oklch */ color: oklch(25.9% 0.061 282.7);
Tailwind
colors: {
  custom: {
    50: '#5e5a75',
    500: '#201f40',
    950: '#000000',
  },
}
SCSS
$custom: #201f40;
$custom-light: #5e5a75;
$custom-dark: #000000;
JSON
{
  "hex": "#201f40",
  "rgb": {
    "r": 32,
    "g": 31,
    "b": 64
  },
  "hsl": {
    "h": 241.818,
    "s": 34.737,
    "l": 18.627
  },
  "oklch": {
    "l": 0.25918,
    "c": 0.06074,
    "h": 282.7
  },
  "luminance": 0.01657
}

Semantic roles & 50–950 ramp

primary
#201F40
secondary
#737447
accent
#CB5DC7
background
#F5F5F7
surface
#E9E9ED
border
#C5C5C8
text
#040308
muted
#79787B

Preview Lab

Preview with #201F40

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

Preview Lab → · Contrast checker → · Palette generator →

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