#3A108D#3A108D

#3A108D is a dark, vivid violet. Relative luminance 0.032; OKLCH L 34.0% C 0.180 H 287.2°. Best body text is #FFFFFF at 12.82:1 contrast (WCAG AA passes).

Color values

HEX#3A108D
RGBrgb(58, 16, 141)
HSLhsl(260, 80%, 31%)
HSVhsv(260, 89%, 55%)
CMYKcmyk(58.9%, 88.7%, 0%, 44.7%)
CIE-LABlab(20.80, 48.30, -59.76)
CIE-LCHlch(20.80, 76.84, 308.95°)
OKLaboklab(33.97% 0.0533 -0.1721)
OKLCHoklch(33.97% 0.18 287.2)
XYZxyz(6.7365, 3.1928, 25.4554)
Luminance0.0319 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A108D #638D10
analogous
#10248D #3A108D #78108D
triadic
#3A108D #8D3A10 #108D3A
tetradic
#3A108D #8D1024 #638D10 #108D78
square
#3A108D #8D1024 #638D10 #108D78
split-complementary
#3A108D #8D7810 #248D10
monochromatic
#0D041F #230A56 #3A108D #5116C4 #6E30E7

Accessibility & contrast

On white

12.82
#3A108D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.64
#3A108D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A108D
12.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A108D#FFFFFF#000000##FFFFFF
##3A108D1.0012.821.6412.82
#FFFFFF12.821.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003590
Deuteranopia (green-blind)
#002F8B
Tritanopia (blue-blind)
#103952
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #3a108d;
/* rgb */ color: rgb(58, 16, 141);
/* oklch */ color: oklch(34.0% 0.180 287.2);
Tailwind
colors: {
  custom: {
    50: '#7c57b0',
    500: '#3a108d',
    950: '#000000',
  },
}
SCSS
$custom: #3a108d;
$custom-light: #7c57b0;
$custom-dark: #000000;
JSON
{
  "hex": "#3a108d",
  "rgb": {
    "r": 58,
    "g": 16,
    "b": 141
  },
  "hsl": {
    "h": 260.16,
    "s": 79.618,
    "l": 30.784
  },
  "oklch": {
    "l": 0.33974,
    "c": 0.18013,
    "h": 287.2
  },
  "luminance": 0.03193
}

Semantic roles & 50–950 ramp

primary
#3A108D
secondary
#93C237
accent
#F632B4
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0411
muted
#7C7980

Preview Lab

Preview with #3A108D

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

Preview Lab → · Contrast checker → · Palette generator →

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