#3A0B51#3A0B51

#3A0B51 is a dark, moderate purple. Relative luminance 0.017; OKLCH L 27.4% C 0.120 H 311.3°. Best body text is #FFFFFF at 15.59:1 contrast (WCAG AA passes).

Color values

HEX#3A0B51
RGBrgb(58, 11, 81)
HSLhsl(280, 76%, 18%)
HSVhsv(280, 86%, 32%)
CMYKcmyk(28.4%, 86.4%, 0%, 68.2%)
CIE-LABlab(14.02, 34.53, -31.80)
CIE-LCHlch(14.02, 46.95, 317.36°)
OKLaboklab(27.44% 0.0791 -0.0901)
OKLCHoklch(27.44% 0.12 311.3)
XYZxyz(3.3495, 1.7331, 7.9411)
Luminance0.0173 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A0B51 #22510B
analogous
#170B51 #3A0B51 #510B45
triadic
#3A0B51 #513A0B #0B513A
tetradic
#3A0B51 #51170B #22510B #0B4551
square
#3A0B51 #51170B #22510B #0B4551
split-complementary
#3A0B51 #45510B #0B5117
monochromatic
#13041B #13041B #3A0B51 #611287 #871ABD

Accessibility & contrast

On white

15.59
#3A0B51 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.35
#3A0B51 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A0B51
15.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A0B51#FFFFFF#000000##FFFFFF
##3A0B511.0015.591.3515.59
#FFFFFF15.591.0021.001.00
#0000001.3521.001.0021.00
##FFFFFF15.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002253
Deuteranopia (green-blind)
#002450
Tritanopia (blue-blind)
#371C2E
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #3a0b51;
/* rgb */ color: rgb(58, 11, 81);
/* oklch */ color: oklch(27.4% 0.120 311.3);
Tailwind
colors: {
  custom: {
    50: '#745182',
    500: '#3a0b51',
    950: '#000000',
  },
}
SCSS
$custom: #3a0b51;
$custom-light: #745182;
$custom-dark: #000000;
JSON
{
  "hex": "#3a0b51",
  "rgb": {
    "r": 58,
    "g": 11,
    "b": 81
  },
  "hsl": {
    "h": 280.286,
    "s": 76.087,
    "l": 18.039
  },
  "oklch": {
    "l": 0.2744,
    "c": 0.11995,
    "h": 311.3
  },
  "luminance": 0.01733
}

Semantic roles & 50–950 ramp

primary
#3A0B51
secondary
#4B8D2B
accent
#F33573
background
#F7F4F8
surface
#EDE7EF
border
#C8C3CA
text
#08020A
muted
#7B787C

Preview Lab

Preview with #3A0B51

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

Preview Lab → · Contrast checker → · Palette generator →

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