#20182F#20182F

#20182F is a very dark, muted violet. Relative luminance 0.012; OKLCH L 23.1% C 0.044 H 298.9°. Best body text is #FFFFFF at 17.03:1 contrast (WCAG AA passes).

Color values

HEX#20182F
RGBrgb(32, 24, 47)
HSLhsl(261, 32%, 14%)
HSVhsv(261, 49%, 18%)
CMYKcmyk(31.9%, 48.9%, 0%, 81.6%)
CIE-LABlab(10.30, 10.22, -13.95)
CIE-LCHlch(10.30, 17.30, 306.22°)
OKLaboklab(23.08% 0.0215 -0.0389)
OKLCHoklch(23.08% 0.044 298.9)
XYZxyz(1.4353, 1.1656, 2.8381)
Luminance0.0117 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20182F #272F18
analogous
#181C2F #20182F #2C182F
triadic
#20182F #2F2018 #182F20
tetradic
#20182F #2F181C #272F18 #182F2C
square
#20182F #2F181C #272F18 #182F2C
split-complementary
#20182F #2F2C18 #1C2F18
monochromatic
#0E0A14 #0E0A14 #20182F #3C2D58 #574180

Accessibility & contrast

On white

17.03
#20182F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #20182F
17.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##20182F#FFFFFF#000000##FFFFFF
##20182F1.0017.031.2317.03
#FFFFFF17.031.0021.001.00
#0000001.2321.001.0021.00
##FFFFFF17.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#121C30
Deuteranopia (green-blind)
#131C2E
Tritanopia (blue-blind)
#1D1C21
Achromatopsia (no color)
#1C1C1C

Design tokens & code

CSS
--color: #20182f;
/* rgb */ color: rgb(32, 24, 47);
/* oklch */ color: oklch(23.1% 0.044 298.9);
Tailwind
colors: {
  custom: {
    50: '#5c5467',
    500: '#20182f',
    950: '#000000',
  },
}
SCSS
$custom: #20182f;
$custom-light: #5c5467;
$custom-dark: #000000;
JSON
{
  "hex": "#20182f",
  "rgb": {
    "r": 32,
    "g": 24,
    "b": 47
  },
  "hsl": {
    "h": 260.87,
    "s": 32.394,
    "l": 13.922
  },
  "oklch": {
    "l": 0.23081,
    "c": 0.04447,
    "h": 298.9
  },
  "luminance": 0.01166
}

Semantic roles & 50–950 ramp

primary
#20182F
secondary
#57643F
accent
#C95FA4
background
#F5F4F6
surface
#E9E7EB
border
#C5C3C6
text
#040206
muted
#79787A

Preview Lab

Preview with #20182F

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

Preview Lab → · Contrast checker → · Palette generator →

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