#3A0F5B#3A0F5B

#3A0F5B is a dark, vivid violet. Relative luminance 0.020; OKLCH L 28.7% C 0.126 H 305.2°. Best body text is #FFFFFF at 15.01:1 contrast (WCAG AA passes).

Color values

HEX#3A0F5B
RGBrgb(58, 15, 91)
HSLhsl(274, 72%, 21%)
HSVhsv(274, 84%, 36%)
CMYKcmyk(36.3%, 83.5%, 0%, 64.3%)
CIE-LABlab(15.47, 35.38, -36.22)
CIE-LCHlch(15.47, 50.63, 314.33°)
OKLaboklab(28.73% 0.0727 -0.1032)
OKLCHoklch(28.73% 0.126 305.2)
XYZxyz(3.8036, 1.9965, 10.0805)
Luminance0.0200 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A0F5B #305B0F
analogous
#140F5B #3A0F5B #5B0F56
triadic
#3A0F5B #5B3A0F #0F5B3A
tetradic
#3A0F5B #5B140F #305B0F #0F565B
square
#3A0F5B #5B140F #305B0F #0F565B
split-complementary
#3A0F5B #565B0F #0F5B14
monochromatic
#11041A #190626 #3A0F5B #5B1890 #7D20C4

Accessibility & contrast

On white

15.01
#3A0F5B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3A0F5B
15.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A0F5B#FFFFFF#000000##FFFFFF
##3A0F5B1.0015.011.4015.01
#FFFFFF15.011.0021.001.00
#0000001.4021.001.0021.00
##FFFFFF15.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00265D
Deuteranopia (green-blind)
#002759
Tritanopia (blue-blind)
#342335
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #3a0f5b;
/* rgb */ color: rgb(58, 15, 91);
/* oklch */ color: oklch(28.7% 0.126 305.2);
Tailwind
colors: {
  custom: {
    50: '#74538a',
    500: '#3a0f5b',
    950: '#000000',
  },
}
SCSS
$custom: #3a0f5b;
$custom-light: #74538a;
$custom-dark: #000000;
JSON
{
  "hex": "#3a0f5b",
  "rgb": {
    "r": 58,
    "g": 15,
    "b": 91
  },
  "hsl": {
    "h": 273.947,
    "s": 71.698,
    "l": 20.784
  },
  "oklch": {
    "l": 0.28733,
    "c": 0.12623,
    "h": 305.2
  },
  "luminance": 0.01997
}

Semantic roles & 50–950 ramp

primary
#3A0F5B
secondary
#5C9531
accent
#EE3988
background
#F7F4F8
surface
#EDE7F0
border
#C8C3CB
text
#09030C
muted
#7B787D

Preview Lab

Preview with #3A0F5B

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

Preview Lab → · Contrast checker → · Palette generator →

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