#3A208C#3A208C

#3A208C is a dark, vivid violet. Relative luminance 0.038; OKLCH L 35.5% C 0.165 H 285.4°. Best body text is #FFFFFF at 11.90:1 contrast (WCAG AA passes).

Color values

HEX#3A208C
RGBrgb(58, 32, 140)
HSLhsl(254, 63%, 34%)
HSVhsv(254, 77%, 55%)
CMYKcmyk(58.6%, 77.1%, 0%, 45.1%)
CIE-LABlab(23.09, 41.04, -55.36)
CIE-LCHlch(23.09, 68.92, 306.55°)
OKLaboklab(35.52% 0.0438 -0.1594)
OKLCHoklch(35.52% 0.165 285.4)
XYZxyz(6.9936, 3.8256, 25.1758)
Luminance0.0383 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A208C #728C20
analogous
#203C8C #3A208C #70208C
triadic
#3A208C #8C3A20 #208C3A
tetradic
#3A208C #8C203C #728C20 #208C70
square
#3A208C #8C203C #728C20 #208C70
split-complementary
#3A208C #8C7020 #3C8C20
monochromatic
#110928 #25155A #3A208C #4F2BBE #7050D7

Accessibility & contrast

On white

11.90
#3A208C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3A208C
11.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A208C#FFFFFF#000000##FFFFFF
##3A208C1.0011.901.7711.90
#FFFFFF11.901.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A8F
Deuteranopia (green-blind)
#00348A
Tritanopia (blue-blind)
#103E55
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #3a208c;
/* rgb */ color: rgb(58, 32, 140);
/* oklch */ color: oklch(35.5% 0.165 285.4);
Tailwind
colors: {
  custom: {
    50: '#7a5faf',
    500: '#3a208c',
    950: '#000000',
  },
}
SCSS
$custom: #3a208c;
$custom-light: #7a5faf;
$custom-dark: #000000;
JSON
{
  "hex": "#3a208c",
  "rgb": {
    "r": 58,
    "g": 32,
    "b": 140
  },
  "hsl": {
    "h": 254.444,
    "s": 62.791,
    "l": 33.725
  },
  "oklch": {
    "l": 0.35523,
    "c": 0.16535,
    "h": 285.4
  },
  "luminance": 0.03826
}

Semantic roles & 50–950 ramp

primary
#3A208C
secondary
#A0BA4E
accent
#E642BE
background
#F7F5FA
surface
#EEE9F5
border
#C9C5CF
text
#0A0510
muted
#7C797F

Preview Lab

Preview with #3A208C

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

Preview Lab → · Contrast checker → · Palette generator →

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