#3A0F52#3A0F52

#3A0F52 is a dark, moderate violet. Relative luminance 0.018; OKLCH L 27.9% C 0.116 H 310.1°. Best body text is #FFFFFF at 15.33:1 contrast (WCAG AA passes).

Color values

HEX#3A0F52
RGBrgb(58, 15, 82)
HSLhsl(279, 69%, 19%)
HSVhsv(279, 82%, 32%)
CMYKcmyk(29.3%, 81.7%, 0%, 67.8%)
CIE-LABlab(14.68, 33.11, -31.41)
CIE-LCHlch(14.68, 45.64, 316.51°)
OKLaboklab(27.93% 0.0749 -0.089)
OKLCHoklch(27.93% 0.116 310.1)
XYZxyz(3.4384, 1.8505, 8.1570)
Luminance0.0185 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A0F52 #27520F
analogous
#190F52 #3A0F52 #520F49
triadic
#3A0F52 #523A0F #0F523A
tetradic
#3A0F52 #52190F #27520F #0F4952
square
#3A0F52 #52190F #27520F #0F4952
split-complementary
#3A0F52 #49520F #0F5219
monochromatic
#12051A #15061E #3A0F52 #5F1886 #8322B9

Accessibility & contrast

On white

15.33
#3A0F52 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.37
#3A0F52 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A0F52
15.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A0F52#FFFFFF#000000##FFFFFF
##3A0F521.0015.331.3715.33
#FFFFFF15.331.0021.001.00
#0000001.3721.001.0021.00
##FFFFFF15.331.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #3a0f52;
/* rgb */ color: rgb(58, 15, 82);
/* oklch */ color: oklch(27.9% 0.116 310.1);
Tailwind
colors: {
  custom: {
    50: '#735283',
    500: '#3a0f52',
    950: '#000000',
  },
}
SCSS
$custom: #3a0f52;
$custom-light: #735283;
$custom-dark: #000000;
JSON
{
  "hex": "#3a0f52",
  "rgb": {
    "r": 58,
    "g": 15,
    "b": 82
  },
  "hsl": {
    "h": 278.507,
    "s": 69.072,
    "l": 19.02
  },
  "oklch": {
    "l": 0.27934,
    "c": 0.11637,
    "h": 310.1
  },
  "luminance": 0.0185
}

Semantic roles & 50–950 ramp

primary
#3A0F52
secondary
#518C31
accent
#EC3C7B
background
#F7F4F8
surface
#EDE7EF
border
#C8C3CA
text
#08020B
muted
#7B787C

Preview Lab

Preview with #3A0F52

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

Preview Lab → · Contrast checker → · Palette generator →

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