#2A0727#2A0727

#2A0727 is a very dark, moderate purple. Relative luminance 0.008; OKLCH L 20.9% C 0.074 H 331.5°. Best body text is #FFFFFF at 18.13:1 contrast (WCAG AA passes).

Color values

HEX#2A0727
RGBrgb(42, 7, 39)
HSLhsl(305, 71%, 10%)
HSVhsv(305, 83%, 16%)
CMYKcmyk(0%, 83.3%, 7.1%, 83.5%)
CIE-LABlab(7.14, 22.72, -12.85)
CIE-LCHlch(7.14, 26.10, 330.51°)
OKLaboklab(20.9% 0.0653 -0.0355)
OKLCHoklch(20.9% 0.074 331.5)
XYZxyz(1.3970, 0.7908, 1.9981)
Luminance0.0079 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A0727 #072A0A
analogous
#1C072A #2A0727 #2A0716
triadic
#2A0727 #272A07 #07272A
tetradic
#2A0727 #2A1C07 #072A0A #07162A
square
#2A0727 #2A1C07 #072A0A #07162A
split-complementary
#2A0727 #162A07 #072A1C
monochromatic
#1A0418 #1A0418 #2A0727 #5E1058 #931888

Accessibility & contrast

On white

18.13
#2A0727 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A0727
18.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A0727#FFFFFF#000000##FFFFFF
##2A07271.0018.131.1618.13
#FFFFFF18.131.0021.001.00
#0000001.1621.001.0021.00
##FFFFFF18.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#051328
Deuteranopia (green-blind)
#111826
Tritanopia (blue-blind)
#2C0A15
Achromatopsia (no color)
#161616

Design tokens & code

CSS
--color: #2a0727;
/* rgb */ color: rgb(42, 7, 39);
/* oklch */ color: oklch(20.9% 0.074 331.5);
Tailwind
colors: {
  custom: {
    50: '#654a61',
    500: '#2a0727',
    950: '#000000',
  },
}
SCSS
$custom: #2a0727;
$custom-light: #654a61;
$custom-dark: #000000;
JSON
{
  "hex": "#2a0727",
  "rgb": {
    "r": 42,
    "g": 7,
    "b": 39
  },
  "hsl": {
    "h": 305.143,
    "s": 71.429,
    "l": 9.608
  },
  "oklch": {
    "l": 0.20896,
    "c": 0.07433,
    "h": 331.5
  },
  "luminance": 0.00791
}

Semantic roles & 50–950 ramp

primary
#2A0727
secondary
#236A29
accent
#EE493A
background
#F6F4F5
surface
#EBE7E9
border
#C6C3C5
text
#060105
muted
#7A7779

Preview Lab

Preview with #2A0727

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

Preview Lab → · Contrast checker → · Palette generator →

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