#20182A#20182A

#20182A is a very dark, muted violet. Relative luminance 0.011; OKLCH L 22.8% C 0.036 H 304.1°. Best body text is #FFFFFF at 17.13:1 contrast (WCAG AA passes).

Color values

HEX#20182A
RGBrgb(32, 24, 42)
HSLhsl(267, 27%, 13%)
HSVhsv(267, 43%, 16%)
CMYKcmyk(23.8%, 42.9%, 0%, 83.5%)
CIE-LABlab(10.01, 8.67, -10.73)
CIE-LCHlch(10.01, 13.80, 308.94°)
OKLaboklab(22.77% 0.0201 -0.0297)
OKLCHoklch(22.77% 0.036 304.1)
XYZxyz(1.3401, 1.1275, 2.3371)
Luminance0.0113 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20182A #222A18
analogous
#18192A #20182A #29182A
triadic
#20182A #2A2018 #182A20
tetradic
#20182A #2A1819 #222A18 #182A29
square
#20182A #2A1819 #222A18 #182A29
split-complementary
#20182A #2A2918 #192A18
monochromatic
#0F0B13 #0F0B13 #20182A #3E2E51 #5B4578

Accessibility & contrast

On white

17.13
#20182A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.23
#20182A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #20182A
17.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##20182A#FFFFFF#000000##FFFFFF
##20182A1.0017.131.2317.13
#FFFFFF17.131.0021.001.00
#0000001.2321.001.0021.00
##FFFFFF17.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#141B2B
Deuteranopia (green-blind)
#161C29
Tritanopia (blue-blind)
#1E1B1F
Achromatopsia (no color)
#1B1B1B

Design tokens & code

CSS
--color: #20182a;
/* rgb */ color: rgb(32, 24, 42);
/* oklch */ color: oklch(22.8% 0.036 304.1);
Tailwind
colors: {
  custom: {
    50: '#5b5463',
    500: '#20182a',
    950: '#000000',
  },
}
SCSS
$custom: #20182a;
$custom-light: #5b5463;
$custom-dark: #000000;
JSON
{
  "hex": "#20182a",
  "rgb": {
    "r": 32,
    "g": 24,
    "b": 42
  },
  "hsl": {
    "h": 266.667,
    "s": 27.273,
    "l": 12.941
  },
  "oklch": {
    "l": 0.22766,
    "c": 0.03582,
    "h": 304.1
  },
  "luminance": 0.01128
}

Semantic roles & 50–950 ramp

primary
#20182A
secondary
#515E40
accent
#C46499
background
#F5F4F5
surface
#E9E7EA
border
#C5C3C6
text
#040205
muted
#797879

Preview Lab

Preview with #20182A

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

Preview Lab → · Contrast checker → · Palette generator →

#20182A Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva