#3A2175#3A2175

#3A2175 is a dark, vivid violet. Relative luminance 0.033; OKLCH L 33.4% C 0.135 H 290.9°. Best body text is #FFFFFF at 12.69:1 contrast (WCAG AA passes).

Color values

HEX#3A2175
RGBrgb(58, 33, 117)
HSLhsl(258, 56%, 29%)
HSVhsv(258, 72%, 46%)
CMYKcmyk(50.4%, 71.8%, 0%, 54.1%)
CIE-LABlab(21.10, 33.47, -44.08)
CIE-LCHlch(21.10, 55.35, 307.21°)
OKLaboklab(33.45% 0.0483 -0.1264)
OKLCHoklch(33.45% 0.135 290.9)
XYZxyz(5.4988, 3.2714, 17.1679)
Luminance0.0327 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A2175 #5C7521
analogous
#213275 #3A2175 #642175
triadic
#3A2175 #753A21 #21753A
tetradic
#3A2175 #752132 #5C7521 #217564
square
#3A2175 #752132 #5C7521 #217564
split-complementary
#3A2175 #756421 #327521
monochromatic
#0C0718 #221445 #3A2175 #522EA5 #6D46CB

Accessibility & contrast

On white

12.69
#3A2175 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3A2175
12.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A2175#FFFFFF#000000##FFFFFF
##3A21751.0012.691.6512.69
#FFFFFF12.691.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003478
Deuteranopia (green-blind)
#003173
Tritanopia (blue-blind)
#273648
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #3a2175;
/* rgb */ color: rgb(58, 33, 117);
/* oklch */ color: oklch(33.4% 0.135 290.9);
Tailwind
colors: {
  custom: {
    50: '#765e9d',
    500: '#3a2175',
    950: '#000000',
  },
}
SCSS
$custom: #3a2175;
$custom-light: #765e9d;
$custom-dark: #000000;
JSON
{
  "hex": "#3a2175",
  "rgb": {
    "r": 58,
    "g": 33,
    "b": 117
  },
  "hsl": {
    "h": 257.857,
    "s": 56,
    "l": 29.412
  },
  "oklch": {
    "l": 0.33447,
    "c": 0.13528,
    "h": 290.9
  },
  "luminance": 0.03272
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #3A2175

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

Preview Lab → · Contrast checker → · Palette generator →

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