#3A208F#3A208F

#3A208F is a dark, vivid violet. Relative luminance 0.039; OKLCH L 35.8% C 0.169 H 284.7°. Best body text is #FFFFFF at 11.78:1 contrast (WCAG AA passes).

Color values

HEX#3A208F
RGBrgb(58, 32, 143)
HSLhsl(254, 63%, 34%)
HSVhsv(254, 78%, 56%)
CMYKcmyk(59.4%, 77.6%, 0%, 43.9%)
CIE-LABlab(23.39, 41.95, -56.73)
CIE-LCHlch(23.39, 70.56, 306.48°)
OKLaboklab(35.83% 0.043 -0.1634)
OKLCHoklch(35.83% 0.169 284.7)
XYZxyz(7.2178, 3.9153, 26.3567)
Luminance0.0392 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A208F #758F20
analogous
#203E8F #3A208F #72208F
triadic
#3A208F #8F3A20 #208F3A
tetradic
#3A208F #8F203E #758F20 #208F72
square
#3A208F #8F203E #758F20 #208F72
split-complementary
#3A208F #8F7220 #3E8F20
monochromatic
#110A2B #26155D #3A208F #4E2BC1 #7151D8

Accessibility & contrast

On white

11.78
#3A208F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.78
#3A208F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A208F
11.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A208F#FFFFFF#000000##FFFFFF
##3A208F1.0011.781.7811.78
#FFFFFF11.781.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B92
Deuteranopia (green-blind)
#00348D
Tritanopia (blue-blind)
#0A4056
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #3a208f;
/* rgb */ color: rgb(58, 32, 143);
/* oklch */ color: oklch(35.8% 0.169 284.7);
Tailwind
colors: {
  custom: {
    50: '#7b5fb1',
    500: '#3a208f',
    950: '#000000',
  },
}
SCSS
$custom: #3a208f;
$custom-light: #7b5fb1;
$custom-dark: #000000;
JSON
{
  "hex": "#3a208f",
  "rgb": {
    "r": 58,
    "g": 32,
    "b": 143
  },
  "hsl": {
    "h": 254.054,
    "s": 63.429,
    "l": 34.314
  },
  "oklch": {
    "l": 0.35828,
    "c": 0.169,
    "h": 284.7
  },
  "luminance": 0.03916
}

Semantic roles & 50–950 ramp

primary
#3A208F
secondary
#A2BB4F
accent
#E641C0
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0A0511
muted
#7C7980

Preview Lab

Preview with #3A208F

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

Preview Lab → · Contrast checker → · Palette generator →

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