#3A2391#3A2391

#3A2391 is a dark, vivid violet. Relative luminance 0.041; OKLCH L 36.4% C 0.168 H 283.8°. Best body text is #FFFFFF at 11.48:1 contrast (WCAG AA passes).

Color values

HEX#3A2391
RGBrgb(58, 35, 145)
HSLhsl(253, 61%, 35%)
HSVhsv(253, 76%, 57%)
CMYKcmyk(60%, 75.9%, 0%, 43.1%)
CIE-LABlab(24.15, 40.98, -56.73)
CIE-LCHlch(24.15, 69.98, 305.85°)
OKLaboklab(36.42% 0.0402 -0.1635)
OKLCHoklch(36.42% 0.168 283.8)
XYZxyz(7.4552, 4.1455, 27.1899)
Luminance0.0415 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A2391 #7A9123
analogous
#234391 #3A2391 #712391
triadic
#3A2391 #913A23 #23913A
tetradic
#3A2391 #912343 #7A9123 #239171
square
#3A2391 #912343 #7A9123 #239171
split-complementary
#3A2391 #917123 #439123
monochromatic
#130B2E #261760 #3A2391 #4E2FC2 #7258D7

Accessibility & contrast

On white

11.48
#3A2391 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.83
#3A2391 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A2391
11.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A2391#FFFFFF#000000##FFFFFF
##3A23911.0011.481.8311.48
#FFFFFF11.481.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D94
Deuteranopia (green-blind)
#00368F
Tritanopia (blue-blind)
#044258
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #3a2391;
/* rgb */ color: rgb(58, 35, 145);
/* oklch */ color: oklch(36.4% 0.168 283.8);
Tailwind
colors: {
  custom: {
    50: '#7b61b2',
    500: '#3a2391',
    950: '#000000',
  },
}
SCSS
$custom: #3a2391;
$custom-light: #7b61b2;
$custom-dark: #000000;
JSON
{
  "hex": "#3a2391",
  "rgb": {
    "r": 58,
    "g": 35,
    "b": 145
  },
  "hsl": {
    "h": 252.545,
    "s": 61.111,
    "l": 35.294
  },
  "oklch": {
    "l": 0.36421,
    "c": 0.16833,
    "h": 283.8
  },
  "luminance": 0.04146
}

Semantic roles & 50–950 ramp

primary
#3A2391
secondary
#A6BB55
accent
#E444C3
background
#F8F5FB
surface
#EFEAF6
border
#CAC6D0
text
#0A0511
muted
#7C7980

Preview Lab

Preview with #3A2391

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

Preview Lab → · Contrast checker → · Palette generator →

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