#3A1A89#3A1A89

#3A1A89 is a dark, vivid violet. Relative luminance 0.034; OKLCH L 34.5% C 0.168 H 287.0°. Best body text is #FFFFFF at 12.43:1 contrast (WCAG AA passes).

Color values

HEX#3A1A89
RGBrgb(58, 26, 137)
HSLhsl(257, 68%, 32%)
HSVhsv(257, 81%, 54%)
CMYKcmyk(57.7%, 81%, 0%, 46.3%)
CIE-LABlab(21.74, 43.13, -55.70)
CIE-LCHlch(21.74, 70.45, 307.75°)
OKLaboklab(34.49% 0.0491 -0.1604)
OKLCHoklch(34.49% 0.168 287)
XYZxyz(6.6283, 3.4441, 23.9776)
Luminance0.0344 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A1A89 #69891A
analogous
#1A3289 #3A1A89 #721A89
triadic
#3A1A89 #893A1A #1A893A
tetradic
#3A1A89 #891A32 #69891A #1A8972
square
#3A1A89 #891A32 #69891A #1A8972
split-complementary
#3A1A89 #89721A #32891A
monochromatic
#0E0622 #241056 #3A1A89 #5024BC #6E42DB

Accessibility & contrast

On white

12.43
#3A1A89 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#3A1A89 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A1A89
12.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A1A89#FFFFFF#000000##FFFFFF
##3A1A891.0012.431.6912.43
#FFFFFF12.431.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00378C
Deuteranopia (green-blind)
#003187
Tritanopia (blue-blind)
#153B52
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #3a1a89;
/* rgb */ color: rgb(58, 26, 137);
/* oklch */ color: oklch(34.5% 0.168 287.0);
Tailwind
colors: {
  custom: {
    50: '#7a5bad',
    500: '#3a1a89',
    950: '#000000',
  },
}
SCSS
$custom: #3a1a89;
$custom-light: #7a5bad;
$custom-dark: #000000;
JSON
{
  "hex": "#3a1a89",
  "rgb": {
    "r": 58,
    "g": 26,
    "b": 137
  },
  "hsl": {
    "h": 257.297,
    "s": 68.098,
    "l": 31.961
  },
  "oklch": {
    "l": 0.34491,
    "c": 0.1677,
    "h": 287
  },
  "luminance": 0.03444
}

Semantic roles & 50–950 ramp

primary
#3A1A89
secondary
#99BC43
accent
#EB3DB9
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #3A1A89

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

Preview Lab → · Contrast checker → · Palette generator →

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