#2A0734#2A0734

#2A0734 is a very dark, moderate purple. Relative luminance 0.009; OKLCH L 21.9% C 0.088 H 317.6°. Best body text is #FFFFFF at 17.82:1 contrast (WCAG AA passes).

Color values

HEX#2A0734
RGBrgb(42, 7, 52)
HSLhsl(287, 76%, 12%)
HSVhsv(287, 87%, 20%)
CMYKcmyk(19.2%, 86.5%, 0%, 79.6%)
CIE-LABlab(8.06, 25.78, -21.09)
CIE-LCHlch(8.06, 33.30, 320.72°)
OKLaboklab(21.88% 0.065 -0.0593)
OKLCHoklch(21.88% 0.088 317.6)
XYZxyz(1.6506, 0.8922, 3.3334)
Luminance0.0089 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A0734 #113407
analogous
#140734 #2A0734 #340728
triadic
#2A0734 #342A07 #07342A
tetradic
#2A0734 #341407 #113407 #072834
square
#2A0734 #341407 #113407 #072834
split-complementary
#2A0734 #283407 #073414
monochromatic
#16041B #16041B #2A0734 #560E6A #8116A0

Accessibility & contrast

On white

17.82
#2A0734 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.18
#2A0734 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A0734
17.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A0734#FFFFFF#000000##FFFFFF
##2A07341.0017.821.1817.82
#FFFFFF17.821.0021.001.00
#0000001.1821.001.0021.00
##FFFFFF17.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001535
Deuteranopia (green-blind)
#081933
Tritanopia (blue-blind)
#2A101D
Achromatopsia (no color)
#181818

Design tokens & code

CSS
--color: #2a0734;
/* rgb */ color: rgb(42, 7, 52);
/* oklch */ color: oklch(21.9% 0.088 317.6);
Tailwind
colors: {
  custom: {
    50: '#664a6c',
    500: '#2a0734',
    950: '#000000',
  },
}
SCSS
$custom: #2a0734;
$custom-light: #664a6c;
$custom-dark: #000000;
JSON
{
  "hex": "#2a0734",
  "rgb": {
    "r": 42,
    "g": 7,
    "b": 52
  },
  "hsl": {
    "h": 286.667,
    "s": 76.271,
    "l": 11.569
  },
  "oklch": {
    "l": 0.21881,
    "c": 0.08796,
    "h": 317.6
  },
  "luminance": 0.00892
}

Semantic roles & 50–950 ramp

primary
#2A0734
secondary
#357423
accent
#F3355F
background
#F6F4F6
surface
#EBE7EB
border
#C6C3C6
text
#060107
muted
#7A777A

Preview Lab

Preview with #2A0734

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

Preview Lab → · Contrast checker → · Palette generator →

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