#2A0126#2A0126

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

Color values

HEX#2A0126
RGBrgb(42, 1, 38)
HSLhsl(306, 95%, 8%)
HSVhsv(306, 98%, 16%)
CMYKcmyk(0%, 97.6%, 9.5%, 83.5%)
CIE-LABlab(5.91, 25.62, -14.02)
CIE-LCHlch(5.91, 29.20, 331.32°)
OKLaboklab(19.86% 0.0766 -0.0396)
OKLCHoklch(19.86% 0.086 332.6)
XYZxyz(1.3156, 0.6540, 1.8903)
Luminance0.0065 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A0126 #012A05
analogous
#19012A #2A0126 #2A0111
triadic
#2A0126 #262A01 #01262A
tetradic
#2A0126 #2A1901 #012A05 #01112A
square
#2A0126 #2A1901 #012A05 #01112A
split-complementary
#2A0126 #112A01 #012A19
monochromatic
#1E011B #1E011B #2A0126 #66025C #A20492

Accessibility & contrast

On white

18.57
#2A0126 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.13
#2A0126 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A0126
18.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A0126#FFFFFF#000000##FFFFFF
##2A01261.0018.571.1318.57
#FFFFFF18.571.0021.001.00
#0000001.1321.001.0021.00
##FFFFFF18.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000F27
Deuteranopia (green-blind)
#0E1525
Tritanopia (blue-blind)
#2C0412
Achromatopsia (no color)
#131313

Design tokens & code

CSS
--color: #2a0126;
/* rgb */ color: rgb(42, 1, 38);
/* oklch */ color: oklch(19.9% 0.086 332.6);
Tailwind
colors: {
  custom: {
    50: '#654660',
    500: '#2a0126',
    950: '#000000',
  },
}
SCSS
$custom: #2a0126;
$custom-light: #654660;
$custom-dark: #000000;
JSON
{
  "hex": "#2a0126",
  "rgb": {
    "r": 42,
    "g": 1,
    "b": 38
  },
  "hsl": {
    "h": 305.854,
    "s": 95.349,
    "l": 8.431
  },
  "oklch": {
    "l": 0.1986,
    "c": 0.08622,
    "h": 332.6
  },
  "luminance": 0.00654
}

Semantic roles & 50–950 ramp

primary
#2A0126
secondary
#16701F
accent
#FF3E29
background
#F6F4F5
surface
#EBE6E9
border
#C6C2C5
text
#060005
muted
#7A7779

Preview Lab

Preview with #2A0126

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

Preview Lab → · Contrast checker → · Palette generator →

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