#3A207A#3A207A

#3A207A is a dark, vivid violet. Relative luminance 0.033; OKLCH L 33.8% C 0.143 H 289.7°. Best body text is #FFFFFF at 12.59:1 contrast (WCAG AA passes).

Color values

HEX#3A207A
RGBrgb(58, 32, 122)
HSLhsl(257, 58%, 30%)
HSVhsv(257, 74%, 48%)
CMYKcmyk(52.5%, 73.8%, 0%, 52.2%)
CIE-LABlab(21.35, 35.56, -46.87)
CIE-LCHlch(21.35, 58.84, 307.19°)
OKLaboklab(33.76% 0.0483 -0.1346)
OKLCHoklch(33.76% 0.143 289.7)
XYZxyz(5.7733, 3.3375, 18.7486)
Luminance0.0334 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A207A #607A20
analogous
#20337A #3A207A #67207A
triadic
#3A207A #7A3A20 #207A3A
tetradic
#3A207A #7A2033 #607A20 #207A67
square
#3A207A #7A2033 #607A20 #207A67
split-complementary
#3A207A #7A6720 #337A20
monochromatic
#0C0719 #23134A #3A207A #512DAA #6D46CE

Accessibility & contrast

On white

12.59
#3A207A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3A207A
12.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A207A#FFFFFF#000000##FFFFFF
##3A207A1.0012.591.6712.59
#FFFFFF12.591.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00357D
Deuteranopia (green-blind)
#003178
Tritanopia (blue-blind)
#23374A
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #3a207a;
/* rgb */ color: rgb(58, 32, 122);
/* oklch */ color: oklch(33.8% 0.143 289.7);
Tailwind
colors: {
  custom: {
    50: '#775ea1',
    500: '#3a207a',
    950: '#000000',
  },
}
SCSS
$custom: #3a207a;
$custom-light: #775ea1;
$custom-dark: #000000;
JSON
{
  "hex": "#3a207a",
  "rgb": {
    "r": 58,
    "g": 32,
    "b": 122
  },
  "hsl": {
    "h": 257.333,
    "s": 58.442,
    "l": 30.196
  },
  "oklch": {
    "l": 0.33764,
    "c": 0.14297,
    "h": 289.7
  },
  "luminance": 0.03338
}

Semantic roles & 50–950 ramp

primary
#3A207A
secondary
#90AD49
accent
#E246B5
background
#F7F5FA
surface
#EEE9F3
border
#C9C5CD
text
#09040F
muted
#7B797F

Preview Lab

Preview with #3A207A

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

Preview Lab → · Contrast checker → · Palette generator →

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