#3A1E90#3A1E90

#3A1E90 is a dark, vivid violet. Relative luminance 0.038; OKLCH L 35.7% C 0.172 H 284.8°. Best body text is #FFFFFF at 11.88:1 contrast (WCAG AA passes).

Color values

HEX#3A1E90
RGBrgb(58, 30, 144)
HSLhsl(255, 66%, 34%)
HSVhsv(255, 79%, 56%)
CMYKcmyk(59.7%, 79.2%, 0%, 43.5%)
CIE-LABlab(23.14, 43.26, -57.76)
CIE-LCHlch(23.14, 72.17, 306.83°)
OKLaboklab(35.68% 0.0441 -0.1664)
OKLCHoklch(35.68% 0.172 284.8)
XYZxyz(7.2417, 3.8413, 26.7400)
Luminance0.0384 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A1E90 #74901E
analogous
#1E3B90 #3A1E90 #731E90
triadic
#3A1E90 #903A1E #1E903A
tetradic
#3A1E90 #901E3B #74901E #1E9073
square
#3A1E90 #901E3B #74901E #1E9073
split-complementary
#3A1E90 #90731E #3B901E
monochromatic
#11092B #26135D #3A1E90 #4E29C3 #714EDA

Accessibility & contrast

On white

11.88
#3A1E90 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.77
#3A1E90 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A1E90
11.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A1E90#FFFFFF#000000##FFFFFF
##3A1E901.0011.881.7711.88
#FFFFFF11.881.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A93
Deuteranopia (green-blind)
#00348E
Tritanopia (blue-blind)
#073F56
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #3a1e90;
/* rgb */ color: rgb(58, 30, 144);
/* oklch */ color: oklch(35.7% 0.172 284.8);
Tailwind
colors: {
  custom: {
    50: '#7b5eb2',
    500: '#3a1e90',
    950: '#000000',
  },
}
SCSS
$custom: #3a1e90;
$custom-light: #7b5eb2;
$custom-dark: #000000;
JSON
{
  "hex": "#3a1e90",
  "rgb": {
    "r": 58,
    "g": 30,
    "b": 144
  },
  "hsl": {
    "h": 254.737,
    "s": 65.517,
    "l": 34.118
  },
  "oklch": {
    "l": 0.35684,
    "c": 0.17218,
    "h": 284.8
  },
  "luminance": 0.03842
}

Semantic roles & 50–950 ramp

primary
#3A1E90
secondary
#A1BD4D
accent
#E83FBF
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #3A1E90

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

Preview Lab → · Contrast checker → · Palette generator →

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