#3A0E5B#3A0E5B

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

Color values

HEX#3A0E5B
RGBrgb(58, 14, 91)
HSLhsl(274, 73%, 21%)
HSVhsv(274, 85%, 36%)
CMYKcmyk(36.3%, 84.6%, 0%, 64.3%)
CIE-LABlab(15.32, 35.80, -36.46)
CIE-LCHlch(15.32, 51.10, 314.48°)
OKLaboklab(28.63% 0.0737 -0.1038)
OKLCHoklch(28.63% 0.127 305.3)
XYZxyz(3.7899, 1.9690, 10.0759)
Luminance0.0197 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A0E5B #2F5B0E
analogous
#140E5B #3A0E5B #5B0E55
triadic
#3A0E5B #5B3A0E #0E5B3A
tetradic
#3A0E5B #5B140E #2F5B0E #0E555B
square
#3A0E5B #5B140E #2F5B0E #0E555B
split-complementary
#3A0E5B #555B0E #0E5B14
monochromatic
#11041B #180626 #3A0E5B #5C1690 #7E1EC5

Accessibility & contrast

On white

15.07
#3A0E5B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.39
#3A0E5B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A0E5B
15.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A0E5B#FFFFFF#000000##FFFFFF
##3A0E5B1.0015.071.3915.07
#FFFFFF15.071.0021.001.00
#0000001.3921.001.0021.00
##FFFFFF15.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00255D
Deuteranopia (green-blind)
#002659
Tritanopia (blue-blind)
#342235
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #3a0e5b;
/* rgb */ color: rgb(58, 14, 91);
/* oklch */ color: oklch(28.6% 0.127 305.3);
Tailwind
colors: {
  custom: {
    50: '#74538a',
    500: '#3a0e5b',
    950: '#000000',
  },
}
SCSS
$custom: #3a0e5b;
$custom-light: #74538a;
$custom-dark: #000000;
JSON
{
  "hex": "#3a0e5b",
  "rgb": {
    "r": 58,
    "g": 14,
    "b": 91
  },
  "hsl": {
    "h": 274.286,
    "s": 73.333,
    "l": 20.588
  },
  "oklch": {
    "l": 0.28631,
    "c": 0.12732,
    "h": 305.3
  },
  "luminance": 0.01969
}

Semantic roles & 50–950 ramp

primary
#3A0E5B
secondary
#5B9530
accent
#F03887
background
#F7F4F8
surface
#EDE7F0
border
#C8C3CB
text
#09030C
muted
#7B787D

Preview Lab

Preview with #3A0E5B

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

Preview Lab → · Contrast checker → · Palette generator →

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