#3A1E8F#3A1E8F

#3A1E8F is a dark, vivid violet. Relative luminance 0.038; OKLCH L 35.6% C 0.171 H 285.1°. Best body text is #FFFFFF at 11.92:1 contrast (WCAG AA passes).

Color values

HEX#3A1E8F
RGBrgb(58, 30, 143)
HSLhsl(255, 65%, 34%)
HSVhsv(255, 79%, 56%)
CMYKcmyk(59.4%, 79%, 0%, 43.9%)
CIE-LABlab(23.04, 42.97, -57.31)
CIE-LCHlch(23.04, 71.63, 306.86°)
OKLaboklab(35.58% 0.0444 -0.1651)
OKLCHoklch(35.58% 0.171 285.1)
XYZxyz(7.1656, 3.8108, 26.3392)
Luminance0.0381 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A1E8F #738F1E
analogous
#1E3B8F #3A1E8F #731E8F
triadic
#3A1E8F #8F3A1E #1E8F3A
tetradic
#3A1E8F #8F1E3B #738F1E #1E8F73
square
#3A1E8F #8F1E3B #738F1E #1E8F73
split-complementary
#3A1E8F #8F731E #3B8F1E
monochromatic
#11092A #25135C #3A1E8F #4F29C2 #704EDA

Accessibility & contrast

On white

11.92
#3A1E8F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.76
#3A1E8F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A1E8F
11.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A1E8F#FFFFFF#000000##FFFFFF
##3A1E8F1.0011.921.7611.92
#FFFFFF11.921.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A92
Deuteranopia (green-blind)
#00338D
Tritanopia (blue-blind)
#0A3F56
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #3a1e8f;
/* rgb */ color: rgb(58, 30, 143);
/* oklch */ color: oklch(35.6% 0.171 285.1);
Tailwind
colors: {
  custom: {
    50: '#7b5eb1',
    500: '#3a1e8f',
    950: '#000000',
  },
}
SCSS
$custom: #3a1e8f;
$custom-light: #7b5eb1;
$custom-dark: #000000;
JSON
{
  "hex": "#3a1e8f",
  "rgb": {
    "r": 58,
    "g": 30,
    "b": 143
  },
  "hsl": {
    "h": 254.867,
    "s": 65.318,
    "l": 33.922
  },
  "oklch": {
    "l": 0.3558,
    "c": 0.17099,
    "h": 285.1
  },
  "luminance": 0.03811
}

Semantic roles & 50–950 ramp

primary
#3A1E8F
secondary
#A1BC4C
accent
#E840BE
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #3A1E8F

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

Preview Lab → · Contrast checker → · Palette generator →

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