#3A0D57#3A0D57

#3A0D57 is a dark, vivid violet. Relative luminance 0.019; OKLCH L 28.2% C 0.124 H 307.6°. Best body text is #FFFFFF at 15.27:1 contrast (WCAG AA passes).

Color values

HEX#3A0D57
RGBrgb(58, 13, 87)
HSLhsl(276, 74%, 20%)
HSVhsv(276, 85%, 34%)
CMYKcmyk(33.3%, 85.1%, 0%, 65.9%)
CIE-LABlab(14.82, 35.21, -34.58)
CIE-LCHlch(14.82, 49.35, 315.51°)
OKLaboklab(28.17% 0.0757 -0.0983)
OKLCHoklch(28.17% 0.124 307.6)
XYZxyz(3.6088, 1.8756, 9.1869)
Luminance0.0188 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A0D57 #2A570D
analogous
#150D57 #3A0D57 #570D4F
triadic
#3A0D57 #573A0D #0D573A
tetradic
#3A0D57 #57150D #2A570D #0D4F57
square
#3A0D57 #57150D #2A570D #0D4F57
split-complementary
#3A0D57 #4F570D #0D5715
monochromatic
#12041B #170522 #3A0D57 #5D158C #811DC1

Accessibility & contrast

On white

15.27
#3A0D57 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.38
#3A0D57 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A0D57
15.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A0D57#FFFFFF#000000##FFFFFF
##3A0D571.0015.271.3815.27
#FFFFFF15.271.0021.001.00
#0000001.3821.001.0021.00
##FFFFFF15.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002459
Deuteranopia (green-blind)
#002656
Tritanopia (blue-blind)
#352032
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #3a0d57;
/* rgb */ color: rgb(58, 13, 87);
/* oklch */ color: oklch(28.2% 0.124 307.6);
Tailwind
colors: {
  custom: {
    50: '#745287',
    500: '#3a0d57',
    950: '#000000',
  },
}
SCSS
$custom: #3a0d57;
$custom-light: #745287;
$custom-dark: #000000;
JSON
{
  "hex": "#3a0d57",
  "rgb": {
    "r": 58,
    "g": 13,
    "b": 87
  },
  "hsl": {
    "h": 276.486,
    "s": 74,
    "l": 19.608
  },
  "oklch": {
    "l": 0.28167,
    "c": 0.1241,
    "h": 307.6
  },
  "luminance": 0.01876
}

Semantic roles & 50–950 ramp

primary
#3A0D57
secondary
#55922E
accent
#F13780
background
#F7F4F8
surface
#EDE7EF
border
#C8C3CA
text
#08020B
muted
#7B787C

Preview Lab

Preview with #3A0D57

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

Preview Lab → · Contrast checker → · Palette generator →

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