#3A2199#3A2199

#3A2199 is a dark, vivid violet. Relative luminance 0.043; OKLCH L 37.0% C 0.180 H 282.7°. Best body text is #FFFFFF at 11.31:1 contrast (WCAG AA passes).

Color values

HEX#3A2199
RGBrgb(58, 33, 153)
HSLhsl(253, 65%, 36%)
HSVhsv(253, 78%, 60%)
CMYKcmyk(62.1%, 78.4%, 0%, 40%)
CIE-LABlab(24.60, 44.47, -60.92)
CIE-LCHlch(24.60, 75.42, 306.13°)
OKLaboklab(36.98% 0.0395 -0.1757)
OKLCHoklch(36.98% 0.18 282.7)
XYZxyz(8.0368, 4.2866, 30.5347)
Luminance0.0429 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A2199 #809921
analogous
#214499 #3A2199 #762199
triadic
#3A2199 #993A21 #21993A
tetradic
#3A2199 #992144 #809921 #219976
square
#3A2199 #992144 #809921 #219976
split-complementary
#3A2199 #997621 #449921
monochromatic
#140B34 #271667 #3A2199 #4D2CCB #7459DB

Accessibility & contrast

On white

11.31
#3A2199 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.86
#3A2199 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A2199
11.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A2199#FFFFFF#000000##FFFFFF
##3A21991.0011.311.8611.31
#FFFFFF11.311.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E9C
Deuteranopia (green-blind)
#003697
Tritanopia (blue-blind)
#00445C
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #3a2199;
/* rgb */ color: rgb(58, 33, 153);
/* oklch */ color: oklch(37.0% 0.180 282.7);
Tailwind
colors: {
  custom: {
    50: '#7d60b8',
    500: '#3a2199',
    950: '#000000',
  },
}
SCSS
$custom: #3a2199;
$custom-light: #7d60b8;
$custom-dark: #000000;
JSON
{
  "hex": "#3a2199",
  "rgb": {
    "r": 58,
    "g": 33,
    "b": 153
  },
  "hsl": {
    "h": 252.5,
    "s": 64.516,
    "l": 36.471
  },
  "oklch": {
    "l": 0.36983,
    "c": 0.18005,
    "h": 282.7
  },
  "luminance": 0.04287
}

Semantic roles & 50–950 ramp

primary
#3A2199
secondary
#A9BF56
accent
#E840C5
background
#F8F5FB
surface
#EFEAF6
border
#CAC6D0
text
#0B0512
muted
#7C7981

Preview Lab

Preview with #3A2199

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

Preview Lab → · Contrast checker → · Palette generator →

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