#2A142E#2A142E

#2A142E is a very dark, muted purple. Relative luminance 0.012; OKLCH L 23.5% C 0.057 H 321.3°. Best body text is #FFFFFF at 16.96:1 contrast (WCAG AA passes).

Color values

HEX#2A142E
RGBrgb(42, 20, 46)
HSLhsl(291, 39%, 13%)
HSVhsv(291, 57%, 18%)
CMYKcmyk(8.7%, 56.5%, 0%, 82%)
CIE-LABlab(10.48, 16.56, -12.84)
CIE-LCHlch(10.48, 20.95, 322.22°)
OKLaboklab(23.51% 0.0442 -0.0354)
OKLCHoklch(23.51% 0.057 321.3)
XYZxyz(1.6981, 1.1899, 2.7245)
Luminance0.0119 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A142E #182E14
analogous
#1D142E #2A142E #2E1425
triadic
#2A142E #2E2A14 #142E2A
tetradic
#2A142E #2E1D14 #182E14 #14252E
square
#2A142E #2E1D14 #182E14 #14252E
split-complementary
#2A142E #252E14 #142E1D
monochromatic
#130915 #130915 #2A142E #512759 #783983

Accessibility & contrast

On white

16.96
#2A142E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.24
#2A142E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A142E
16.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A142E#FFFFFF#000000##FFFFFF
##2A142E1.0016.961.2416.96
#FFFFFF16.961.0021.001.00
#0000001.2421.001.0021.00
##FFFFFF16.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#101B2F
Deuteranopia (green-blind)
#171D2D
Tritanopia (blue-blind)
#2A171E
Achromatopsia (no color)
#1C1C1C

Design tokens & code

CSS
--color: #2a142e;
/* rgb */ color: rgb(42, 20, 46);
/* oklch */ color: oklch(23.5% 0.057 321.3);
Tailwind
colors: {
  custom: {
    50: '#645266',
    500: '#2a142e',
    950: '#000000',
  },
}
SCSS
$custom: #2a142e;
$custom-light: #645266;
$custom-dark: #000000;
JSON
{
  "hex": "#2a142e",
  "rgb": {
    "r": 42,
    "g": 20,
    "b": 46
  },
  "hsl": {
    "h": 290.769,
    "s": 39.394,
    "l": 12.941
  },
  "oklch": {
    "l": 0.23511,
    "c": 0.0566,
    "h": 321.3
  },
  "luminance": 0.0119
}

Semantic roles & 50–950 ramp

primary
#2A142E
secondary
#406539
accent
#CF596B
background
#F6F4F6
surface
#EBE7EB
border
#C6C3C6
text
#050206
muted
#7A787A

Preview Lab

Preview with #2A142E

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

Preview Lab → · Contrast checker → · Palette generator →

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