#2A0937#2A0937

#2A0937 is a very dark, moderate purple. Relative luminance 0.010; OKLCH L 22.4% C 0.088 H 314.6°. Best body text is #FFFFFF at 17.61:1 contrast (WCAG AA passes).

Color values

HEX#2A0937
RGBrgb(42, 9, 55)
HSLhsl(283, 72%, 13%)
HSVhsv(283, 84%, 22%)
CMYKcmyk(23.6%, 83.6%, 0%, 78.4%)
CIE-LABlab(8.68, 25.43, -22.27)
CIE-LCHlch(8.68, 33.80, 318.80°)
OKLaboklab(22.4% 0.0618 -0.0628)
OKLCHoklch(22.4% 0.088 314.6)
XYZxyz(1.7420, 0.9635, 3.7079)
Luminance0.0096 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A0937 #163709
analogous
#130937 #2A0937 #37092D
triadic
#2A0937 #372A09 #09372A
tetradic
#2A0937 #371309 #163709 #092D37
square
#2A0937 #371309 #163709 #092D37
split-complementary
#2A0937 #2D3709 #093713
monochromatic
#14041A #14041A #2A0937 #52126C #7A1AA0

Accessibility & contrast

On white

17.61
#2A0937 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A0937
17.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A0937#FFFFFF#000000##FFFFFF
##2A09371.0017.611.1917.61
#FFFFFF17.611.0021.001.00
#0000001.1921.001.0021.00
##FFFFFF17.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001738
Deuteranopia (green-blind)
#071A36
Tritanopia (blue-blind)
#29131F
Achromatopsia (no color)
#191919

Design tokens & code

CSS
--color: #2a0937;
/* rgb */ color: rgb(42, 9, 55);
/* oklch */ color: oklch(22.4% 0.088 314.6);
Tailwind
colors: {
  custom: {
    50: '#664c6e',
    500: '#2a0937',
    950: '#000000',
  },
}
SCSS
$custom: #2a0937;
$custom-light: #664c6e;
$custom-dark: #000000;
JSON
{
  "hex": "#2a0937",
  "rgb": {
    "r": 42,
    "g": 9,
    "b": 55
  },
  "hsl": {
    "h": 283.043,
    "s": 71.875,
    "l": 12.549
  },
  "oklch": {
    "l": 0.22403,
    "c": 0.0881,
    "h": 314.6
  },
  "luminance": 0.00963
}

Semantic roles & 50–950 ramp

primary
#2A0937
secondary
#3D7527
accent
#EF396C
background
#F6F4F6
surface
#EBE7EC
border
#C6C3C7
text
#060107
muted
#7A777A

Preview Lab

Preview with #2A0937

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

Preview Lab → · Contrast checker → · Palette generator →

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