#2A0938#2A0938

#2A0938 is a very dark, moderate purple. Relative luminance 0.010; OKLCH L 22.5% C 0.089 H 313.7°. Best body text is #FFFFFF at 17.58:1 contrast (WCAG AA passes).

Color values

HEX#2A0938
RGBrgb(42, 9, 56)
HSLhsl(282, 72%, 13%)
HSVhsv(282, 84%, 22%)
CMYKcmyk(25%, 83.9%, 0%, 78%)
CIE-LABlab(8.77, 25.68, -22.86)
CIE-LCHlch(8.77, 34.38, 318.33°)
OKLaboklab(22.49% 0.0617 -0.0645)
OKLCHoklch(22.49% 0.089 313.7)
XYZxyz(1.7662, 0.9732, 3.8354)
Luminance0.0097 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A0938 #173809
analogous
#130938 #2A0938 #38092E
triadic
#2A0938 #382A09 #09382A
tetradic
#2A0938 #381309 #173809 #092E38
square
#2A0938 #381309 #173809 #092E38
split-complementary
#2A0938 #2E3809 #093813
monochromatic
#14041A #14041A #2A0938 #52116D #791AA1

Accessibility & contrast

On white

17.58
#2A0938 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A0938
17.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A0938#FFFFFF#000000##FFFFFF
##2A09381.0017.581.1917.58
#FFFFFF17.581.0021.001.00
#0000001.1921.001.0021.00
##FFFFFF17.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001739
Deuteranopia (green-blind)
#061A37
Tritanopia (blue-blind)
#29131F
Achromatopsia (no color)
#191919

Design tokens & code

CSS
--color: #2a0938;
/* rgb */ color: rgb(42, 9, 56);
/* oklch */ color: oklch(22.5% 0.089 313.7);
Tailwind
colors: {
  custom: {
    50: '#664c6f',
    500: '#2a0938',
    950: '#000000',
  },
}
SCSS
$custom: #2a0938;
$custom-light: #664c6f;
$custom-dark: #000000;
JSON
{
  "hex": "#2a0938",
  "rgb": {
    "r": 42,
    "g": 9,
    "b": 56
  },
  "hsl": {
    "h": 282.128,
    "s": 72.308,
    "l": 12.745
  },
  "oklch": {
    "l": 0.22488,
    "c": 0.08925,
    "h": 313.7
  },
  "luminance": 0.00973
}

Semantic roles & 50–950 ramp

primary
#2A0938
secondary
#3E7627
accent
#EF396F
background
#F6F4F6
surface
#EBE7EC
border
#C6C3C7
text
#060107
muted
#7A777A

Preview Lab

Preview with #2A0938

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

Preview Lab → · Contrast checker → · Palette generator →

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