#3A208D#3A208D

#3A208D is a dark, vivid violet. Relative luminance 0.039; OKLCH L 35.6% C 0.167 H 285.2°. Best body text is #FFFFFF at 11.86:1 contrast (WCAG AA passes).

Color values

HEX#3A208D
RGBrgb(58, 32, 141)
HSLhsl(254, 63%, 34%)
HSVhsv(254, 77%, 55%)
CMYKcmyk(58.9%, 77.3%, 0%, 44.7%)
CIE-LABlab(23.19, 41.35, -55.82)
CIE-LCHlch(23.19, 69.47, 306.53°)
OKLaboklab(35.62% 0.0436 -0.1608)
OKLCHoklch(35.62% 0.167 285.2)
XYZxyz(7.0677, 3.8552, 25.5658)
Luminance0.0386 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A208D #738D20
analogous
#203D8D #3A208D #71208D
triadic
#3A208D #8D3A20 #208D3A
tetradic
#3A208D #8D203D #738D20 #208D71
square
#3A208D #8D203D #738D20 #208D71
split-complementary
#3A208D #8D7120 #3D8D20
monochromatic
#110929 #25155B #3A208D #4F2BBF #7050D7

Accessibility & contrast

On white

11.86
#3A208D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.77
#3A208D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A208D
11.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A208D#FFFFFF#000000##FFFFFF
##3A208D1.0011.861.7711.86
#FFFFFF11.861.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A90
Deuteranopia (green-blind)
#00348B
Tritanopia (blue-blind)
#0E3F55
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #3a208d;
/* rgb */ color: rgb(58, 32, 141);
/* oklch */ color: oklch(35.6% 0.167 285.2);
Tailwind
colors: {
  custom: {
    50: '#7b5faf',
    500: '#3a208d',
    950: '#000000',
  },
}
SCSS
$custom: #3a208d;
$custom-light: #7b5faf;
$custom-dark: #000000;
JSON
{
  "hex": "#3a208d",
  "rgb": {
    "r": 58,
    "g": 32,
    "b": 141
  },
  "hsl": {
    "h": 254.312,
    "s": 63.006,
    "l": 33.922
  },
  "oklch": {
    "l": 0.35624,
    "c": 0.16657,
    "h": 285.2
  },
  "luminance": 0.03856
}

Semantic roles & 50–950 ramp

primary
#3A208D
secondary
#A1BA4E
accent
#E642BF
background
#F7F5FA
surface
#EEE9F5
border
#C9C5CF
text
#0A0511
muted
#7C7980

Preview Lab

Preview with #3A208D

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

Preview Lab → · Contrast checker → · Palette generator →

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