#3A207C#3A207C

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

Color values

HEX#3A207C
RGBrgb(58, 32, 124)
HSLhsl(257, 59%, 31%)
HSVhsv(257, 74%, 49%)
CMYKcmyk(53.2%, 74.2%, 0%, 51.4%)
CIE-LABlab(21.53, 36.18, -47.84)
CIE-LCHlch(21.53, 59.98, 307.09°)
OKLaboklab(33.95% 0.0478 -0.1374)
OKLCHoklch(33.95% 0.146 289.2)
XYZxyz(5.8985, 3.3875, 19.4079)
Luminance0.0339 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A207C #627C20
analogous
#20347C #3A207C #68207C
triadic
#3A207C #7C3A20 #207C3A
tetradic
#3A207C #7C2034 #627C20 #207C68
square
#3A207C #7C2034 #627C20 #207C68
split-complementary
#3A207C #7C6820 #347C20
monochromatic
#0C071B #23134B #3A207C #512DAD #6E47CF

Accessibility & contrast

On white

12.52
#3A207C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3A207C
12.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A207C#FFFFFF#000000##FFFFFF
##3A207C1.0012.521.6812.52
#FFFFFF12.521.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00357F
Deuteranopia (green-blind)
#00317A
Tritanopia (blue-blind)
#22384C
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #3a207c;
/* rgb */ color: rgb(58, 32, 124);
/* oklch */ color: oklch(34.0% 0.145 289.2);
Tailwind
colors: {
  custom: {
    50: '#785ea3',
    500: '#3a207c',
    950: '#000000',
  },
}
SCSS
$custom: #3a207c;
$custom-light: #785ea3;
$custom-dark: #000000;
JSON
{
  "hex": "#3a207c",
  "rgb": {
    "r": 58,
    "g": 32,
    "b": 124
  },
  "hsl": {
    "h": 256.957,
    "s": 58.974,
    "l": 30.588
  },
  "oklch": {
    "l": 0.33953,
    "c": 0.1455,
    "h": 289.2
  },
  "luminance": 0.03388
}

Semantic roles & 50–950 ramp

primary
#3A207C
secondary
#92AF49
accent
#E246B6
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#09040F
muted
#7B797F

Preview Lab

Preview with #3A207C

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

Preview Lab → · Contrast checker → · Palette generator →

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