#3A2174#3A2174

#3A2174 is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.4% C 0.134 H 291.2°. Best body text is #FFFFFF at 12.73:1 contrast (WCAG AA passes).

Color values

HEX#3A2174
RGBrgb(58, 33, 116)
HSLhsl(258, 56%, 29%)
HSVhsv(258, 72%, 45%)
CMYKcmyk(50%, 71.6%, 0%, 54.5%)
CIE-LABlab(21.01, 33.16, -43.59)
CIE-LCHlch(21.01, 54.77, 307.27°)
OKLaboklab(33.36% 0.0485 -0.1249)
OKLCHoklch(33.36% 0.134 291.2)
XYZxyz(5.4403, 3.2480, 16.8599)
Luminance0.0325 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A2174 #5B7421
analogous
#213274 #3A2174 #642174
triadic
#3A2174 #743A21 #21743A
tetradic
#3A2174 #742132 #5B7421 #217464
square
#3A2174 #742132 #5B7421 #217464
split-complementary
#3A2174 #746421 #327421
monochromatic
#0C0718 #221344 #3A2174 #522FA4 #6D45CA

Accessibility & contrast

On white

12.73
#3A2174 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#3A2174 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A2174
12.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A2174#FFFFFF#000000##FFFFFF
##3A21741.0012.731.6512.73
#FFFFFF12.731.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003477
Deuteranopia (green-blind)
#003172
Tritanopia (blue-blind)
#273647
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #3a2174;
/* rgb */ color: rgb(58, 33, 116);
/* oklch */ color: oklch(33.4% 0.134 291.2);
Tailwind
colors: {
  custom: {
    50: '#765e9d',
    500: '#3a2174',
    950: '#000000',
  },
}
SCSS
$custom: #3a2174;
$custom-light: #765e9d;
$custom-dark: #000000;
JSON
{
  "hex": "#3a2174",
  "rgb": {
    "r": 58,
    "g": 33,
    "b": 116
  },
  "hsl": {
    "h": 258.072,
    "s": 55.705,
    "l": 29.216
  },
  "oklch": {
    "l": 0.33356,
    "c": 0.13399,
    "h": 291.2
  },
  "luminance": 0.03248
}

Semantic roles & 50–950 ramp

primary
#3A2174
secondary
#8BA749
accent
#DF49B2
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09040E
muted
#7B797E

Preview Lab

Preview with #3A2174

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

Preview Lab → · Contrast checker → · Palette generator →

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