#20142A#20142A

#20142A is a very dark, muted violet. Relative luminance 0.010; OKLCH L 21.8% C 0.045 H 308.2°. Best body text is #FFFFFF at 17.57:1 contrast (WCAG AA passes).

Color values

HEX#20142A
RGBrgb(32, 20, 42)
HSLhsl(273, 35%, 12%)
HSVhsv(273, 52%, 16%)
CMYKcmyk(23.8%, 52.4%, 0%, 83.5%)
CIE-LABlab(8.78, 11.65, -12.66)
CIE-LCHlch(8.78, 17.20, 312.62°)
OKLaboklab(21.83% 0.0277 -0.0352)
OKLCHoklch(21.83% 0.045 308.2)
XYZxyz(1.2637, 0.9746, 2.3116)
Luminance0.0097 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20142A #1E2A14
analogous
#15142A #20142A #2A1429
triadic
#20142A #2A2014 #142A20
tetradic
#20142A #2A1514 #1E2A14 #14292A
square
#20142A #2A1514 #1E2A14 #14292A
split-complementary
#20142A #292A14 #142A15
monochromatic
#100A15 #100A15 #20142A #402853 #5F3B7D

Accessibility & contrast

On white

17.57
#20142A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.20
#20142A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #20142A
17.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##20142A#FFFFFF#000000##FFFFFF
##20142A1.0017.571.2017.57
#FFFFFF17.571.0021.001.00
#0000001.2021.001.0021.00
##FFFFFF17.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0F192B
Deuteranopia (green-blind)
#121929
Tritanopia (blue-blind)
#1F171C
Achromatopsia (no color)
#191919

Design tokens & code

CSS
--color: #20142a;
/* rgb */ color: rgb(32, 20, 42);
/* oklch */ color: oklch(21.8% 0.045 308.2);
Tailwind
colors: {
  custom: {
    50: '#5c5163',
    500: '#20142a',
    950: '#000000',
  },
}
SCSS
$custom: #20142a;
$custom-light: #5c5163;
$custom-dark: #000000;
JSON
{
  "hex": "#20142a",
  "rgb": {
    "r": 32,
    "g": 20,
    "b": 42
  },
  "hsl": {
    "h": 272.727,
    "s": 35.484,
    "l": 12.157
  },
  "oklch": {
    "l": 0.21832,
    "c": 0.04476,
    "h": 308.2
  },
  "luminance": 0.00975
}

Semantic roles & 50–950 ramp

primary
#20142A
secondary
#4B603A
accent
#CC5C8F
background
#F5F4F5
surface
#E9E7EA
border
#C5C3C6
text
#040205
muted
#797879

Preview Lab

Preview with #20142A

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

Preview Lab → · Contrast checker → · Palette generator →

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