#3A1E9D#3A1E9D

#3A1E9D is a dark, vivid violet. Relative luminance 0.043; OKLCH L 37.1% C 0.187 H 282.3°. Best body text is #FFFFFF at 11.34:1 contrast (WCAG AA passes).

Color values

HEX#3A1E9D
RGBrgb(58, 30, 157)
HSLhsl(253, 68%, 37%)
HSVhsv(253, 81%, 62%)
CMYKcmyk(63.1%, 80.9%, 0%, 38.4%)
CIE-LABlab(24.52, 47.12, -63.50)
CIE-LCHlch(24.52, 79.07, 306.58°)
OKLaboklab(37.06% 0.0401 -0.1831)
OKLCHoklch(37.06% 0.187 282.3)
XYZxyz(8.2931, 4.2618, 32.2773)
Luminance0.0426 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A1E9D #819D1E
analogous
#1E429D #3A1E9D #7A1E9D
triadic
#3A1E9D #9D3A1E #1E9D3A
tetradic
#3A1E9D #9D1E42 #819D1E #1E9D7A
square
#3A1E9D #9D1E42 #819D1E #1E9D7A
split-complementary
#3A1E9D #9D7A1E #429D1E
monochromatic
#140A36 #27146A #3A1E9D #4D28D0 #7557DF

Accessibility & contrast

On white

11.34
#3A1E9D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.85
#3A1E9D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A1E9D
11.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A1E9D#FFFFFF#000000##FFFFFF
##3A1E9D1.0011.341.8511.34
#FFFFFF11.341.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003EA0
Deuteranopia (green-blind)
#00369B
Tritanopia (blue-blind)
#00445E
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #3a1e9d;
/* rgb */ color: rgb(58, 30, 157);
/* oklch */ color: oklch(37.1% 0.187 282.3);
Tailwind
colors: {
  custom: {
    50: '#7e5fbb',
    500: '#3a1e9d',
    950: '#000000',
  },
}
SCSS
$custom: #3a1e9d;
$custom-light: #7e5fbb;
$custom-dark: #000000;
JSON
{
  "hex": "#3a1e9d",
  "rgb": {
    "r": 58,
    "g": 30,
    "b": 157
  },
  "hsl": {
    "h": 253.228,
    "s": 67.914,
    "l": 36.667
  },
  "oklch": {
    "l": 0.37055,
    "c": 0.18749,
    "h": 282.3
  },
  "luminance": 0.04262
}

Semantic roles & 50–950 ramp

primary
#3A1E9D
secondary
#AAC254
accent
#EB3DC4
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0512
muted
#7C7981

Preview Lab

Preview with #3A1E9D

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

Preview Lab → · Contrast checker → · Palette generator →

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