#2A122C#2A122C

#2A122C is a very dark, muted purple. Relative luminance 0.011; OKLCH L 23.0% C 0.058 H 324.4°. Best body text is #FFFFFF at 17.19:1 contrast (WCAG AA passes).

Color values

HEX#2A122C
RGBrgb(42, 18, 44)
HSLhsl(295, 42%, 12%)
HSVhsv(295, 59%, 17%)
CMYKcmyk(4.5%, 59.1%, 0%, 82.7%)
CIE-LABlab(9.85, 17.40, -12.35)
CIE-LCHlch(9.85, 21.34, 324.63°)
OKLaboklab(23% 0.0474 -0.034)
OKLCHoklch(23% 0.058 324.4)
XYZxyz(1.6257, 1.1068, 2.5104)
Luminance0.0111 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A122C #142C12
analogous
#1D122C #2A122C #2C1221
triadic
#2A122C #2C2A12 #122C2A
tetradic
#2A122C #2C1D12 #142C12 #12212C
square
#2A122C #2C1D12 #142C12 #12212C
split-complementary
#2A122C #212C12 #122C1D
monochromatic
#150916 #150916 #2A122C #532457 #7D3683

Accessibility & contrast

On white

17.19
#2A122C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A122C
17.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A122C#FFFFFF#000000##FFFFFF
##2A122C1.0017.191.2217.19
#FFFFFF17.191.0021.001.00
#0000001.2221.001.0021.00
##FFFFFF17.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0F192D
Deuteranopia (green-blind)
#161C2B
Tritanopia (blue-blind)
#2B151C
Achromatopsia (no color)
#1B1B1B

Design tokens & code

CSS
--color: #2a122c;
/* rgb */ color: rgb(42, 18, 44);
/* oklch */ color: oklch(23.0% 0.058 324.4);
Tailwind
colors: {
  custom: {
    50: '#645165',
    500: '#2a122c',
    950: '#000000',
  },
}
SCSS
$custom: #2a122c;
$custom-light: #645165;
$custom-dark: #000000;
JSON
{
  "hex": "#2a122c",
  "rgb": {
    "r": 42,
    "g": 18,
    "b": 44
  },
  "hsl": {
    "h": 295.385,
    "s": 41.935,
    "l": 12.157
  },
  "oklch": {
    "l": 0.23004,
    "c": 0.05834,
    "h": 324.4
  },
  "luminance": 0.01107
}

Semantic roles & 50–950 ramp

primary
#2A122C
secondary
#3A6336
accent
#D25660
background
#F6F4F6
surface
#EBE7EB
border
#C6C3C6
text
#050205
muted
#7A787A

Preview Lab

Preview with #2A122C

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

Preview Lab → · Contrast checker → · Palette generator →

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