#2A032F#2A032F

#2A032F is a very dark, moderate purple. Relative luminance 0.008; OKLCH L 20.9% C 0.090 H 323.0°. Best body text is #FFFFFF at 18.22:1 contrast (WCAG AA passes).

Color values

HEX#2A032F
RGBrgb(42, 3, 47)
HSLhsl(293, 88%, 10%)
HSVhsv(293, 94%, 18%)
CMYKcmyk(10.6%, 93.6%, 0%, 81.6%)
CIE-LABlab(6.89, 26.77, -19.26)
CIE-LCHlch(6.89, 32.98, 324.26°)
OKLaboklab(20.89% 0.072 -0.0542)
OKLCHoklch(20.89% 0.09 323)
XYZxyz(1.5004, 0.7627, 2.7570)
Luminance0.0076 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A032F #082F03
analogous
#14032F #2A032F #2F031E
triadic
#2A032F #2F2A03 #032F2A
tetradic
#2A032F #2F1403 #082F03 #031E2F
square
#2A032F #2F1403 #082F03 #031E2F
split-complementary
#2A032F #1E2F03 #032F14
monochromatic
#1A021D #1A021D #2A032F #5D0769 #910AA2

Accessibility & contrast

On white

18.22
#2A032F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A032F
18.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A032F#FFFFFF#000000##FFFFFF
##2A032F1.0018.221.1518.22
#FFFFFF18.221.0021.001.00
#0000001.1521.001.0021.00
##FFFFFF18.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001230
Deuteranopia (green-blind)
#09172E
Tritanopia (blue-blind)
#2B0B18
Achromatopsia (no color)
#151515

Design tokens & code

CSS
--color: #2a032f;
/* rgb */ color: rgb(42, 3, 47);
/* oklch */ color: oklch(20.9% 0.090 323.0);
Tailwind
colors: {
  custom: {
    50: '#664868',
    500: '#2a032f',
    950: '#000000',
  },
}
SCSS
$custom: #2a032f;
$custom-light: #664868;
$custom-dark: #000000;
JSON
{
  "hex": "#2a032f",
  "rgb": {
    "r": 42,
    "g": 3,
    "b": 47
  },
  "hsl": {
    "h": 293.182,
    "s": 88,
    "l": 9.804
  },
  "oklch": {
    "l": 0.20885,
    "c": 0.09009,
    "h": 323
  },
  "luminance": 0.00763
}

Semantic roles & 50–950 ramp

primary
#2A032F
secondary
#25731B
accent
#FE2A42
background
#F6F4F6
surface
#EBE6EB
border
#C6C2C6
text
#060006
muted
#7A777A

Preview Lab

Preview with #2A032F

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

Preview Lab → · Contrast checker → · Palette generator →

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