#3A208B#3A208B

#3A208B is a dark, vivid violet. Relative luminance 0.038; OKLCH L 35.4% C 0.164 H 285.6°. Best body text is #FFFFFF at 11.94:1 contrast (WCAG AA passes).

Color values

HEX#3A208B
RGBrgb(58, 32, 139)
HSLhsl(255, 63%, 34%)
HSVhsv(255, 77%, 55%)
CMYKcmyk(58.3%, 77%, 0%, 45.5%)
CIE-LABlab(22.99, 40.74, -54.91)
CIE-LCHlch(22.99, 68.37, 306.58°)
OKLaboklab(35.42% 0.0441 -0.1581)
OKLCHoklch(35.42% 0.164 285.6)
XYZxyz(6.9202, 3.7962, 24.7892)
Luminance0.0380 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A208B #718B20
analogous
#203C8B #3A208B #6F208B
triadic
#3A208B #8B3A20 #208B3A
tetradic
#3A208B #8B203C #718B20 #208B6F
square
#3A208B #8B203C #718B20 #208B6F
split-complementary
#3A208B #8B6F20 #3C8B20
monochromatic
#100928 #251559 #3A208B #4F2BBD #704FD6

Accessibility & contrast

On white

11.94
#3A208B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.76
#3A208B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A208B
11.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A208B#FFFFFF#000000##FFFFFF
##3A208B1.0011.941.7611.94
#FFFFFF11.941.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A8E
Deuteranopia (green-blind)
#003489
Tritanopia (blue-blind)
#123E54
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #3a208b;
/* rgb */ color: rgb(58, 32, 139);
/* oklch */ color: oklch(35.4% 0.164 285.6);
Tailwind
colors: {
  custom: {
    50: '#7a5fae',
    500: '#3a208b',
    950: '#000000',
  },
}
SCSS
$custom: #3a208b;
$custom-light: #7a5fae;
$custom-dark: #000000;
JSON
{
  "hex": "#3a208b",
  "rgb": {
    "r": 58,
    "g": 32,
    "b": 139
  },
  "hsl": {
    "h": 254.579,
    "s": 62.573,
    "l": 33.529
  },
  "oklch": {
    "l": 0.35422,
    "c": 0.16413,
    "h": 285.6
  },
  "luminance": 0.03797
}

Semantic roles & 50–950 ramp

primary
#3A208B
secondary
#9FBA4D
accent
#E642BE
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0510
muted
#7C797F

Preview Lab

Preview with #3A208B

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

Preview Lab → · Contrast checker → · Palette generator →

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