#3A0842#3A0842

#3A0842 is a dark, moderate purple. Relative luminance 0.015; OKLCH L 25.9% C 0.108 H 321.6°. Best body text is #FFFFFF at 16.24:1 contrast (WCAG AA passes).

Color values

HEX#3A0842
RGBrgb(58, 8, 66)
HSLhsl(292, 78%, 15%)
HSVhsv(292, 88%, 26%)
CMYKcmyk(12.1%, 87.9%, 0%, 74.1%)
CIE-LABlab(12.39, 32.31, -24.01)
CIE-LCHlch(12.39, 40.25, 323.38°)
OKLaboklab(25.91% 0.085 -0.0673)
OKLCHoklch(25.91% 0.108 321.6)
XYZxyz(2.8150, 1.4667, 5.2880)
Luminance0.0147 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A0842 #104208
analogous
#1D0842 #3A0842 #42082D
triadic
#3A0842 #423A08 #08423A
tetradic
#3A0842 #421D08 #104208 #082D42
square
#3A0842 #421D08 #104208 #082D42
split-complementary
#3A0842 #2D4208 #08421D
monochromatic
#18031B #18031B #3A0842 #6A0F79 #9A15AF

Accessibility & contrast

On white

16.24
#3A0842 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.29
#3A0842 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A0842
16.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A0842#FFFFFF#000000##FFFFFF
##3A08421.0016.241.2916.24
#FFFFFF16.241.0021.001.00
#0000001.2921.001.0021.00
##FFFFFF16.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001D44
Deuteranopia (green-blind)
#102241
Tritanopia (blue-blind)
#3B1425
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #3a0842;
/* rgb */ color: rgb(58, 8, 66);
/* oklch */ color: oklch(25.9% 0.108 321.6);
Tailwind
colors: {
  custom: {
    50: '#734f77',
    500: '#3a0842',
    950: '#000000',
  },
}
SCSS
$custom: #3a0842;
$custom-light: #734f77;
$custom-dark: #000000;
JSON
{
  "hex": "#3a0842",
  "rgb": {
    "r": 58,
    "g": 8,
    "b": 66
  },
  "hsl": {
    "h": 291.724,
    "s": 78.378,
    "l": 14.51
  },
  "oklch": {
    "l": 0.2591,
    "c": 0.10838,
    "h": 321.6
  },
  "luminance": 0.01467
}

Semantic roles & 50–950 ramp

primary
#3A0842
secondary
#328025
accent
#F5334E
background
#F7F4F7
surface
#EDE7ED
border
#C8C3C8
text
#080208
muted
#7B787B

Preview Lab

Preview with #3A0842

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

Preview Lab → · Contrast checker → · Palette generator →

#3A0842 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva