#3A0F5D#3A0F5D

#3A0F5D is a dark, vivid violet. Relative luminance 0.020; OKLCH L 28.9% C 0.128 H 304.2°. Best body text is #FFFFFF at 14.93:1 contrast (WCAG AA passes).

Color values

HEX#3A0F5D
RGBrgb(58, 15, 93)
HSLhsl(273, 72%, 21%)
HSVhsv(273, 84%, 36%)
CMYKcmyk(37.6%, 83.9%, 0%, 63.5%)
CIE-LABlab(15.65, 35.90, -37.26)
CIE-LCHlch(15.65, 51.74, 313.93°)
OKLaboklab(28.92% 0.0722 -0.1062)
OKLCHoklch(28.92% 0.128 304.2)
XYZxyz(3.8911, 2.0315, 10.5409)
Luminance0.0203 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A0F5D #325D0F
analogous
#130F5D #3A0F5D #5D0F59
triadic
#3A0F5D #5D3A0F #0F5D3A
tetradic
#3A0F5D #5D130F #325D0F #0F595D
square
#3A0F5D #5D130F #325D0F #0F595D
split-complementary
#3A0F5D #595D0F #0F5D13
monochromatic
#10041A #190628 #3A0F5D #5B1792 #7C20C6

Accessibility & contrast

On white

14.93
#3A0F5D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3A0F5D
14.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A0F5D#FFFFFF#000000##FFFFFF
##3A0F5D1.0014.931.4114.93
#FFFFFF14.931.0021.001.00
#0000001.4121.001.0021.00
##FFFFFF14.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00265F
Deuteranopia (green-blind)
#00275B
Tritanopia (blue-blind)
#332436
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #3a0f5d;
/* rgb */ color: rgb(58, 15, 93);
/* oklch */ color: oklch(28.9% 0.128 304.2);
Tailwind
colors: {
  custom: {
    50: '#74538c',
    500: '#3a0f5d',
    950: '#000000',
  },
}
SCSS
$custom: #3a0f5d;
$custom-light: #74538c;
$custom-dark: #000000;
JSON
{
  "hex": "#3a0f5d",
  "rgb": {
    "r": 58,
    "g": 15,
    "b": 93
  },
  "hsl": {
    "h": 273.077,
    "s": 72.222,
    "l": 21.176
  },
  "oklch": {
    "l": 0.28918,
    "c": 0.12843,
    "h": 304.2
  },
  "luminance": 0.02032
}

Semantic roles & 50–950 ramp

primary
#3A0F5D
secondary
#5F9631
accent
#EF398B
background
#F7F4F8
surface
#EDE8F0
border
#C8C4CB
text
#09030C
muted
#7B787D

Preview Lab

Preview with #3A0F5D

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

Preview Lab → · Contrast checker → · Palette generator →

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