#3A2089#3A2089

#3A2089 is a dark, vivid violet. Relative luminance 0.037; OKLCH L 35.2% C 0.162 H 286.0°. Best body text is #FFFFFF at 12.02:1 contrast (WCAG AA passes).

Color values

HEX#3A2089
RGBrgb(58, 32, 137)
HSLhsl(255, 62%, 33%)
HSVhsv(255, 77%, 54%)
CMYKcmyk(57.7%, 76.6%, 0%, 46.3%)
CIE-LABlab(22.79, 40.13, -53.98)
CIE-LCHlch(22.79, 67.27, 306.63°)
OKLaboklab(35.22% 0.0446 -0.1554)
OKLCHoklch(35.22% 0.162 286)
XYZxyz(6.7754, 3.7383, 24.0266)
Luminance0.0374 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A2089 #6F8920
analogous
#203A89 #3A2089 #6E2089
triadic
#3A2089 #893A20 #20893A
tetradic
#3A2089 #89203A #6F8920 #20896E
square
#3A2089 #89203A #6F8920 #20896E
split-complementary
#3A2089 #896E20 #3A8920
monochromatic
#100926 #251457 #3A2089 #4F2CBB #6F4ED6

Accessibility & contrast

On white

12.02
#3A2089 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3A2089
12.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A2089#FFFFFF#000000##FFFFFF
##3A20891.0012.021.7512.02
#FFFFFF12.021.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF12.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00398C
Deuteranopia (green-blind)
#003387
Tritanopia (blue-blind)
#153D53
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #3a2089;
/* rgb */ color: rgb(58, 32, 137);
/* oklch */ color: oklch(35.2% 0.162 286.0);
Tailwind
colors: {
  custom: {
    50: '#7a5fac',
    500: '#3a2089',
    950: '#000000',
  },
}
SCSS
$custom: #3a2089;
$custom-light: #7a5fac;
$custom-dark: #000000;
JSON
{
  "hex": "#3a2089",
  "rgb": {
    "r": 58,
    "g": 32,
    "b": 137
  },
  "hsl": {
    "h": 254.857,
    "s": 62.13,
    "l": 33.137
  },
  "oklch": {
    "l": 0.35222,
    "c": 0.16168,
    "h": 286
  },
  "luminance": 0.03739
}

Semantic roles & 50–950 ramp

primary
#3A2089
secondary
#9EB94C
accent
#E543BD
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0510
muted
#7C797F

Preview Lab

Preview with #3A2089

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

Preview Lab → · Contrast checker → · Palette generator →

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