#3A207F#3A207F

#3A207F is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.2% C 0.149 H 288.4°. Best body text is #FFFFFF at 12.40:1 contrast (WCAG AA passes).

Color values

HEX#3A207F
RGBrgb(58, 32, 127)
HSLhsl(256, 60%, 31%)
HSVhsv(256, 75%, 50%)
CMYKcmyk(54.3%, 74.8%, 0%, 50.2%)
CIE-LABlab(21.82, 37.09, -49.28)
CIE-LCHlch(21.82, 61.68, 306.96°)
OKLaboklab(34.24% 0.0471 -0.1416)
OKLCHoklch(34.24% 0.149 288.4)
XYZxyz(6.0911, 3.4646, 20.4223)
Luminance0.0347 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A207F #657F20
analogous
#20357F #3A207F #69207F
triadic
#3A207F #7F3A20 #207F3A
tetradic
#3A207F #7F2035 #657F20 #207F69
square
#3A207F #7F2035 #657F20 #207F69
split-complementary
#3A207F #7F6920 #357F20
monochromatic
#0D071D #24144E #3A207F #502CB0 #6E48D1

Accessibility & contrast

On white

12.40
#3A207F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#3A207F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A207F
12.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A207F#FFFFFF#000000##FFFFFF
##3A207F1.0012.401.6912.40
#FFFFFF12.401.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003682
Deuteranopia (green-blind)
#00327D
Tritanopia (blue-blind)
#20394D
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #3a207f;
/* rgb */ color: rgb(58, 32, 127);
/* oklch */ color: oklch(34.2% 0.149 288.4);
Tailwind
colors: {
  custom: {
    50: '#785ea5',
    500: '#3a207f',
    950: '#000000',
  },
}
SCSS
$custom: #3a207f;
$custom-light: #785ea5;
$custom-dark: #000000;
JSON
{
  "hex": "#3a207f",
  "rgb": {
    "r": 58,
    "g": 32,
    "b": 127
  },
  "hsl": {
    "h": 256.421,
    "s": 59.748,
    "l": 31.176
  },
  "oklch": {
    "l": 0.3424,
    "c": 0.14928,
    "h": 288.4
  },
  "luminance": 0.03465
}

Semantic roles & 50–950 ramp

primary
#3A207F
secondary
#95B249
accent
#E345B8
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A040F
muted
#7C797F

Preview Lab

Preview with #3A207F

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

Preview Lab → · Contrast checker → · Palette generator →

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