#3A2186#3A2186

#3A2186 is a dark, vivid violet. Relative luminance 0.037; OKLCH L 35.1% C 0.157 H 286.5°. Best body text is #FFFFFF at 12.06:1 contrast (WCAG AA passes).

Color values

HEX#3A2186
RGBrgb(58, 33, 134)
HSLhsl(255, 60%, 33%)
HSVhsv(255, 75%, 53%)
CMYKcmyk(56.7%, 75.4%, 0%, 47.5%)
CIE-LABlab(22.68, 38.68, -52.28)
CIE-LCHlch(22.68, 65.03, 306.50°)
OKLaboklab(35.06% 0.0446 -0.1504)
OKLCHoklch(35.06% 0.157 286.5)
XYZxyz(6.5906, 3.7081, 22.9181)
Luminance0.0371 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A2186 #6D8621
analogous
#213B86 #3A2186 #6C2186
triadic
#3A2186 #863A21 #21863A
tetradic
#3A2186 #86213B #6D8621 #21866C
square
#3A2186 #86213B #6D8621 #21866C
split-complementary
#3A2186 #866C21 #3B8621
monochromatic
#0F0924 #251555 #3A2186 #4F2DB7 #6F4ED3

Accessibility & contrast

On white

12.06
#3A2186 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#3A2186 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A2186
12.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A2186#FFFFFF#000000##FFFFFF
##3A21861.0012.061.7412.06
#FFFFFF12.061.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003989
Deuteranopia (green-blind)
#003384
Tritanopia (blue-blind)
#183D51
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #3a2186;
/* rgb */ color: rgb(58, 33, 134);
/* oklch */ color: oklch(35.1% 0.157 286.5);
Tailwind
colors: {
  custom: {
    50: '#795faa',
    500: '#3a2186',
    950: '#000000',
  },
}
SCSS
$custom: #3a2186;
$custom-light: #795faa;
$custom-dark: #000000;
JSON
{
  "hex": "#3a2186",
  "rgb": {
    "r": 58,
    "g": 33,
    "b": 134
  },
  "hsl": {
    "h": 254.851,
    "s": 60.479,
    "l": 32.745
  },
  "oklch": {
    "l": 0.35058,
    "c": 0.15688,
    "h": 286.5
  },
  "luminance": 0.03708
}

Semantic roles & 50–950 ramp

primary
#3A2186
secondary
#9CB74C
accent
#E444BC
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0510
muted
#7C797F

Preview Lab

Preview with #3A2186

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

Preview Lab → · Contrast checker → · Palette generator →

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