#3A2295#3A2295

#3A2295 is a dark, vivid violet. Relative luminance 0.042; OKLCH L 36.7% C 0.174 H 283.2°. Best body text is #FFFFFF at 11.40:1 contrast (WCAG AA passes).

Color values

HEX#3A2295
RGBrgb(58, 34, 149)
HSLhsl(253, 63%, 36%)
HSVhsv(253, 77%, 58%)
CMYKcmyk(61.1%, 77.2%, 0%, 41.6%)
CIE-LABlab(24.36, 42.74, -58.84)
CIE-LCHlch(24.36, 72.73, 306.00°)
OKLaboklab(36.7% 0.0399 -0.1696)
OKLCHoklch(36.7% 0.174 283.2)
XYZxyz(7.7401, 4.2130, 28.8333)
Luminance0.0421 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A2295 #7D9522
analogous
#224395 #3A2295 #732295
triadic
#3A2295 #953A22 #22953A
tetradic
#3A2295 #952243 #7D9522 #229573
square
#3A2295 #952243 #7D9522 #229573
split-complementary
#3A2295 #957322 #439522
monochromatic
#130B31 #271763 #3A2295 #4D2DC7 #7358D9

Accessibility & contrast

On white

11.40
#3A2295 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.84
#3A2295 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A2295
11.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A2295#FFFFFF#000000##FFFFFF
##3A22951.0011.401.8411.40
#FFFFFF11.401.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D98
Deuteranopia (green-blind)
#003693
Tritanopia (blue-blind)
#00435A
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #3a2295;
/* rgb */ color: rgb(58, 34, 149);
/* oklch */ color: oklch(36.7% 0.174 283.2);
Tailwind
colors: {
  custom: {
    50: '#7c60b5',
    500: '#3a2295',
    950: '#000000',
  },
}
SCSS
$custom: #3a2295;
$custom-light: #7c60b5;
$custom-dark: #000000;
JSON
{
  "hex": "#3a2295",
  "rgb": {
    "r": 58,
    "g": 34,
    "b": 149
  },
  "hsl": {
    "h": 252.522,
    "s": 62.842,
    "l": 35.882
  },
  "oklch": {
    "l": 0.36695,
    "c": 0.17425,
    "h": 283.2
  },
  "luminance": 0.04214
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #3A2295

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

Preview Lab → · Contrast checker → · Palette generator →

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