#3A209F#3A209F

#3A209F is a dark, vivid violet. Relative luminance 0.044; OKLCH L 37.5% C 0.188 H 281.8°. Best body text is #FFFFFF at 11.13:1 contrast (WCAG AA passes).

Color values

HEX#3A209F
RGBrgb(58, 32, 159)
HSLhsl(252, 66%, 37%)
HSVhsv(252, 80%, 62%)
CMYKcmyk(63.5%, 79.9%, 0%, 37.6%)
CIE-LABlab(25.06, 46.76, -63.82)
CIE-LCHlch(25.06, 79.12, 306.23°)
OKLaboklab(37.49% 0.0383 -0.1841)
OKLCHoklch(37.49% 0.188 281.8)
XYZxyz(8.5175, 4.4351, 33.2014)
Luminance0.0444 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A209F #859F20
analogous
#20469F #3A209F #79209F
triadic
#3A209F #9F3A20 #209F3A
tetradic
#3A209F #9F2046 #859F20 #209F79
square
#3A209F #9F2046 #859F20 #209F79
split-complementary
#3A209F #9F7920 #469F20
monochromatic
#150B39 #27166C #3A209F #4D2AD2 #765BDE

Accessibility & contrast

On white

11.13
#3A209F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.89
#3A209F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A209F
11.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A209F#FFFFFF#000000##FFFFFF
##3A209F1.0011.131.8911.13
#FFFFFF11.131.0021.001.00
#0000001.8921.001.0021.00
##FFFFFF11.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0040A3
Deuteranopia (green-blind)
#00379D
Tritanopia (blue-blind)
#00465F
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #3a209f;
/* rgb */ color: rgb(58, 32, 159);
/* oklch */ color: oklch(37.5% 0.188 281.8);
Tailwind
colors: {
  custom: {
    50: '#7e60bd',
    500: '#3a209f',
    950: '#000000',
  },
}
SCSS
$custom: #3a209f;
$custom-light: #7e60bd;
$custom-dark: #000000;
JSON
{
  "hex": "#3a209f",
  "rgb": {
    "r": 58,
    "g": 32,
    "b": 159
  },
  "hsl": {
    "h": 252.283,
    "s": 66.492,
    "l": 37.451
  },
  "oklch": {
    "l": 0.37495,
    "c": 0.18808,
    "h": 281.8
  },
  "luminance": 0.04436
}

Semantic roles & 50–950 ramp

primary
#3A209F
secondary
#ADC259
accent
#E93EC6
background
#F8F5FB
surface
#EFEAF7
border
#CAC6D0
text
#0B0512
muted
#7C7981

Preview Lab

Preview with #3A209F

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

Preview Lab → · Contrast checker → · Palette generator →

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