#3A2296#3A2296

#3A2296 is a dark, vivid violet. Relative luminance 0.042; OKLCH L 36.8% C 0.175 H 283.1°. Best body text is #FFFFFF at 11.36:1 contrast (WCAG AA passes).

Color values

HEX#3A2296
RGBrgb(58, 34, 150)
HSLhsl(252, 63%, 36%)
HSVhsv(252, 77%, 59%)
CMYKcmyk(61.3%, 77.3%, 0%, 41.2%)
CIE-LABlab(24.47, 43.05, -59.29)
CIE-LCHlch(24.47, 73.27, 305.98°)
OKLaboklab(36.8% 0.0397 -0.1709)
OKLCHoklch(36.8% 0.175 283.1)
XYZxyz(7.8203, 4.2451, 29.2555)
Luminance0.0425 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A2296 #7E9622
analogous
#224496 #3A2296 #742296
triadic
#3A2296 #963A22 #22963A
tetradic
#3A2296 #962244 #7E9622 #229674
square
#3A2296 #962244 #7E9622 #229674
split-complementary
#3A2296 #967422 #449622
monochromatic
#130B32 #271764 #3A2296 #4D2DC8 #7459D9

Accessibility & contrast

On white

11.36
#3A2296 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.85
#3A2296 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A2296
11.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A2296#FFFFFF#000000##FFFFFF
##3A22961.0011.361.8511.36
#FFFFFF11.361.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E99
Deuteranopia (green-blind)
#003694
Tritanopia (blue-blind)
#00435B
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #3a2296;
/* rgb */ color: rgb(58, 34, 150);
/* oklch */ color: oklch(36.8% 0.175 283.1);
Tailwind
colors: {
  custom: {
    50: '#7c60b6',
    500: '#3a2296',
    950: '#000000',
  },
}
SCSS
$custom: #3a2296;
$custom-light: #7c60b6;
$custom-dark: #000000;
JSON
{
  "hex": "#3a2296",
  "rgb": {
    "r": 58,
    "g": 34,
    "b": 150
  },
  "hsl": {
    "h": 252.414,
    "s": 63.043,
    "l": 36.078
  },
  "oklch": {
    "l": 0.36797,
    "c": 0.17546,
    "h": 283.1
  },
  "luminance": 0.04246
}

Semantic roles & 50–950 ramp

primary
#3A2296
secondary
#A8BE56
accent
#E642C4
background
#F8F5FB
surface
#EFEAF6
border
#CAC6D0
text
#0B0511
muted
#7C7980

Preview Lab

Preview with #3A2296

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

Preview Lab → · Contrast checker → · Palette generator →

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