#2A0739#2A0739

#2A0739 is a very dark, moderate purple. Relative luminance 0.009; OKLCH L 22.3% C 0.093 H 313.3°. Best body text is #FFFFFF at 17.68:1 contrast (WCAG AA passes).

Color values

HEX#2A0739
RGBrgb(42, 7, 57)
HSLhsl(282, 78%, 13%)
HSVhsv(282, 88%, 22%)
CMYKcmyk(26.3%, 87.7%, 0%, 77.6%)
CIE-LABlab(8.48, 27.00, -24.05)
CIE-LCHlch(8.48, 36.16, 318.31°)
OKLaboklab(22.31% 0.0641 -0.068)
OKLCHoklch(22.31% 0.093 313.3)
XYZxyz(1.7692, 0.9397, 3.9583)
Luminance0.0094 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A0739 #163907
analogous
#110739 #2A0739 #39072F
triadic
#2A0739 #392A07 #07392A
tetradic
#2A0739 #391107 #163907 #072F39
square
#2A0739 #391107 #163907 #072F39
split-complementary
#2A0739 #2F3907 #073911
monochromatic
#14031B #14031B #2A0739 #520E70 #7A14A6

Accessibility & contrast

On white

17.68
#2A0739 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.19
#2A0739 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A0739
17.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A0739#FFFFFF#000000##FFFFFF
##2A07391.0017.681.1917.68
#FFFFFF17.681.0021.001.00
#0000001.1921.001.0021.00
##FFFFFF17.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00173A
Deuteranopia (green-blind)
#031938
Tritanopia (blue-blind)
#28121F
Achromatopsia (no color)
#181818

Design tokens & code

CSS
--color: #2a0739;
/* rgb */ color: rgb(42, 7, 57);
/* oklch */ color: oklch(22.3% 0.093 313.3);
Tailwind
colors: {
  custom: {
    50: '#664b70',
    500: '#2a0739',
    950: '#000000',
  },
}
SCSS
$custom: #2a0739;
$custom-light: #664b70;
$custom-dark: #000000;
JSON
{
  "hex": "#2a0739",
  "rgb": {
    "r": 42,
    "g": 7,
    "b": 57
  },
  "hsl": {
    "h": 282,
    "s": 78.125,
    "l": 12.549
  },
  "oklch": {
    "l": 0.22311,
    "c": 0.09346,
    "h": 313.3
  },
  "luminance": 0.0094
}

Semantic roles & 50–950 ramp

primary
#2A0739
secondary
#3D7923
accent
#F5336D
background
#F6F4F6
surface
#EBE7EC
border
#C6C3C7
text
#060107
muted
#7A777A

Preview Lab

Preview with #2A0739

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

Preview Lab → · Contrast checker → · Palette generator →

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