#2A162E#2A162E

#2A162E is a very dark, muted purple. Relative luminance 0.013; OKLCH L 23.9% C 0.052 H 320.8°. Best body text is #FFFFFF at 16.77:1 contrast (WCAG AA passes).

Color values

HEX#2A162E
RGBrgb(42, 22, 46)
HSLhsl(290, 35%, 13%)
HSVhsv(290, 52%, 18%)
CMYKcmyk(8.7%, 52.2%, 0%, 82%)
CIE-LABlab(11.02, 15.19, -12.00)
CIE-LCHlch(11.02, 19.36, 321.69°)
OKLaboklab(23.91% 0.0404 -0.033)
OKLCHoklch(23.91% 0.052 320.8)
XYZxyz(1.7348, 1.2634, 2.7367)
Luminance0.0126 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A162E #1A2E16
analogous
#1E162E #2A162E #2E1626
triadic
#2A162E #2E2A16 #162E2A
tetradic
#2A162E #2E1E16 #1A2E16 #16262E
square
#2A162E #2E1E16 #1A2E16 #16262E
split-complementary
#2A162E #262E16 #162E1E
monochromatic
#130A15 #130A15 #2A162E #502A57 #763E81

Accessibility & contrast

On white

16.77
#2A162E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.25
#2A162E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A162E
16.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A162E#FFFFFF#000000##FFFFFF
##2A162E1.0016.771.2516.77
#FFFFFF16.771.0021.001.00
#0000001.2521.001.0021.00
##FFFFFF16.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#131C2F
Deuteranopia (green-blind)
#181E2D
Tritanopia (blue-blind)
#2A191F
Achromatopsia (no color)
#1E1E1E

Design tokens & code

CSS
--color: #2a162e;
/* rgb */ color: rgb(42, 22, 46);
/* oklch */ color: oklch(23.9% 0.052 320.8);
Tailwind
colors: {
  custom: {
    50: '#645366',
    500: '#2a162e',
    950: '#000000',
  },
}
SCSS
$custom: #2a162e;
$custom-light: #645366;
$custom-dark: #000000;
JSON
{
  "hex": "#2a162e",
  "rgb": {
    "r": 42,
    "g": 22,
    "b": 46
  },
  "hsl": {
    "h": 290,
    "s": 35.294,
    "l": 13.333
  },
  "oklch": {
    "l": 0.2391,
    "c": 0.05221,
    "h": 320.8
  },
  "luminance": 0.01263
}

Semantic roles & 50–950 ramp

primary
#2A162E
secondary
#43643C
accent
#CB5C6F
background
#F6F4F6
surface
#EBE7EB
border
#C6C3C6
text
#050206
muted
#7A787A

Preview Lab

Preview with #2A162E

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

Preview Lab → · Contrast checker → · Palette generator →

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