#3A2183#3A2183

#3A2183 is a dark, vivid violet. Relative luminance 0.036; OKLCH L 34.8% C 0.153 H 287.2°. Best body text is #FFFFFF at 12.17:1 contrast (WCAG AA passes).

Color values

HEX#3A2183
RGBrgb(58, 33, 131)
HSLhsl(255, 60%, 32%)
HSVhsv(255, 75%, 51%)
CMYKcmyk(55.7%, 74.8%, 0%, 48.6%)
CIE-LABlab(22.39, 37.76, -50.86)
CIE-LCHlch(22.39, 63.35, 306.59°)
OKLaboklab(34.77% 0.0453 -0.1463)
OKLCHoklch(34.77% 0.153 287.2)
XYZxyz(6.3843, 3.6256, 21.8317)
Luminance0.0363 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A2183 #6A8321
analogous
#213983 #3A2183 #6B2183
triadic
#3A2183 #833A21 #21833A
tetradic
#3A2183 #832139 #6A8321 #21836B
square
#3A2183 #832139 #6A8321 #21836B
split-complementary
#3A2183 #836B21 #398321
monochromatic
#0F0821 #241552 #3A2183 #502DB4 #6E4CD2

Accessibility & contrast

On white

12.17
#3A2183 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3A2183
12.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A2183#FFFFFF#000000##FFFFFF
##3A21831.0012.171.7312.17
#FFFFFF12.171.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003886
Deuteranopia (green-blind)
#003381
Tritanopia (blue-blind)
#1C3B50
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #3a2183;
/* rgb */ color: rgb(58, 33, 131);
/* oklch */ color: oklch(34.8% 0.153 287.2);
Tailwind
colors: {
  custom: {
    50: '#795fa8',
    500: '#3a2183',
    950: '#000000',
  },
}
SCSS
$custom: #3a2183;
$custom-light: #795fa8;
$custom-dark: #000000;
JSON
{
  "hex": "#3a2183",
  "rgb": {
    "r": 58,
    "g": 33,
    "b": 131
  },
  "hsl": {
    "h": 255.306,
    "s": 59.756,
    "l": 32.157
  },
  "oklch": {
    "l": 0.34766,
    "c": 0.15312,
    "h": 287.2
  },
  "luminance": 0.03626
}

Semantic roles & 50–950 ramp

primary
#3A2183
secondary
#9AB54B
accent
#E345BB
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0510
muted
#7C797F

Preview Lab

Preview with #3A2183

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

Preview Lab → · Contrast checker → · Palette generator →

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