#3A207E#3A207E

#3A207E is a dark, vivid violet. Relative luminance 0.034; OKLCH L 34.1% C 0.148 H 288.7°. Best body text is #FFFFFF at 12.44:1 contrast (WCAG AA passes).

Color values

HEX#3A207E
RGBrgb(58, 32, 126)
HSLhsl(257, 59%, 31%)
HSVhsv(257, 75%, 49%)
CMYKcmyk(54%, 74.6%, 0%, 50.6%)
CIE-LABlab(21.72, 36.78, -48.81)
CIE-LCHlch(21.72, 61.12, 307.00°)
OKLaboklab(34.14% 0.0474 -0.1402)
OKLCHoklch(34.14% 0.148 288.7)
XYZxyz(6.0262, 3.4386, 20.0808)
Luminance0.0344 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A207E #647E20
analogous
#20357E #3A207E #69207E
triadic
#3A207E #7E3A20 #207E3A
tetradic
#3A207E #7E2035 #647E20 #207E69
square
#3A207E #7E2035 #647E20 #207E69
split-complementary
#3A207E #7E6920 #357E20
monochromatic
#0D071C #24144D #3A207E #502CAF #6E48D0

Accessibility & contrast

On white

12.44
#3A207E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3A207E
12.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A207E#FFFFFF#000000##FFFFFF
##3A207E1.0012.441.6912.44
#FFFFFF12.441.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.441.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #3a207e;
/* rgb */ color: rgb(58, 32, 126);
/* oklch */ color: oklch(34.1% 0.148 288.7);
Tailwind
colors: {
  custom: {
    50: '#785ea4',
    500: '#3a207e',
    950: '#000000',
  },
}
SCSS
$custom: #3a207e;
$custom-light: #785ea4;
$custom-dark: #000000;
JSON
{
  "hex": "#3a207e",
  "rgb": {
    "r": 58,
    "g": 32,
    "b": 126
  },
  "hsl": {
    "h": 256.596,
    "s": 59.494,
    "l": 30.98
  },
  "oklch": {
    "l": 0.34144,
    "c": 0.14801,
    "h": 288.7
  },
  "luminance": 0.03439
}

Semantic roles & 50–950 ramp

primary
#3A207E
secondary
#94B149
accent
#E345B7
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A040F
muted
#7C797F

Preview Lab

Preview with #3A207E

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

Preview Lab → · Contrast checker → · Palette generator →

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