#3A207B#3A207B

#3A207B is a dark, vivid violet. Relative luminance 0.034; OKLCH L 33.9% C 0.144 H 289.5°. Best body text is #FFFFFF at 12.56:1 contrast (WCAG AA passes).

Color values

HEX#3A207B
RGBrgb(58, 32, 123)
HSLhsl(257, 59%, 30%)
HSVhsv(257, 74%, 48%)
CMYKcmyk(52.8%, 74%, 0%, 51.8%)
CIE-LABlab(21.44, 35.87, -47.36)
CIE-LCHlch(21.44, 59.41, 307.14°)
OKLaboklab(33.86% 0.0481 -0.136)
OKLCHoklch(33.86% 0.144 289.5)
XYZxyz(5.8356, 3.3624, 19.0766)
Luminance0.0336 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A207B #617B20
analogous
#20337B #3A207B #67207B
triadic
#3A207B #7B3A20 #207B3A
tetradic
#3A207B #7B2033 #617B20 #207B67
square
#3A207B #7B2033 #617B20 #207B67
split-complementary
#3A207B #7B6720 #337B20
monochromatic
#0C071A #23134A #3A207B #512DAC #6D46CF

Accessibility & contrast

On white

12.56
#3A207B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#3A207B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A207B
12.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A207B#FFFFFF#000000##FFFFFF
##3A207B1.0012.561.6712.56
#FFFFFF12.561.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00357E
Deuteranopia (green-blind)
#003179
Tritanopia (blue-blind)
#23384B
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #3a207b;
/* rgb */ color: rgb(58, 32, 123);
/* oklch */ color: oklch(33.9% 0.144 289.5);
Tailwind
colors: {
  custom: {
    50: '#775ea2',
    500: '#3a207b',
    950: '#000000',
  },
}
SCSS
$custom: #3a207b;
$custom-light: #775ea2;
$custom-dark: #000000;
JSON
{
  "hex": "#3a207b",
  "rgb": {
    "r": 58,
    "g": 32,
    "b": 123
  },
  "hsl": {
    "h": 257.143,
    "s": 58.71,
    "l": 30.392
  },
  "oklch": {
    "l": 0.33858,
    "c": 0.14423,
    "h": 289.5
  },
  "luminance": 0.03363
}

Semantic roles & 50–950 ramp

primary
#3A207B
secondary
#91AE49
accent
#E246B5
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#09040F
muted
#7B797F

Preview Lab

Preview with #3A207B

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

Preview Lab → · Contrast checker → · Palette generator →

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