#2A112E#2A112E

#2A112E is a very dark, moderate purple. Relative luminance 0.011; OKLCH L 22.9% C 0.063 H 321.9°. Best body text is #FFFFFF at 17.24:1 contrast (WCAG AA passes).

Color values

HEX#2A112E
RGBrgb(42, 17, 46)
HSLhsl(292, 46%, 12%)
HSVhsv(292, 63%, 18%)
CMYKcmyk(8.7%, 63%, 0%, 82%)
CIE-LABlab(9.72, 18.55, -14.03)
CIE-LCHlch(9.72, 23.25, 322.90°)
OKLaboklab(22.95% 0.0496 -0.0388)
OKLCHoklch(22.95% 0.063 321.9)
XYZxyz(1.6484, 1.0905, 2.7079)
Luminance0.0109 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A112E #152E11
analogous
#1C112E #2A112E #2E1124
triadic
#2A112E #2E2A11 #112E2A
tetradic
#2A112E #2E1C11 #152E11 #11242E
square
#2A112E #2E1C11 #152E11 #11242E
split-complementary
#2A112E #242E11 #112E1C
monochromatic
#140816 #140816 #2A112E #53225B #7C3287

Accessibility & contrast

On white

17.24
#2A112E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.22
#2A112E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A112E
17.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A112E#FFFFFF#000000##FFFFFF
##2A112E1.0017.241.2217.24
#FFFFFF17.241.0021.001.00
#0000001.2221.001.0021.00
##FFFFFF17.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0C192F
Deuteranopia (green-blind)
#141C2D
Tritanopia (blue-blind)
#2B151D
Achromatopsia (no color)
#1B1B1B

Design tokens & code

CSS
--color: #2a112e;
/* rgb */ color: rgb(42, 17, 46);
/* oklch */ color: oklch(22.9% 0.063 321.9);
Tailwind
colors: {
  custom: {
    50: '#645067',
    500: '#2a112e',
    950: '#000000',
  },
}
SCSS
$custom: #2a112e;
$custom-light: #645067;
$custom-dark: #000000;
JSON
{
  "hex": "#2a112e",
  "rgb": {
    "r": 42,
    "g": 17,
    "b": 46
  },
  "hsl": {
    "h": 291.724,
    "s": 46.032,
    "l": 12.353
  },
  "oklch": {
    "l": 0.22949,
    "c": 0.06295,
    "h": 321.9
  },
  "luminance": 0.0109
}

Semantic roles & 50–950 ramp

primary
#2A112E
secondary
#3B6634
accent
#D65264
background
#F6F4F6
surface
#EBE7EB
border
#C6C3C6
text
#050206
muted
#7A787A

Preview Lab

Preview with #2A112E

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

Preview Lab → · Contrast checker → · Palette generator →

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