#3A1E9F#3A1E9F

#3A1E9F is a dark, vivid violet. Relative luminance 0.043; OKLCH L 37.3% C 0.190 H 282.0°. Best body text is #FFFFFF at 11.25:1 contrast (WCAG AA passes).

Color values

HEX#3A1E9F
RGBrgb(58, 30, 159)
HSLhsl(253, 68%, 37%)
HSVhsv(253, 81%, 62%)
CMYKcmyk(63.5%, 81.1%, 0%, 37.6%)
CIE-LABlab(24.74, 47.70, -64.36)
CIE-LCHlch(24.74, 80.11, 306.55°)
OKLaboklab(37.27% 0.0395 -0.1857)
OKLCHoklch(37.27% 0.19 282)
XYZxyz(8.4652, 4.3307, 33.1840)
Luminance0.0433 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A1E9F #839F1E
analogous
#1E439F #3A1E9F #7B1E9F
triadic
#3A1E9F #9F3A1E #1E9F3A
tetradic
#3A1E9F #9F1E43 #839F1E #1E9F7B
square
#3A1E9F #9F1E43 #839F1E #1E9F7B
split-complementary
#3A1E9F #9F7B1E #439F1E
monochromatic
#140B38 #27146C #3A1E9F #4D28D2 #7558DF

Accessibility & contrast

On white

11.25
#3A1E9F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.87
#3A1E9F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A1E9F
11.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A1E9F#FFFFFF#000000##FFFFFF
##3A1E9F1.0011.251.8711.25
#FFFFFF11.251.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003FA3
Deuteranopia (green-blind)
#00369D
Tritanopia (blue-blind)
#00455F
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #3a1e9f;
/* rgb */ color: rgb(58, 30, 159);
/* oklch */ color: oklch(37.3% 0.190 282.0);
Tailwind
colors: {
  custom: {
    50: '#7e5fbd',
    500: '#3a1e9f',
    950: '#000000',
  },
}
SCSS
$custom: #3a1e9f;
$custom-light: #7e5fbd;
$custom-dark: #000000;
JSON
{
  "hex": "#3a1e9f",
  "rgb": {
    "r": 58,
    "g": 30,
    "b": 159
  },
  "hsl": {
    "h": 253.023,
    "s": 68.254,
    "l": 37.059
  },
  "oklch": {
    "l": 0.37269,
    "c": 0.18982,
    "h": 282
  },
  "luminance": 0.04331
}

Semantic roles & 50–950 ramp

primary
#3A1E9F
secondary
#ABC356
accent
#EB3DC5
background
#F8F5FB
surface
#EFE9F7
border
#CAC5D0
text
#0B0512
muted
#7C7981

Preview Lab

Preview with #3A1E9F

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

Preview Lab → · Contrast checker → · Palette generator →

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