#3A0F5A#3A0F5A

#3A0F5A is a dark, vivid violet. Relative luminance 0.020; OKLCH L 28.6% C 0.125 H 305.7°. Best body text is #FFFFFF at 15.05:1 contrast (WCAG AA passes).

Color values

HEX#3A0F5A
RGBrgb(58, 15, 90)
HSLhsl(274, 71%, 21%)
HSVhsv(274, 83%, 35%)
CMYKcmyk(35.6%, 83.3%, 0%, 64.7%)
CIE-LABlab(15.38, 35.13, -35.70)
CIE-LCHlch(15.38, 50.08, 314.54°)
OKLaboklab(28.64% 0.073 -0.1016)
OKLCHoklch(28.64% 0.125 305.7)
XYZxyz(3.7608, 1.9794, 9.8548)
Luminance0.0198 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A0F5A #2F5A0F
analogous
#140F5A #3A0F5A #5A0F54
triadic
#3A0F5A #5A3A0F #0F5A3A
tetradic
#3A0F5A #5A140F #2F5A0F #0F545A
square
#3A0F5A #5A140F #2F5A0F #0F545A
split-complementary
#3A0F5A #545A0F #0F5A14
monochromatic
#11041A #180626 #3A0F5A #5C188E #7E20C3

Accessibility & contrast

On white

15.05
#3A0F5A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3A0F5A
15.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A0F5A#FFFFFF#000000##FFFFFF
##3A0F5A1.0015.051.4015.05
#FFFFFF15.051.0021.001.00
#0000001.4021.001.0021.00
##FFFFFF15.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00255C
Deuteranopia (green-blind)
#002759
Tritanopia (blue-blind)
#342234
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #3a0f5a;
/* rgb */ color: rgb(58, 15, 90);
/* oklch */ color: oklch(28.6% 0.125 305.7);
Tailwind
colors: {
  custom: {
    50: '#745389',
    500: '#3a0f5a',
    950: '#000000',
  },
}
SCSS
$custom: #3a0f5a;
$custom-light: #745389;
$custom-dark: #000000;
JSON
{
  "hex": "#3a0f5a",
  "rgb": {
    "r": 58,
    "g": 15,
    "b": 90
  },
  "hsl": {
    "h": 274.4,
    "s": 71.429,
    "l": 20.588
  },
  "oklch": {
    "l": 0.28642,
    "c": 0.12513,
    "h": 305.7
  },
  "luminance": 0.01979
}

Semantic roles & 50–950 ramp

primary
#3A0F5A
secondary
#5B9431
accent
#EE3A87
background
#F7F4F8
surface
#EDE7F0
border
#C8C3CB
text
#09030C
muted
#7B787D

Preview Lab

Preview with #3A0F5A

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

Preview Lab → · Contrast checker → · Palette generator →

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