#3A0E54#3A0E54

#3A0E54 is a dark, moderate violet. Relative luminance 0.019; OKLCH L 28.0% C 0.120 H 309.1°. Best body text is #FFFFFF at 15.32:1 contrast (WCAG AA passes).

Color values

HEX#3A0E54
RGBrgb(58, 14, 84)
HSLhsl(278, 71%, 19%)
HSVhsv(278, 83%, 33%)
CMYKcmyk(31%, 83.3%, 0%, 67.1%)
CIE-LABlab(14.70, 34.05, -32.74)
CIE-LCHlch(14.70, 47.24, 316.12°)
OKLaboklab(28% 0.0755 -0.0929)
OKLCHoklch(28% 0.12 309.1)
XYZxyz(3.5019, 1.8538, 8.5591)
Luminance0.0185 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A0E54 #28540E
analogous
#170E54 #3A0E54 #540E4B
triadic
#3A0E54 #543A0E #0E543A
tetradic
#3A0E54 #54170E #28540E #0E4B54
square
#3A0E54 #54170E #28540E #0E4B54
split-complementary
#3A0E54 #4B540E #0E5417
monochromatic
#12041A #160520 #3A0E54 #5E1788 #821FBD

Accessibility & contrast

On white

15.32
#3A0E54 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.37
#3A0E54 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A0E54
15.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A0E54#FFFFFF#000000##FFFFFF
##3A0E541.0015.321.3715.32
#FFFFFF15.321.0021.001.00
#0000001.3721.001.0021.00
##FFFFFF15.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002356
Deuteranopia (green-blind)
#002653
Tritanopia (blue-blind)
#361F31
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #3a0e54;
/* rgb */ color: rgb(58, 14, 84);
/* oklch */ color: oklch(28.0% 0.120 309.1);
Tailwind
colors: {
  custom: {
    50: '#745285',
    500: '#3a0e54',
    950: '#000000',
  },
}
SCSS
$custom: #3a0e54;
$custom-light: #745285;
$custom-dark: #000000;
JSON
{
  "hex": "#3a0e54",
  "rgb": {
    "r": 58,
    "g": 14,
    "b": 84
  },
  "hsl": {
    "h": 277.714,
    "s": 71.429,
    "l": 19.216
  },
  "oklch": {
    "l": 0.28,
    "c": 0.11975,
    "h": 309.1
  },
  "luminance": 0.01854
}

Semantic roles & 50–950 ramp

primary
#3A0E54
secondary
#538E2F
accent
#EE3A7D
background
#F7F4F8
surface
#EDE7EF
border
#C8C3CA
text
#08020B
muted
#7B787C

Preview Lab

Preview with #3A0E54

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

Preview Lab → · Contrast checker → · Palette generator →

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