#3A0C57#3A0C57

#3A0C57 is a dark, vivid violet. Relative luminance 0.019; OKLCH L 28.1% C 0.125 H 307.7°. Best body text is #FFFFFF at 15.33:1 contrast (WCAG AA passes).

Color values

HEX#3A0C57
RGBrgb(58, 12, 87)
HSLhsl(277, 76%, 19%)
HSVhsv(277, 86%, 34%)
CMYKcmyk(33.3%, 86.2%, 0%, 65.9%)
CIE-LABlab(14.68, 35.60, -34.80)
CIE-LCHlch(14.68, 49.79, 315.65°)
OKLaboklab(28.07% 0.0766 -0.099)
OKLCHoklch(28.07% 0.125 307.7)
XYZxyz(3.5963, 1.8507, 9.1827)
Luminance0.0185 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A0C57 #29570C
analogous
#150C57 #3A0C57 #570C4F
triadic
#3A0C57 #573A0C #0C573A
tetradic
#3A0C57 #57150C #29570C #0C4F57
square
#3A0C57 #57150C #29570C #0C4F57
split-complementary
#3A0C57 #4F570C #0C5715
monochromatic
#12041B #160521 #3A0C57 #5E138D #821BC3

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##3A0C57#FFFFFF#000000##FFFFFF
##3A0C571.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)
#002359
Deuteranopia (green-blind)
#002556
Tritanopia (blue-blind)
#352032
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #3a0c57;
/* rgb */ color: rgb(58, 12, 87);
/* oklch */ color: oklch(28.1% 0.125 307.7);
Tailwind
colors: {
  custom: {
    50: '#745187',
    500: '#3a0c57',
    950: '#000000',
  },
}
SCSS
$custom: #3a0c57;
$custom-light: #745187;
$custom-dark: #000000;
JSON
{
  "hex": "#3a0c57",
  "rgb": {
    "r": 58,
    "g": 12,
    "b": 87
  },
  "hsl": {
    "h": 276.8,
    "s": 75.758,
    "l": 19.412
  },
  "oklch": {
    "l": 0.28071,
    "c": 0.12516,
    "h": 307.7
  },
  "luminance": 0.01851
}

Semantic roles & 50–950 ramp

primary
#3A0C57
secondary
#54922D
accent
#F2357E
background
#F7F4F8
surface
#EDE7EF
border
#C8C3CA
text
#09020B
muted
#7B787C

Preview Lab

Preview with #3A0C57

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

Preview Lab → · Contrast checker → · Palette generator →

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