#201838#201838

#201838 is a very dark, muted violet. Relative luminance 0.012; OKLCH L 23.7% C 0.060 H 292.8°. Best body text is #FFFFFF at 16.81:1 contrast (WCAG AA passes).

Color values

HEX#201838
RGBrgb(32, 24, 56)
HSLhsl(255, 40%, 16%)
HSVhsv(255, 57%, 22%)
CMYKcmyk(42.9%, 57.1%, 0%, 78%)
CIE-LABlab(10.89, 13.19, -19.53)
CIE-LCHlch(10.89, 23.57, 304.02°)
OKLaboklab(23.72% 0.0232 -0.0552)
OKLCHoklch(23.72% 0.06 292.8)
XYZxyz(1.6359, 1.2458, 3.8949)
Luminance0.0125 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#201838 #303818
analogous
#182038 #201838 #301838
triadic
#201838 #382018 #183820
tetradic
#201838 #381820 #303818 #183830
square
#201838 #381820 #303818 #183830
split-complementary
#201838 #383018 #203818
monochromatic
#0C0915 #0C0915 #201838 #382A63 #513D8E

Accessibility & contrast

On white

16.81
#201838 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.25
#201838 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #201838
16.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##201838#FFFFFF#000000##FFFFFF
##2018381.0016.811.2516.81
#FFFFFF16.811.0021.001.00
#0000001.2521.001.0021.00
##FFFFFF16.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0C1E39
Deuteranopia (green-blind)
#0D1D37
Tritanopia (blue-blind)
#1A1E25
Achromatopsia (no color)
#1D1D1D

Design tokens & code

CSS
--color: #201838;
/* rgb */ color: rgb(32, 24, 56);
/* oklch */ color: oklch(23.7% 0.060 292.8);
Tailwind
colors: {
  custom: {
    50: '#5d546f',
    500: '#201838',
    950: '#000000',
  },
}
SCSS
$custom: #201838;
$custom-light: #5d546f;
$custom-dark: #000000;
JSON
{
  "hex": "#201838",
  "rgb": {
    "r": 32,
    "g": 24,
    "b": 56
  },
  "hsl": {
    "h": 255,
    "s": 40,
    "l": 15.686
  },
  "oklch": {
    "l": 0.23718,
    "c": 0.05986,
    "h": 292.8
  },
  "luminance": 0.01246
}

Semantic roles & 50–950 ramp

primary
#201838
secondary
#626E3E
accent
#D058B2
background
#F5F4F6
surface
#E9E7EC
border
#C5C3C7
text
#040307
muted
#79787A

Preview Lab

Preview with #201838

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

Preview Lab → · Contrast checker → · Palette generator →

#201838 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva