#3A208A#3A208A

#3A208A is a dark, vivid violet. Relative luminance 0.038; OKLCH L 35.3% C 0.163 H 285.8°. Best body text is #FFFFFF at 11.98:1 contrast (WCAG AA passes).

Color values

HEX#3A208A
RGBrgb(58, 32, 138)
HSLhsl(255, 62%, 33%)
HSVhsv(255, 77%, 54%)
CMYKcmyk(58%, 76.8%, 0%, 45.9%)
CIE-LABlab(22.89, 40.44, -54.45)
CIE-LCHlch(22.89, 67.82, 306.60°)
OKLaboklab(35.32% 0.0444 -0.1567)
OKLCHoklch(35.32% 0.163 285.8)
XYZxyz(6.8475, 3.7671, 24.4061)
Luminance0.0377 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A208A #708A20
analogous
#203B8A #3A208A #6F208A
triadic
#3A208A #8A3A20 #208A3A
tetradic
#3A208A #8A203B #708A20 #208A6F
square
#3A208A #8A203B #708A20 #208A6F
split-complementary
#3A208A #8A6F20 #3B8A20
monochromatic
#100927 #251458 #3A208A #4F2CBC #704ED6

Accessibility & contrast

On white

11.98
#3A208A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#3A208A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A208A
11.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A208A#FFFFFF#000000##FFFFFF
##3A208A1.0011.981.7511.98
#FFFFFF11.981.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF11.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00398D
Deuteranopia (green-blind)
#003388
Tritanopia (blue-blind)
#133E53
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #3a208a;
/* rgb */ color: rgb(58, 32, 138);
/* oklch */ color: oklch(35.3% 0.163 285.8);
Tailwind
colors: {
  custom: {
    50: '#7a5fad',
    500: '#3a208a',
    950: '#000000',
  },
}
SCSS
$custom: #3a208a;
$custom-light: #7a5fad;
$custom-dark: #000000;
JSON
{
  "hex": "#3a208a",
  "rgb": {
    "r": 58,
    "g": 32,
    "b": 138
  },
  "hsl": {
    "h": 254.717,
    "s": 62.353,
    "l": 33.333
  },
  "oklch": {
    "l": 0.35322,
    "c": 0.16291,
    "h": 285.8
  },
  "luminance": 0.03768
}

Semantic roles & 50–950 ramp

primary
#3A208A
secondary
#9EB94D
accent
#E542BD
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0510
muted
#7C797F

Preview Lab

Preview with #3A208A

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

Preview Lab → · Contrast checker → · Palette generator →

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