#3A2185#3A2185

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

Color values

HEX#3A2185
RGBrgb(58, 33, 133)
HSLhsl(255, 60%, 33%)
HSVhsv(255, 75%, 52%)
CMYKcmyk(56.4%, 75.2%, 0%, 47.8%)
CIE-LABlab(22.59, 38.38, -51.81)
CIE-LCHlch(22.59, 64.47, 306.53°)
OKLaboklab(34.96% 0.0448 -0.149)
OKLCHoklch(34.96% 0.156 286.7)
XYZxyz(6.5212, 3.6804, 22.5525)
Luminance0.0368 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A2185 #6C8521
analogous
#213A85 #3A2185 #6C2185
triadic
#3A2185 #853A21 #21853A
tetradic
#3A2185 #85213A #6C8521 #21856C
square
#3A2185 #85213A #6C8521 #21856C
split-complementary
#3A2185 #856C21 #3A8521
monochromatic
#0F0923 #251554 #3A2185 #4F2DB6 #6F4DD3

Accessibility & contrast

On white

12.10
#3A2185 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3A2185
12.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A2185#FFFFFF#000000##FFFFFF
##3A21851.0012.101.7412.10
#FFFFFF12.101.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003888
Deuteranopia (green-blind)
#003383
Tritanopia (blue-blind)
#1A3C51
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #3a2185;
/* rgb */ color: rgb(58, 33, 133);
/* oklch */ color: oklch(35.0% 0.156 286.7);
Tailwind
colors: {
  custom: {
    50: '#795fa9',
    500: '#3a2185',
    950: '#000000',
  },
}
SCSS
$custom: #3a2185;
$custom-light: #795fa9;
$custom-dark: #000000;
JSON
{
  "hex": "#3a2185",
  "rgb": {
    "r": 58,
    "g": 33,
    "b": 133
  },
  "hsl": {
    "h": 255,
    "s": 60.241,
    "l": 32.549
  },
  "oklch": {
    "l": 0.3496,
    "c": 0.15563,
    "h": 286.7
  },
  "luminance": 0.03681
}

Semantic roles & 50–950 ramp

primary
#3A2185
secondary
#9BB64C
accent
#E344BC
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0510
muted
#7C797F

Preview Lab

Preview with #3A2185

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

Preview Lab → · Contrast checker → · Palette generator →

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