#3A2086#3A2086

#3A2086 is a dark, vivid violet. Relative luminance 0.037; OKLCH L 34.9% C 0.158 H 286.7°. Best body text is #FFFFFF at 12.13:1 contrast (WCAG AA passes).

Color values

HEX#3A2086
RGBrgb(58, 32, 134)
HSLhsl(255, 61%, 33%)
HSVhsv(255, 76%, 53%)
CMYKcmyk(56.7%, 76.1%, 0%, 47.5%)
CIE-LABlab(22.49, 39.22, -52.59)
CIE-LCHlch(22.49, 65.61, 306.72°)
OKLaboklab(34.92% 0.0454 -0.1513)
OKLCHoklch(34.92% 0.158 286.7)
XYZxyz(6.5632, 3.6534, 22.9090)
Luminance0.0365 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A2086 #6C8620
analogous
#203986 #3A2086 #6D2086
triadic
#3A2086 #863A20 #20863A
tetradic
#3A2086 #862039 #6C8620 #20866D
square
#3A2086 #862039 #6C8620 #20866D
split-complementary
#3A2086 #866D20 #398620
monochromatic
#0F0823 #251455 #3A2086 #4F2CB7 #6F4CD4

Accessibility & contrast

On white

12.13
#3A2086 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#3A2086 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A2086
12.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A2086#FFFFFF#000000##FFFFFF
##3A20861.0012.131.7312.13
#FFFFFF12.131.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.131.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #3a2086;
/* rgb */ color: rgb(58, 32, 134);
/* oklch */ color: oklch(34.9% 0.158 286.7);
Tailwind
colors: {
  custom: {
    50: '#795eaa',
    500: '#3a2086',
    950: '#000000',
  },
}
SCSS
$custom: #3a2086;
$custom-light: #795eaa;
$custom-dark: #000000;
JSON
{
  "hex": "#3a2086",
  "rgb": {
    "r": 58,
    "g": 32,
    "b": 134
  },
  "hsl": {
    "h": 255.294,
    "s": 61.446,
    "l": 32.549
  },
  "oklch": {
    "l": 0.34924,
    "c": 0.15799,
    "h": 286.7
  },
  "luminance": 0.03654
}

Semantic roles & 50–950 ramp

primary
#3A2086
secondary
#9BB74B
accent
#E543BB
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0510
muted
#7C797F

Preview Lab

Preview with #3A2086

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

Preview Lab → · Contrast checker → · Palette generator →

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