#3A1E9B#3A1E9B

#3A1E9B is a dark, vivid violet. Relative luminance 0.042; OKLCH L 36.8% C 0.185 H 282.7°. Best body text is #FFFFFF at 11.42:1 contrast (WCAG AA passes).

Color values

HEX#3A1E9B
RGBrgb(58, 30, 155)
HSLhsl(253, 68%, 36%)
HSVhsv(253, 81%, 61%)
CMYKcmyk(62.6%, 80.6%, 0%, 39.2%)
CIE-LABlab(24.30, 46.53, -62.63)
CIE-LCHlch(24.30, 78.02, 306.61°)
OKLaboklab(36.84% 0.0407 -0.1806)
OKLCHoklch(36.84% 0.185 282.7)
XYZxyz(8.1237, 4.1941, 31.3854)
Luminance0.0420 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A1E9B #7F9B1E
analogous
#1E419B #3A1E9B #791E9B
triadic
#3A1E9B #9B3A1E #1E9B3A
tetradic
#3A1E9B #9B1E41 #7F9B1E #1E9B79
square
#3A1E9B #9B1E41 #7F9B1E #1E9B79
split-complementary
#3A1E9B #9B791E #419B1E
monochromatic
#140A34 #271468 #3A1E9B #4D28CE #7455DE

Accessibility & contrast

On white

11.42
#3A1E9B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.84
#3A1E9B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A1E9B
11.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A1E9B#FFFFFF#000000##FFFFFF
##3A1E9B1.0011.421.8411.42
#FFFFFF11.421.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E9E
Deuteranopia (green-blind)
#003599
Tritanopia (blue-blind)
#00445D
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #3a1e9b;
/* rgb */ color: rgb(58, 30, 155);
/* oklch */ color: oklch(36.8% 0.185 282.7);
Tailwind
colors: {
  custom: {
    50: '#7d5fba',
    500: '#3a1e9b',
    950: '#000000',
  },
}
SCSS
$custom: #3a1e9b;
$custom-light: #7d5fba;
$custom-dark: #000000;
JSON
{
  "hex": "#3a1e9b",
  "rgb": {
    "r": 58,
    "g": 30,
    "b": 155
  },
  "hsl": {
    "h": 253.44,
    "s": 67.568,
    "l": 36.275
  },
  "oklch": {
    "l": 0.36841,
    "c": 0.18516,
    "h": 282.7
  },
  "luminance": 0.04195
}

Semantic roles & 50–950 ramp

primary
#3A1E9B
secondary
#A9C253
accent
#EA3DC4
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0512
muted
#7C7981

Preview Lab

Preview with #3A1E9B

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

Preview Lab → · Contrast checker → · Palette generator →

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