#2A042F#2A042F

#2A042F is a very dark, moderate purple. Relative luminance 0.008; OKLCH L 21.0% C 0.088 H 322.9°. Best body text is #FFFFFF at 18.15:1 contrast (WCAG AA passes).

Color values

HEX#2A042F
RGBrgb(42, 4, 47)
HSLhsl(293, 84%, 10%)
HSVhsv(293, 91%, 18%)
CMYKcmyk(10.6%, 91.5%, 0%, 81.6%)
CIE-LABlab(7.09, 26.22, -18.95)
CIE-LCHlch(7.09, 32.36, 324.14°)
OKLaboklab(21.04% 0.0703 -0.0532)
OKLCHoklch(21.04% 0.088 322.9)
XYZxyz(1.5113, 0.7844, 2.7606)
Luminance0.0078 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A042F #092F04
analogous
#14042F #2A042F #2F041F
triadic
#2A042F #2F2A04 #042F2A
tetradic
#2A042F #2F1404 #092F04 #041F2F
square
#2A042F #2F1404 #092F04 #041F2F
split-complementary
#2A042F #1F2F04 #042F14
monochromatic
#19021C #19021C #2A042F #5C0967 #8F0EA0

Accessibility & contrast

On white

18.15
#2A042F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.16
#2A042F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A042F
18.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A042F#FFFFFF#000000##FFFFFF
##2A042F1.0018.151.1618.15
#FFFFFF18.151.0021.001.00
#0000001.1621.001.0021.00
##FFFFFF18.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001330
Deuteranopia (green-blind)
#0A172E
Tritanopia (blue-blind)
#2B0C19
Achromatopsia (no color)
#161616

Design tokens & code

CSS
--color: #2a042f;
/* rgb */ color: rgb(42, 4, 47);
/* oklch */ color: oklch(21.0% 0.088 322.9);
Tailwind
colors: {
  custom: {
    50: '#664868',
    500: '#2a042f',
    950: '#000000',
  },
}
SCSS
$custom: #2a042f;
$custom-light: #664868;
$custom-dark: #000000;
JSON
{
  "hex": "#2a042f",
  "rgb": {
    "r": 42,
    "g": 4,
    "b": 47
  },
  "hsl": {
    "h": 293.023,
    "s": 84.314,
    "l": 10
  },
  "oklch": {
    "l": 0.21037,
    "c": 0.08815,
    "h": 322.9
  },
  "luminance": 0.00784
}

Semantic roles & 50–950 ramp

primary
#2A042F
secondary
#27721D
accent
#FB2D45
background
#F6F4F6
surface
#EBE7EB
border
#C6C3C6
text
#060106
muted
#7A777A

Preview Lab

Preview with #2A042F

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

Preview Lab → · Contrast checker → · Palette generator →

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