#2A0838#2A0838

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

Color values

HEX#2A0838
RGBrgb(42, 8, 56)
HSLhsl(283, 75%, 13%)
HSVhsv(283, 86%, 22%)
CMYKcmyk(25%, 85.7%, 0%, 78%)
CIE-LABlab(8.58, 26.21, -23.16)
CIE-LCHlch(8.58, 34.98, 318.54°)
OKLaboklab(22.36% 0.063 -0.0654)
OKLCHoklch(22.36% 0.091 313.9)
XYZxyz(1.7554, 0.9515, 3.8318)
Luminance0.0095 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A0838 #163808
analogous
#120838 #2A0838 #38082E
triadic
#2A0838 #382A08 #08382A
tetradic
#2A0838 #381208 #163808 #082E38
square
#2A0838 #381208 #163808 #082E38
split-complementary
#2A0838 #2E3808 #083812
monochromatic
#14041B #14041B #2A0838 #52106E #7A17A3

Accessibility & contrast

On white

17.64
#2A0838 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A0838
17.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A0838#FFFFFF#000000##FFFFFF
##2A08381.0017.641.1917.64
#FFFFFF17.641.0021.001.00
#0000001.1921.001.0021.00
##FFFFFF17.641.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2a0838;
/* rgb */ color: rgb(42, 8, 56);
/* oklch */ color: oklch(22.4% 0.091 313.9);
Tailwind
colors: {
  custom: {
    50: '#664b6f',
    500: '#2a0838',
    950: '#000000',
  },
}
SCSS
$custom: #2a0838;
$custom-light: #664b6f;
$custom-dark: #000000;
JSON
{
  "hex": "#2a0838",
  "rgb": {
    "r": 42,
    "g": 8,
    "b": 56
  },
  "hsl": {
    "h": 282.5,
    "s": 75,
    "l": 12.549
  },
  "oklch": {
    "l": 0.22356,
    "c": 0.09079,
    "h": 313.9
  },
  "luminance": 0.00951
}

Semantic roles & 50–950 ramp

primary
#2A0838
secondary
#3D7725
accent
#F2366D
background
#F6F4F6
surface
#EBE7EC
border
#C6C3C7
text
#060107
muted
#7A777A

Preview Lab

Preview with #2A0838

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

Preview Lab → · Contrast checker → · Palette generator →

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