#3A207D#3A207D

#3A207D is a dark, vivid violet. Relative luminance 0.034; OKLCH L 34.0% C 0.147 H 288.9°. Best body text is #FFFFFF at 12.48:1 contrast (WCAG AA passes).

Color values

HEX#3A207D
RGBrgb(58, 32, 125)
HSLhsl(257, 59%, 31%)
HSVhsv(257, 74%, 49%)
CMYKcmyk(53.6%, 74.4%, 0%, 51%)
CIE-LABlab(21.63, 36.48, -48.33)
CIE-LCHlch(21.63, 60.55, 307.05°)
OKLaboklab(34.05% 0.0476 -0.1388)
OKLCHoklch(34.05% 0.147 288.9)
XYZxyz(5.9620, 3.4130, 19.7427)
Luminance0.0341 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A207D #637D20
analogous
#20347D #3A207D #68207D
triadic
#3A207D #7D3A20 #207D3A
tetradic
#3A207D #7D2034 #637D20 #207D68
square
#3A207D #7D2034 #637D20 #207D68
split-complementary
#3A207D #7D6820 #347D20
monochromatic
#0D071C #23144C #3A207D #512CAE #6E47D0

Accessibility & contrast

On white

12.48
#3A207D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#3A207D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A207D
12.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A207D#FFFFFF#000000##FFFFFF
##3A207D1.0012.481.6812.48
#FFFFFF12.481.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003680
Deuteranopia (green-blind)
#00317B
Tritanopia (blue-blind)
#21394C
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #3a207d;
/* rgb */ color: rgb(58, 32, 125);
/* oklch */ color: oklch(34.0% 0.147 288.9);
Tailwind
colors: {
  custom: {
    50: '#785ea4',
    500: '#3a207d',
    950: '#000000',
  },
}
SCSS
$custom: #3a207d;
$custom-light: #785ea4;
$custom-dark: #000000;
JSON
{
  "hex": "#3a207d",
  "rgb": {
    "r": 58,
    "g": 32,
    "b": 125
  },
  "hsl": {
    "h": 256.774,
    "s": 59.236,
    "l": 30.784
  },
  "oklch": {
    "l": 0.34048,
    "c": 0.14675,
    "h": 288.9
  },
  "luminance": 0.03413
}

Semantic roles & 50–950 ramp

primary
#3A207D
secondary
#93B049
accent
#E245B7
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#09040F
muted
#7B797F

Preview Lab

Preview with #3A207D

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

Preview Lab → · Contrast checker → · Palette generator →

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