#2A072E#2A072E

#2A072E is a very dark, moderate purple. Relative luminance 0.008; OKLCH L 21.4% C 0.082 H 323.5°. Best body text is #FFFFFF at 17.98:1 contrast (WCAG AA passes).

Color values

HEX#2A072E
RGBrgb(42, 7, 46)
HSLhsl(294, 74%, 10%)
HSVhsv(294, 85%, 18%)
CMYKcmyk(8.7%, 84.8%, 0%, 82%)
CIE-LABlab(7.60, 24.35, -17.39)
CIE-LCHlch(7.60, 29.92, 324.47°)
OKLaboklab(21.4% 0.0655 -0.0485)
OKLCHoklch(21.4% 0.082 323.5)
XYZxyz(1.5239, 0.8415, 2.6664)
Luminance0.0084 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A072E #0B2E07
analogous
#16072E #2A072E #2E071E
triadic
#2A072E #2E2A07 #072E2A
tetradic
#2A072E #2E1607 #0B2E07 #071E2E
square
#2A072E #2E1607 #0B2E07 #071E2E
split-complementary
#2A072E #1E2E07 #072E16
monochromatic
#18041B #18041B #2A072E #5A0F63 #8B1798

Accessibility & contrast

On white

17.98
#2A072E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.17
#2A072E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A072E
17.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A072E#FFFFFF#000000##FFFFFF
##2A072E1.0017.981.1717.98
#FFFFFF17.981.0021.001.00
#0000001.1721.001.0021.00
##FFFFFF17.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#01142F
Deuteranopia (green-blind)
#0D182D
Tritanopia (blue-blind)
#2B0D19
Achromatopsia (no color)
#171717

Design tokens & code

CSS
--color: #2a072e;
/* rgb */ color: rgb(42, 7, 46);
/* oklch */ color: oklch(21.4% 0.082 323.5);
Tailwind
colors: {
  custom: {
    50: '#654a67',
    500: '#2a072e',
    950: '#000000',
  },
}
SCSS
$custom: #2a072e;
$custom-light: #654a67;
$custom-dark: #000000;
JSON
{
  "hex": "#2a072e",
  "rgb": {
    "r": 42,
    "g": 7,
    "b": 46
  },
  "hsl": {
    "h": 293.846,
    "s": 73.585,
    "l": 10.392
  },
  "oklch": {
    "l": 0.21401,
    "c": 0.08151,
    "h": 323.5
  },
  "luminance": 0.00841
}

Semantic roles & 50–950 ramp

primary
#2A072E
secondary
#2B6E23
accent
#F0384A
background
#F6F4F6
surface
#EBE7EB
border
#C6C3C6
text
#060106
muted
#7A777A

Preview Lab

Preview with #2A072E

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

Preview Lab → · Contrast checker → · Palette generator →

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