#3A0F6A#3A0F6A

#3A0F6A is a dark, vivid violet. Relative luminance 0.023; OKLCH L 30.2% C 0.143 H 298.4°. Best body text is #FFFFFF at 14.42:1 contrast (WCAG AA passes).

Color values

HEX#3A0F6A
RGBrgb(58, 15, 106)
HSLhsl(268, 75%, 24%)
HSVhsv(268, 86%, 42%)
CMYKcmyk(45.3%, 85.8%, 0%, 58.4%)
CIE-LABlab(16.90, 39.29, -43.82)
CIE-LCHlch(16.90, 58.86, 311.88°)
OKLaboklab(30.17% 0.0679 -0.1255)
OKLCHoklch(30.17% 0.143 298.4)
XYZxyz(4.5166, 2.2817, 13.8353)
Luminance0.0228 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A0F6A #3F6A0F
analogous
#0F116A #3A0F6A #670F6A
triadic
#3A0F6A #6A3A0F #0F6A3A
tetradic
#3A0F6A #6A0F11 #3F6A0F #0F6A67
square
#3A0F6A #6A0F11 #3F6A0F #0F6A67
split-complementary
#3A0F6A #6A670F #116A0F
monochromatic
#0F041B #1D0734 #3A0F6A #5717A0 #751ED5

Accessibility & contrast

On white

14.42
#3A0F6A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.46
#3A0F6A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A0F6A
14.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A0F6A#FFFFFF#000000##FFFFFF
##3A0F6A1.0014.421.4614.42
#FFFFFF14.421.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A6C
Deuteranopia (green-blind)
#002968
Tritanopia (blue-blind)
#2E293D
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #3a0f6a;
/* rgb */ color: rgb(58, 15, 106);
/* oklch */ color: oklch(30.2% 0.143 298.4);
Tailwind
colors: {
  custom: {
    50: '#765495',
    500: '#3a0f6a',
    950: '#000000',
  },
}
SCSS
$custom: #3a0f6a;
$custom-light: #765495;
$custom-dark: #000000;
JSON
{
  "hex": "#3a0f6a",
  "rgb": {
    "r": 58,
    "g": 15,
    "b": 106
  },
  "hsl": {
    "h": 268.352,
    "s": 75.207,
    "l": 23.725
  },
  "oklch": {
    "l": 0.30171,
    "c": 0.14267,
    "h": 298.4
  },
  "luminance": 0.02282
}

Semantic roles & 50–950 ramp

primary
#3A0F6A
secondary
#6DA232
accent
#F23699
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09030D
muted
#7B787E

Preview Lab

Preview with #3A0F6A

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

Preview Lab → · Contrast checker → · Palette generator →

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