#3A0F5C#3A0F5C

#3A0F5C is a dark, vivid violet. Relative luminance 0.020; OKLCH L 28.8% C 0.127 H 304.7°. Best body text is #FFFFFF at 14.97:1 contrast (WCAG AA passes).

Color values

HEX#3A0F5C
RGBrgb(58, 15, 92)
HSLhsl(274, 72%, 21%)
HSVhsv(274, 84%, 36%)
CMYKcmyk(37%, 83.7%, 0%, 63.9%)
CIE-LABlab(15.56, 35.64, -36.74)
CIE-LCHlch(15.56, 51.19, 314.13°)
OKLaboklab(28.83% 0.0725 -0.1047)
OKLCHoklch(28.83% 0.127 304.7)
XYZxyz(3.8471, 2.0139, 10.3092)
Luminance0.0201 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A0F5C #315C0F
analogous
#130F5C #3A0F5C #5C0F57
triadic
#3A0F5C #5C3A0F #0F5C3A
tetradic
#3A0F5C #5C130F #315C0F #0F575C
square
#3A0F5C #5C130F #315C0F #0F575C
split-complementary
#3A0F5C #575C0F #0F5C13
monochromatic
#11041A #190627 #3A0F5C #5B1891 #7C20C5

Accessibility & contrast

On white

14.97
#3A0F5C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.40
#3A0F5C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A0F5C
14.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A0F5C#FFFFFF#000000##FFFFFF
##3A0F5C1.0014.971.4014.97
#FFFFFF14.971.0021.001.00
#0000001.4021.001.0021.00
##FFFFFF14.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00265E
Deuteranopia (green-blind)
#00275A
Tritanopia (blue-blind)
#332335
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #3a0f5c;
/* rgb */ color: rgb(58, 15, 92);
/* oklch */ color: oklch(28.8% 0.127 304.7);
Tailwind
colors: {
  custom: {
    50: '#74538b',
    500: '#3a0f5c',
    950: '#000000',
  },
}
SCSS
$custom: #3a0f5c;
$custom-light: #74538b;
$custom-dark: #000000;
JSON
{
  "hex": "#3a0f5c",
  "rgb": {
    "r": 58,
    "g": 15,
    "b": 92
  },
  "hsl": {
    "h": 273.506,
    "s": 71.963,
    "l": 20.98
  },
  "oklch": {
    "l": 0.28825,
    "c": 0.12733,
    "h": 304.7
  },
  "luminance": 0.02014
}

Semantic roles & 50–950 ramp

primary
#3A0F5C
secondary
#5E9531
accent
#EF3989
background
#F7F4F8
surface
#EDE7F0
border
#C8C3CB
text
#09030C
muted
#7B787D

Preview Lab

Preview with #3A0F5C

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

Preview Lab → · Contrast checker → · Palette generator →

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