#3A0E52#3A0E52

#3A0E52 is a dark, moderate violet. Relative luminance 0.018; OKLCH L 27.8% C 0.118 H 310.3°. Best body text is #FFFFFF at 15.39:1 contrast (WCAG AA passes).

Color values

HEX#3A0E52
RGBrgb(58, 14, 82)
HSLhsl(279, 71%, 19%)
HSVhsv(279, 83%, 32%)
CMYKcmyk(29.3%, 82.9%, 0%, 67.8%)
CIE-LABlab(14.53, 33.55, -31.66)
CIE-LCHlch(14.53, 46.13, 316.66°)
OKLaboklab(27.83% 0.076 -0.0897)
OKLCHoklch(27.83% 0.118 310.3)
XYZxyz(3.4247, 1.8229, 8.1525)
Luminance0.0182 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A0E52 #26520E
analogous
#180E52 #3A0E52 #520E48
triadic
#3A0E52 #523A0E #0E523A
tetradic
#3A0E52 #52180E #26520E #0E4852
square
#3A0E52 #52180E #26520E #0E4852
split-complementary
#3A0E52 #48520E #0E5218
monochromatic
#12041A #15051E #3A0E52 #5F1786 #8420BB

Accessibility & contrast

On white

15.39
#3A0E52 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.36
#3A0E52 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A0E52
15.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A0E52#FFFFFF#000000##FFFFFF
##3A0E521.0015.391.3615.39
#FFFFFF15.391.0021.001.00
#0000001.3621.001.0021.00
##FFFFFF15.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002354
Deuteranopia (green-blind)
#002551
Tritanopia (blue-blind)
#371E2F
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #3a0e52;
/* rgb */ color: rgb(58, 14, 82);
/* oklch */ color: oklch(27.8% 0.118 310.3);
Tailwind
colors: {
  custom: {
    50: '#735283',
    500: '#3a0e52',
    950: '#000000',
  },
}
SCSS
$custom: #3a0e52;
$custom-light: #735283;
$custom-dark: #000000;
JSON
{
  "hex": "#3a0e52",
  "rgb": {
    "r": 58,
    "g": 14,
    "b": 82
  },
  "hsl": {
    "h": 278.824,
    "s": 70.833,
    "l": 18.824
  },
  "oklch": {
    "l": 0.27826,
    "c": 0.11759,
    "h": 310.3
  },
  "luminance": 0.01823
}

Semantic roles & 50–950 ramp

primary
#3A0E52
secondary
#508C2F
accent
#EE3A7A
background
#F7F4F8
surface
#EDE7EF
border
#C8C3CA
text
#08020B
muted
#7B787C

Preview Lab

Preview with #3A0E52

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

Preview Lab → · Contrast checker → · Palette generator →

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