#3A0F5F#3A0F5F

#3A0F5F is a dark, vivid violet. Relative luminance 0.021; OKLCH L 29.1% C 0.131 H 303.2°. Best body text is #FFFFFF at 14.86:1 contrast (WCAG AA passes).

Color values

HEX#3A0F5F
RGBrgb(58, 15, 95)
HSLhsl(272, 73%, 22%)
HSVhsv(272, 84%, 37%)
CMYKcmyk(38.9%, 84.2%, 0%, 62.7%)
CIE-LABlab(15.84, 36.41, -38.30)
CIE-LCHlch(15.84, 52.84, 313.55°)
OKLaboklab(29.1% 0.0716 -0.1093)
OKLCHoklch(29.1% 0.131 303.2)
XYZxyz(3.9808, 2.0674, 11.0136)
Luminance0.0207 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A0F5F #345F0F
analogous
#120F5F #3A0F5F #5F0F5C
triadic
#3A0F5F #5F3A0F #0F5F3A
tetradic
#3A0F5F #5F120F #345F0F #0F5C5F
square
#3A0F5F #5F120F #345F0F #0F5C5F
split-complementary
#3A0F5F #5C5F0F #0F5F12
monochromatic
#10041A #1A072A #3A0F5F #5A1794 #7B20C9

Accessibility & contrast

On white

14.86
#3A0F5F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.41
#3A0F5F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A0F5F
14.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A0F5F#FFFFFF#000000##FFFFFF
##3A0F5F1.0014.861.4114.86
#FFFFFF14.861.0021.001.00
#0000001.4121.001.0021.00
##FFFFFF14.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002761
Deuteranopia (green-blind)
#00275D
Tritanopia (blue-blind)
#322437
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #3a0f5f;
/* rgb */ color: rgb(58, 15, 95);
/* oklch */ color: oklch(29.1% 0.131 303.2);
Tailwind
colors: {
  custom: {
    50: '#75538d',
    500: '#3a0f5f',
    950: '#000000',
  },
}
SCSS
$custom: #3a0f5f;
$custom-light: #75538d;
$custom-dark: #000000;
JSON
{
  "hex": "#3a0f5f",
  "rgb": {
    "r": 58,
    "g": 15,
    "b": 95
  },
  "hsl": {
    "h": 272.25,
    "s": 72.727,
    "l": 21.569
  },
  "oklch": {
    "l": 0.29105,
    "c": 0.13061,
    "h": 303.2
  },
  "luminance": 0.02067
}

Semantic roles & 50–950 ramp

primary
#3A0F5F
secondary
#619832
accent
#EF388D
background
#F7F4F8
surface
#EDE8F0
border
#C8C4CB
text
#09030C
muted
#7B787D

Preview Lab

Preview with #3A0F5F

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

Preview Lab → · Contrast checker → · Palette generator →

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