#3A0F5E#3A0F5E

#3A0F5E is a dark, vivid violet. Relative luminance 0.020; OKLCH L 29.0% C 0.130 H 303.7°. Best body text is #FFFFFF at 14.90:1 contrast (WCAG AA passes).

Color values

HEX#3A0F5E
RGBrgb(58, 15, 94)
HSLhsl(273, 72%, 21%)
HSVhsv(273, 84%, 37%)
CMYKcmyk(38.3%, 84%, 0%, 63.1%)
CIE-LABlab(15.74, 36.15, -37.78)
CIE-LCHlch(15.74, 52.29, 313.74°)
OKLaboklab(29.01% 0.0719 -0.1077)
OKLCHoklch(29.01% 0.13 303.7)
XYZxyz(3.9357, 2.0493, 10.7757)
Luminance0.0205 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A0F5E #335E0F
analogous
#130F5E #3A0F5E #5E0F5B
triadic
#3A0F5E #5E3A0F #0F5E3A
tetradic
#3A0F5E #5E130F #335E0F #0F5B5E
square
#3A0F5E #5E130F #335E0F #0F5B5E
split-complementary
#3A0F5E #5B5E0F #0F5E13
monochromatic
#10041A #190729 #3A0F5E #5B1793 #7B20C8

Accessibility & contrast

On white

14.90
#3A0F5E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3A0F5E
14.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A0F5E#FFFFFF#000000##FFFFFF
##3A0F5E1.0014.901.4114.90
#FFFFFF14.901.0021.001.00
#0000001.4121.001.0021.00
##FFFFFF14.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002660
Deuteranopia (green-blind)
#00275C
Tritanopia (blue-blind)
#332436
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #3a0f5e;
/* rgb */ color: rgb(58, 15, 94);
/* oklch */ color: oklch(29.0% 0.130 303.7);
Tailwind
colors: {
  custom: {
    50: '#75538c',
    500: '#3a0f5e',
    950: '#000000',
  },
}
SCSS
$custom: #3a0f5e;
$custom-light: #75538c;
$custom-dark: #000000;
JSON
{
  "hex": "#3a0f5e",
  "rgb": {
    "r": 58,
    "g": 15,
    "b": 94
  },
  "hsl": {
    "h": 272.658,
    "s": 72.477,
    "l": 21.373
  },
  "oklch": {
    "l": 0.29011,
    "c": 0.12952,
    "h": 303.7
  },
  "luminance": 0.02049
}

Semantic roles & 50–950 ramp

primary
#3A0F5E
secondary
#609731
accent
#EF398C
background
#F7F4F8
surface
#EDE8F0
border
#C8C4CB
text
#09030C
muted
#7B787D

Preview Lab

Preview with #3A0F5E

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

Preview Lab → · Contrast checker → · Palette generator →

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