#2A062D#2A062D

#2A062D is a very dark, moderate purple. Relative luminance 0.008; OKLCH L 21.2% C 0.082 H 324.7°. Best body text is #FFFFFF at 18.07:1 contrast (WCAG AA passes).

Color values

HEX#2A062D
RGBrgb(42, 6, 45)
HSLhsl(295, 76%, 10%)
HSVhsv(295, 87%, 18%)
CMYKcmyk(6.7%, 86.7%, 0%, 82.4%)
CIE-LABlab(7.33, 24.66, -17.07)
CIE-LCHlch(7.33, 29.99, 325.31°)
OKLaboklab(21.18% 0.0672 -0.0476)
OKLCHoklch(21.18% 0.082 324.7)
XYZxyz(1.4936, 0.8120, 2.5602)
Luminance0.0081 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A062D #092D06
analogous
#17062D #2A062D #2D061C
triadic
#2A062D #2D2A06 #062D2A
tetradic
#2A062D #2D1706 #092D06 #061C2D
square
#2A062D #2D1706 #092D06 #061C2D
split-complementary
#2A062D #1C2D06 #062D17
monochromatic
#19041B #19041B #2A062D #5C0D63 #8F1499

Accessibility & contrast

On white

18.07
#2A062D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.16
#2A062D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A062D
18.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A062D#FFFFFF#000000##FFFFFF
##2A062D1.0018.071.1618.07
#FFFFFF18.071.0021.001.00
#0000001.1621.001.0021.00
##FFFFFF18.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00132E
Deuteranopia (green-blind)
#0D182C
Tritanopia (blue-blind)
#2B0C18
Achromatopsia (no color)
#161616

Design tokens & code

CSS
--color: #2a062d;
/* rgb */ color: rgb(42, 6, 45);
/* oklch */ color: oklch(21.2% 0.082 324.7);
Tailwind
colors: {
  custom: {
    50: '#654966',
    500: '#2a062d',
    950: '#000000',
  },
}
SCSS
$custom: #2a062d;
$custom-light: #654966;
$custom-dark: #000000;
JSON
{
  "hex": "#2a062d",
  "rgb": {
    "r": 42,
    "g": 6,
    "b": 45
  },
  "hsl": {
    "h": 295.385,
    "s": 76.471,
    "l": 10
  },
  "oklch": {
    "l": 0.21178,
    "c": 0.08232,
    "h": 324.7
  },
  "luminance": 0.00812
}

Semantic roles & 50–950 ramp

primary
#2A062D
secondary
#276E21
accent
#F33543
background
#F6F4F6
surface
#EBE7EB
border
#C6C3C6
text
#060106
muted
#7A777A

Preview Lab

Preview with #2A062D

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

Preview Lab → · Contrast checker → · Palette generator →

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