#3A0B52#3A0B52

#3A0B52 is a dark, vivid violet. Relative luminance 0.017; OKLCH L 27.5% C 0.121 H 310.7°. Best body text is #FFFFFF at 15.56:1 contrast (WCAG AA passes).

Color values

HEX#3A0B52
RGBrgb(58, 11, 82)
HSLhsl(280, 76%, 18%)
HSVhsv(280, 87%, 32%)
CMYKcmyk(29.3%, 86.6%, 0%, 67.8%)
CIE-LABlab(14.11, 34.77, -32.35)
CIE-LCHlch(14.11, 47.49, 317.07°)
OKLaboklab(27.53% 0.0789 -0.0917)
OKLCHoklch(27.53% 0.121 310.7)
XYZxyz(3.3873, 1.7482, 8.1400)
Luminance0.0175 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A0B52 #23520B
analogous
#160B52 #3A0B52 #520B46
triadic
#3A0B52 #523A0B #0B523A
tetradic
#3A0B52 #52160B #23520B #0B4652
square
#3A0B52 #52160B #23520B #0B4652
split-complementary
#3A0B52 #46520B #0B5216
monochromatic
#13041B #14041C #3A0B52 #601288 #8619BE

Accessibility & contrast

On white

15.56
#3A0B52 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3A0B52
15.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A0B52#FFFFFF#000000##FFFFFF
##3A0B521.0015.561.3515.56
#FFFFFF15.561.0021.001.00
#0000001.3521.001.0021.00
##FFFFFF15.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002254
Deuteranopia (green-blind)
#002551
Tritanopia (blue-blind)
#371D2F
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #3a0b52;
/* rgb */ color: rgb(58, 11, 82);
/* oklch */ color: oklch(27.5% 0.121 310.7);
Tailwind
colors: {
  custom: {
    50: '#745183',
    500: '#3a0b52',
    950: '#000000',
  },
}
SCSS
$custom: #3a0b52;
$custom-light: #745183;
$custom-dark: #000000;
JSON
{
  "hex": "#3a0b52",
  "rgb": {
    "r": 58,
    "g": 11,
    "b": 82
  },
  "hsl": {
    "h": 279.718,
    "s": 76.344,
    "l": 18.235
  },
  "oklch": {
    "l": 0.27529,
    "c": 0.12099,
    "h": 310.7
  },
  "luminance": 0.01748
}

Semantic roles & 50–950 ramp

primary
#3A0B52
secondary
#4C8E2B
accent
#F33575
background
#F7F4F8
surface
#EDE7EF
border
#C8C3CA
text
#08020B
muted
#7B787C

Preview Lab

Preview with #3A0B52

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

Preview Lab → · Contrast checker → · Palette generator →

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