#2A202C#2A202C

#2A202C is a dark, muted purple. Relative luminance 0.017; OKLCH L 26.0% C 0.026 H 320.7°. Best body text is #FFFFFF at 15.66:1 contrast (WCAG AA passes).

Color values

HEX#2A202C
RGBrgb(42, 32, 44)
HSLhsl(290, 16%, 15%)
HSVhsv(290, 27%, 17%)
CMYKcmyk(4.5%, 27.3%, 0%, 82.7%)
CIE-LABlab(13.87, 7.57, -6.17)
CIE-LCHlch(13.87, 9.76, 320.80°)
OKLaboklab(26.04% 0.0203 -0.0167)
OKLCHoklch(26.04% 0.026 320.7)
XYZxyz(1.9259, 1.7072, 2.6104)
Luminance0.0171 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A202C #222C20
analogous
#24202C #2A202C #2C2028
triadic
#2A202C #2C2A20 #202C2A
tetradic
#2A202C #2C2420 #222C20 #20282C
square
#2A202C #2C2420 #222C20 #20282C
split-complementary
#2A202C #282C20 #202C24
monochromatic
#110D12 #110D12 #2A202C #4C3A4F #6E5473

Accessibility & contrast

On white

15.66
#2A202C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.34
#2A202C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A202C
15.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A202C#FFFFFF#000000##FFFFFF
##2A202C1.0015.661.3415.66
#FFFFFF15.661.0021.001.00
#0000001.3421.001.0021.00
##FFFFFF15.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1F232D
Deuteranopia (green-blind)
#21242C
Tritanopia (blue-blind)
#2A2124
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #2a202c;
/* rgb */ color: rgb(42, 32, 44);
/* oklch */ color: oklch(26.0% 0.026 320.7);
Tailwind
colors: {
  custom: {
    50: '#635b65',
    500: '#2a202c',
    950: '#000000',
  },
}
SCSS
$custom: #2a202c;
$custom-light: #635b65;
$custom-dark: #000000;
JSON
{
  "hex": "#2a202c",
  "rgb": {
    "r": 42,
    "g": 32,
    "b": 44
  },
  "hsl": {
    "h": 290,
    "s": 15.789,
    "l": 14.902
  },
  "oklch": {
    "l": 0.26043,
    "c": 0.02629,
    "h": 320.7
  },
  "luminance": 0.01707
}

Semantic roles & 50–950 ramp

primary
#2A202C
secondary
#4E5D4B
accent
#B96F7B
background
#F5F5F6
surface
#EAE9EB
border
#C6C5C6
text
#050405
muted
#79797A

Preview Lab

Preview with #2A202C

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

Preview Lab → · Contrast checker → · Palette generator →

#2A202C Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva