#3A0F57#3A0F57

#3A0F57 is a dark, vivid violet. Relative luminance 0.019; OKLCH L 28.4% C 0.122 H 307.3°. Best body text is #FFFFFF at 15.15:1 contrast (WCAG AA passes).

Color values

HEX#3A0F57
RGBrgb(58, 15, 87)
HSLhsl(276, 71%, 20%)
HSVhsv(276, 83%, 34%)
CMYKcmyk(33.3%, 82.8%, 0%, 65.9%)
CIE-LABlab(15.11, 34.36, -34.11)
CIE-LCHlch(15.11, 48.42, 315.22°)
OKLaboklab(28.37% 0.0738 -0.097)
OKLCHoklch(28.37% 0.122 307.3)
XYZxyz(3.6357, 1.9294, 9.1958)
Luminance0.0193 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A0F57 #2C570F
analogous
#160F57 #3A0F57 #570F50
triadic
#3A0F57 #573A0F #0F573A
tetradic
#3A0F57 #57160F #2C570F #0F5057
square
#3A0F57 #57160F #2C570F #0F5057
split-complementary
#3A0F57 #50570F #0F5716
monochromatic
#11051A #170623 #3A0F57 #5D188B #8021BF

Accessibility & contrast

On white

15.15
#3A0F57 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.39
#3A0F57 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A0F57
15.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A0F57#FFFFFF#000000##FFFFFF
##3A0F571.0015.151.3915.15
#FFFFFF15.151.0021.001.00
#0000001.3921.001.0021.00
##FFFFFF15.151.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #3a0f57;
/* rgb */ color: rgb(58, 15, 87);
/* oklch */ color: oklch(28.4% 0.122 307.3);
Tailwind
colors: {
  custom: {
    50: '#745387',
    500: '#3a0f57',
    950: '#000000',
  },
}
SCSS
$custom: #3a0f57;
$custom-light: #745387;
$custom-dark: #000000;
JSON
{
  "hex": "#3a0f57",
  "rgb": {
    "r": 58,
    "g": 15,
    "b": 87
  },
  "hsl": {
    "h": 275.833,
    "s": 70.588,
    "l": 20
  },
  "oklch": {
    "l": 0.28371,
    "c": 0.12185,
    "h": 307.3
  },
  "luminance": 0.01929
}

Semantic roles & 50–950 ramp

primary
#3A0F57
secondary
#589131
accent
#ED3A83
background
#F7F4F8
surface
#EDE7EF
border
#C8C3CA
text
#08030B
muted
#7B787C

Preview Lab

Preview with #3A0F57

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

Preview Lab → · Contrast checker → · Palette generator →

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