#2A082A#2A082A

#2A082A is a very dark, moderate purple. Relative luminance 0.008; OKLCH L 21.3% C 0.075 H 327.8°. Best body text is #FFFFFF at 18.00:1 contrast (WCAG AA passes).

Color values

HEX#2A082A
RGBrgb(42, 8, 42)
HSLhsl(300, 68%, 10%)
HSVhsv(300, 81%, 16%)
CMYKcmyk(0%, 81%, 0%, 83.5%)
CIE-LABlab(7.53, 22.87, -14.51)
CIE-LCHlch(7.53, 27.09, 327.60°)
OKLaboklab(21.25% 0.0639 -0.0402)
OKLCHoklch(21.25% 0.075 327.8)
XYZxyz(1.4596, 0.8332, 2.2740)
Luminance0.0083 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A082A #082A08
analogous
#19082A #2A082A #2A0819
triadic
#2A082A #2A2A08 #082A2A
tetradic
#2A082A #2A1908 #082A08 #08192A
square
#2A082A #2A1908 #082A08 #08192A
split-complementary
#2A082A #192A08 #082A19
monochromatic
#1A051A #1A051A #2A082A #5D125D #911C91

Accessibility & contrast

On white

18.00
#2A082A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A082A
18.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A082A#FFFFFF#000000##FFFFFF
##2A082A1.0018.001.1718.00
#FFFFFF18.001.0021.001.00
#0000001.1721.001.0021.00
##FFFFFF18.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#04142B
Deuteranopia (green-blind)
#101829
Tritanopia (blue-blind)
#2C0D17
Achromatopsia (no color)
#171717

Design tokens & code

CSS
--color: #2a082a;
/* rgb */ color: rgb(42, 8, 42);
/* oklch */ color: oklch(21.3% 0.075 327.8);
Tailwind
colors: {
  custom: {
    50: '#654a63',
    500: '#2a082a',
    950: '#000000',
  },
}
SCSS
$custom: #2a082a;
$custom-light: #654a63;
$custom-dark: #000000;
JSON
{
  "hex": "#2a082a",
  "rgb": {
    "r": 42,
    "g": 8,
    "b": 42
  },
  "hsl": {
    "h": 300,
    "s": 68,
    "l": 9.804
  },
  "oklch": {
    "l": 0.21254,
    "c": 0.07545,
    "h": 327.8
  },
  "luminance": 0.00833
}

Semantic roles & 50–950 ramp

primary
#2A082A
secondary
#256925
accent
#EB3D3D
background
#F6F4F5
surface
#EBE7EA
border
#C6C3C6
text
#060105
muted
#7A7779

Preview Lab

Preview with #2A082A

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

Preview Lab → · Contrast checker → · Palette generator →

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