#3A1689#3A1689

#3A1689 is a dark, vivid violet. Relative luminance 0.033; OKLCH L 34.1% C 0.171 H 287.6°. Best body text is #FFFFFF at 12.68:1 contrast (WCAG AA passes).

Color values

HEX#3A1689
RGBrgb(58, 22, 137)
HSLhsl(259, 72%, 31%)
HSVhsv(259, 84%, 54%)
CMYKcmyk(57.7%, 83.9%, 0%, 46.3%)
CIE-LABlab(21.13, 44.91, -56.71)
CIE-LCHlch(21.13, 72.34, 308.38°)
OKLaboklab(34.07% 0.0516 -0.1633)
OKLCHoklch(34.07% 0.171 287.6)
XYZxyz(6.5458, 3.2791, 23.9501)
Luminance0.0328 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A1689 #658916
analogous
#162B89 #3A1689 #731689
triadic
#3A1689 #893A16 #16893A
tetradic
#3A1689 #89162B #658916 #168973
square
#3A1689 #89162B #658916 #168973
split-complementary
#3A1689 #897316 #2B8916
monochromatic
#0D0520 #240E54 #3A1689 #501EBE #6E3ADF

Accessibility & contrast

On white

12.68
#3A1689 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#3A1689 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A1689
12.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A1689#FFFFFF#000000##FFFFFF
##3A16891.0012.681.6612.68
#FFFFFF12.681.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00358C
Deuteranopia (green-blind)
#003087
Tritanopia (blue-blind)
#163951
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #3a1689;
/* rgb */ color: rgb(58, 22, 137);
/* oklch */ color: oklch(34.1% 0.171 287.6);
Tailwind
colors: {
  custom: {
    50: '#7b59ad',
    500: '#3a1689',
    950: '#000000',
  },
}
SCSS
$custom: #3a1689;
$custom-light: #7b59ad;
$custom-dark: #000000;
JSON
{
  "hex": "#3a1689",
  "rgb": {
    "r": 58,
    "g": 22,
    "b": 137
  },
  "hsl": {
    "h": 258.783,
    "s": 72.327,
    "l": 31.176
  },
  "oklch": {
    "l": 0.34067,
    "c": 0.17125,
    "h": 287.6
  },
  "luminance": 0.0328
}

Semantic roles & 50–950 ramp

primary
#3A1689
secondary
#95BD3E
accent
#EF39B6
background
#F8F5FA
surface
#EFE9F4
border
#CAC5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #3A1689

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

Preview Lab → · Contrast checker → · Palette generator →

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