#2A1034#2A1034

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

Color values

HEX#2A1034
RGBrgb(42, 16, 52)
HSLhsl(283, 53%, 13%)
HSVhsv(283, 69%, 20%)
CMYKcmyk(19.2%, 69.2%, 0%, 79.6%)
CIE-LABlab(9.88, 20.72, -18.17)
CIE-LCHlch(9.88, 27.55, 318.75°)
OKLaboklab(23.19% 0.0519 -0.0508)
OKLCHoklch(23.19% 0.073 315.6)
XYZxyz(1.7599, 1.1108, 3.3698)
Luminance0.0111 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1034 #1A3410
analogous
#181034 #2A1034 #34102C
triadic
#2A1034 #342A10 #10342A
tetradic
#2A1034 #341810 #1A3410 #102C34
square
#2A1034 #341810 #1A3410 #102C34
split-complementary
#2A1034 #2C3410 #103418
monochromatic
#130717 #130717 #2A1034 #501E63 #762D92

Accessibility & contrast

On white

17.18
#2A1034 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A1034
17.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A1034#FFFFFF#000000##FFFFFF
##2A10341.0017.181.2217.18
#FFFFFF17.181.0021.001.00
#0000001.2221.001.0021.00
##FFFFFF17.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#061A35
Deuteranopia (green-blind)
#101C33
Tritanopia (blue-blind)
#291620
Achromatopsia (no color)
#1B1B1B

Design tokens & code

CSS
--color: #2a1034;
/* rgb */ color: rgb(42, 16, 52);
/* oklch */ color: oklch(23.2% 0.073 315.6);
Tailwind
colors: {
  custom: {
    50: '#65506b',
    500: '#2a1034',
    950: '#000000',
  },
}
SCSS
$custom: #2a1034;
$custom-light: #65506b;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1034",
  "rgb": {
    "r": 42,
    "g": 16,
    "b": 52
  },
  "hsl": {
    "h": 283.333,
    "s": 52.941,
    "l": 13.333
  },
  "oklch": {
    "l": 0.23194,
    "c": 0.07261,
    "h": 315.6
  },
  "luminance": 0.01111
}

Semantic roles & 50–950 ramp

primary
#2A1034
secondary
#436E32
accent
#DC4B74
background
#F6F4F6
surface
#EBE7EB
border
#C6C3C6
text
#060206
muted
#7A787A

Preview Lab

Preview with #2A1034

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

Preview Lab → · Contrast checker → · Palette generator →

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