#2A122F#2A122F

#2A122F is a very dark, moderate purple. Relative luminance 0.011; OKLCH L 23.2% C 0.062 H 320.5°. Best body text is #FFFFFF at 17.13:1 contrast (WCAG AA passes).

Color values

HEX#2A122F
RGBrgb(42, 18, 47)
HSLhsl(290, 45%, 13%)
HSVhsv(290, 62%, 18%)
CMYKcmyk(10.6%, 61.7%, 0%, 81.6%)
CIE-LABlab(10.03, 18.15, -14.28)
CIE-LCHlch(10.03, 23.09, 321.80°)
OKLaboklab(23.2% 0.048 -0.0395)
OKLCHoklch(23.2% 0.062 320.5)
XYZxyz(1.6842, 1.1302, 2.8182)
Luminance0.0113 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A122F #172F12
analogous
#1B122F #2A122F #2F1225
triadic
#2A122F #2F2A12 #122F2A
tetradic
#2A122F #2F1B12 #172F12 #12252F
square
#2A122F #2F1B12 #172F12 #12252F
split-complementary
#2A122F #252F12 #122F1B
monochromatic
#140816 #140816 #2A122F #52235B #793488

Accessibility & contrast

On white

17.13
#2A122F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.23
#2A122F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A122F
17.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A122F#FFFFFF#000000##FFFFFF
##2A122F1.0017.131.2317.13
#FFFFFF17.131.0021.001.00
#0000001.2321.001.0021.00
##FFFFFF17.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0D1A30
Deuteranopia (green-blind)
#141C2E
Tritanopia (blue-blind)
#2A161E
Achromatopsia (no color)
#1C1C1C

Design tokens & code

CSS
--color: #2a122f;
/* rgb */ color: rgb(42, 18, 47);
/* oklch */ color: oklch(23.2% 0.062 320.5);
Tailwind
colors: {
  custom: {
    50: '#645167',
    500: '#2a122f',
    950: '#000000',
  },
}
SCSS
$custom: #2a122f;
$custom-light: #645167;
$custom-dark: #000000;
JSON
{
  "hex": "#2a122f",
  "rgb": {
    "r": 42,
    "g": 18,
    "b": 47
  },
  "hsl": {
    "h": 289.655,
    "s": 44.615,
    "l": 12.745
  },
  "oklch": {
    "l": 0.23197,
    "c": 0.06217,
    "h": 320.5
  },
  "luminance": 0.0113
}

Semantic roles & 50–950 ramp

primary
#2A122F
secondary
#3E6736
accent
#D4536A
background
#F6F4F6
surface
#EBE7EB
border
#C6C3C6
text
#050206
muted
#7A787A

Preview Lab

Preview with #2A122F

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

Preview Lab → · Contrast checker → · Palette generator →

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