#201F52#201F52

#201F52 is a dark, moderate blue. Relative luminance 0.019; OKLCH L 27.4% C 0.091 H 279.5°. Best body text is #FFFFFF at 15.23:1 contrast (WCAG AA passes).

Color values

HEX#201F52
RGBrgb(32, 31, 82)
HSLhsl(241, 45%, 22%)
HSVhsv(241, 62%, 32%)
CMYKcmyk(61%, 62.2%, 0%, 67.8%)
CIE-LABlab(14.93, 17.48, -31.16)
CIE-LCHlch(14.93, 35.73, 299.30°)
OKLaboklab(27.37% 0.0149 -0.0893)
OKLCHoklch(27.37% 0.091 279.5)
XYZxyz(2.6082, 1.8961, 8.2095)
Luminance0.0190 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#201F52 #51521F
analogous
#1F3852 #201F52 #391F52
triadic
#201F52 #52201F #1F5220
tetradic
#201F52 #521F38 #51521F #1F5239
square
#201F52 #521F38 #51521F #1F5239
split-complementary
#201F52 #52391F #38521F
monochromatic
#090816 #0F0E26 #201F52 #31307E #4341AB

Accessibility & contrast

On white

15.23
#201F52 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.38
#201F52 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #201F52
15.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##201F52#FFFFFF#000000##FFFFFF
##201F521.0015.231.3815.23
#FFFFFF15.231.0021.001.00
#0000001.3821.001.0021.00
##FFFFFF15.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002854
Deuteranopia (green-blind)
#002451
Tritanopia (blue-blind)
#072B35
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #201f52;
/* rgb */ color: rgb(32, 31, 82);
/* oklch */ color: oklch(27.4% 0.091 279.5);
Tailwind
colors: {
  custom: {
    50: '#615a83',
    500: '#201f52',
    950: '#000000',
  },
}
SCSS
$custom: #201f52;
$custom-light: #615a83;
$custom-dark: #000000;
JSON
{
  "hex": "#201f52",
  "rgb": {
    "r": 32,
    "g": 31,
    "b": 82
  },
  "hsl": {
    "h": 241.176,
    "s": 45.133,
    "l": 22.157
  },
  "oklch": {
    "l": 0.27371,
    "c": 0.09055,
    "h": 279.5
  },
  "luminance": 0.01896
}

Semantic roles & 50–950 ramp

primary
#201F52
secondary
#858746
accent
#D553D2
background
#F5F5F8
surface
#EAE9EF
border
#C6C5CA
text
#05040A
muted
#79797C

Preview Lab

Preview with #201F52

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

Preview Lab → · Contrast checker → · Palette generator →

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