#2A112F#2A112F

#2A112F is a very dark, moderate purple. Relative luminance 0.011; OKLCH L 23.0% C 0.064 H 320.7°. Best body text is #FFFFFF at 17.22:1 contrast (WCAG AA passes).

Color values

HEX#2A112F
RGBrgb(42, 17, 47)
HSLhsl(290, 47%, 13%)
HSVhsv(290, 64%, 18%)
CMYKcmyk(10.6%, 63.8%, 0%, 81.6%)
CIE-LABlab(9.79, 18.80, -14.67)
CIE-LCHlch(9.79, 23.84, 322.04°)
OKLaboklab(23.02% 0.0497 -0.0406)
OKLCHoklch(23.02% 0.064 320.7)
XYZxyz(1.6683, 1.0984, 2.8129)
Luminance0.0110 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A112F #162F11
analogous
#1B112F #2A112F #2F1125
triadic
#2A112F #2F2A11 #112F2A
tetradic
#2A112F #2F1B11 #162F11 #11252F
square
#2A112F #2F1B11 #162F11 #11252F
split-complementary
#2A112F #252F11 #112F1B
monochromatic
#140816 #140816 #2A112F #52215C #7A3289

Accessibility & contrast

On white

17.22
#2A112F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A112F
17.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A112F#FFFFFF#000000##FFFFFF
##2A112F1.0017.221.2217.22
#FFFFFF17.221.0021.001.00
#0000001.2221.001.0021.00
##FFFFFF17.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0C1930
Deuteranopia (green-blind)
#141C2E
Tritanopia (blue-blind)
#2A151D
Achromatopsia (no color)
#1B1B1B

Design tokens & code

CSS
--color: #2a112f;
/* rgb */ color: rgb(42, 17, 47);
/* oklch */ color: oklch(23.0% 0.064 320.7);
Tailwind
colors: {
  custom: {
    50: '#645067',
    500: '#2a112f',
    950: '#000000',
  },
}
SCSS
$custom: #2a112f;
$custom-light: #645067;
$custom-dark: #000000;
JSON
{
  "hex": "#2a112f",
  "rgb": {
    "r": 42,
    "g": 17,
    "b": 47
  },
  "hsl": {
    "h": 290,
    "s": 46.875,
    "l": 12.549
  },
  "oklch": {
    "l": 0.23015,
    "c": 0.06422,
    "h": 320.7
  },
  "luminance": 0.01098
}

Semantic roles & 50–950 ramp

primary
#2A112F
secondary
#3D6734
accent
#D75167
background
#F6F4F6
surface
#EBE7EB
border
#C6C3C6
text
#050206
muted
#7A787A

Preview Lab

Preview with #2A112F

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

Preview Lab → · Contrast checker → · Palette generator →

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