#2A032C#2A032C

#2A032C is a very dark, moderate purple. Relative luminance 0.007; OKLCH L 20.6% C 0.087 H 326.0°. Best body text is #FFFFFF at 18.30:1 contrast (WCAG AA passes).

Color values

HEX#2A032C
RGBrgb(42, 3, 44)
HSLhsl(297, 87%, 9%)
HSVhsv(297, 93%, 17%)
CMYKcmyk(4.5%, 93.2%, 0%, 82.7%)
CIE-LABlab(6.68, 26.03, -17.36)
CIE-LCHlch(6.68, 31.28, 326.30°)
OKLaboklab(20.64% 0.0723 -0.0487)
OKLCHoklch(20.64% 0.087 326)
XYZxyz(1.4420, 0.7393, 2.4491)
Luminance0.0074 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A032C #052C03
analogous
#16032C #2A032C #2C031A
triadic
#2A032C #2C2A03 #032C2A
tetradic
#2A032C #2C1603 #052C03 #031A2C
square
#2A032C #2C1603 #052C03 #031A2C
split-complementary
#2A032C #1A2C03 #032C16
monochromatic
#1B021D #1B021D #2A032C #610765 #970B9F

Accessibility & contrast

On white

18.30
#2A032C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.15
#2A032C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A032C
18.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A032C#FFFFFF#000000##FFFFFF
##2A032C1.0018.301.1518.30
#FFFFFF18.301.0021.001.00
#0000001.1521.001.0021.00
##FFFFFF18.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00122D
Deuteranopia (green-blind)
#0C162B
Tritanopia (blue-blind)
#2B0917
Achromatopsia (no color)
#151515

Design tokens & code

CSS
--color: #2a032c;
/* rgb */ color: rgb(42, 3, 44);
/* oklch */ color: oklch(20.6% 0.087 326.0);
Tailwind
colors: {
  custom: {
    50: '#664865',
    500: '#2a032c',
    950: '#000000',
  },
}
SCSS
$custom: #2a032c;
$custom-light: #664865;
$custom-dark: #000000;
JSON
{
  "hex": "#2a032c",
  "rgb": {
    "r": 42,
    "g": 3,
    "b": 44
  },
  "hsl": {
    "h": 297.073,
    "s": 87.234,
    "l": 9.216
  },
  "oklch": {
    "l": 0.20643,
    "c": 0.08722,
    "h": 326
  },
  "luminance": 0.00739
}

Semantic roles & 50–950 ramp

primary
#2A032C
secondary
#1F701B
accent
#FD2A35
background
#F6F4F6
surface
#EBE6EB
border
#C6C2C6
text
#060005
muted
#7A777A

Preview Lab

Preview with #2A032C

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

Preview Lab → · Contrast checker → · Palette generator →

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