#2A0226#2A0226

#2A0226 is a very dark, moderate purple. Relative luminance 0.007; OKLCH L 20.0% C 0.084 H 332.6°. Best body text is #FFFFFF at 18.50:1 contrast (WCAG AA passes).

Color values

HEX#2A0226
RGBrgb(42, 2, 38)
HSLhsl(306, 91%, 9%)
HSVhsv(306, 95%, 16%)
CMYKcmyk(0%, 95.2%, 9.5%, 83.5%)
CIE-LABlab(6.10, 25.10, -13.71)
CIE-LCHlch(6.10, 28.60, 331.36°)
OKLaboklab(20.03% 0.0745 -0.0386)
OKLCHoklch(20.03% 0.084 332.6)
XYZxyz(1.3264, 0.6757, 1.8939)
Luminance0.0068 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A0226 #022A06
analogous
#1A022A #2A0226 #2A0212
triadic
#2A0226 #262A02 #02262A
tetradic
#2A0226 #2A1A02 #022A06 #02122A
square
#2A0226 #2A1A02 #022A06 #02122A
split-complementary
#2A0226 #122A02 #022A1A
monochromatic
#1D011A #1D011A #2A0226 #64055B #9F0890

Accessibility & contrast

On white

18.50
#2A0226 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.14
#2A0226 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A0226
18.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A0226#FFFFFF#000000##FFFFFF
##2A02261.0018.501.1418.50
#FFFFFF18.501.0021.001.00
#0000001.1421.001.0021.00
##FFFFFF18.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#011027
Deuteranopia (green-blind)
#0F1625
Tritanopia (blue-blind)
#2C0513
Achromatopsia (no color)
#141414

Design tokens & code

CSS
--color: #2a0226;
/* rgb */ color: rgb(42, 2, 38);
/* oklch */ color: oklch(20.0% 0.084 332.6);
Tailwind
colors: {
  custom: {
    50: '#654760',
    500: '#2a0226',
    950: '#000000',
  },
}
SCSS
$custom: #2a0226;
$custom-light: #654760;
$custom-dark: #000000;
JSON
{
  "hex": "#2a0226",
  "rgb": {
    "r": 42,
    "g": 2,
    "b": 38
  },
  "hsl": {
    "h": 306,
    "s": 90.909,
    "l": 8.627
  },
  "oklch": {
    "l": 0.20028,
    "c": 0.08392,
    "h": 332.6
  },
  "luminance": 0.00676
}

Semantic roles & 50–950 ramp

primary
#2A0226
secondary
#196F21
accent
#FF3E29
background
#F6F4F5
surface
#EBE6E9
border
#C6C2C5
text
#060005
muted
#7A7779

Preview Lab

Preview with #2A0226

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

Preview Lab → · Contrast checker → · Palette generator →

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