#3A2987#3A2987

#3A2987 is a dark, vivid violet. Relative luminance 0.042; OKLCH L 36.3% C 0.149 H 284.5°. Best body text is #FFFFFF at 11.37:1 contrast (WCAG AA passes).

Color values

HEX#3A2987
RGBrgb(58, 41, 135)
HSLhsl(251, 53%, 35%)
HSVhsv(251, 70%, 53%)
CMYKcmyk(57%, 69.6%, 0%, 47.1%)
CIE-LABlab(24.43, 34.41, -50.04)
CIE-LCHlch(24.43, 60.72, 304.51°)
OKLaboklab(36.33% 0.0372 -0.1439)
OKLCHoklch(36.33% 0.149 284.5)
XYZxyz(6.9097, 4.2343, 23.3702)
Luminance0.0423 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A2987 #768729
analogous
#294787 #3A2987 #692987
triadic
#3A2987 #873A29 #29873A
tetradic
#3A2987 #872947 #768729 #298769
square
#3A2987 #872947 #768729 #298769
split-complementary
#3A2987 #876929 #478729
monochromatic
#120C29 #261B58 #3A2987 #4E37B6 #715DCE

Accessibility & contrast

On white

11.37
#3A2987 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.85
#3A2987 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A2987
11.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A2987#FFFFFF#000000##FFFFFF
##3A29871.0011.371.8511.37
#FFFFFF11.371.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D8A
Deuteranopia (green-blind)
#003785
Tritanopia (blue-blind)
#164154
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #3a2987;
/* rgb */ color: rgb(58, 41, 135);
/* oklch */ color: oklch(36.3% 0.149 284.5);
Tailwind
colors: {
  custom: {
    50: '#7964ab',
    500: '#3a2987',
    950: '#000000',
  },
}
SCSS
$custom: #3a2987;
$custom-light: #7964ab;
$custom-dark: #000000;
JSON
{
  "hex": "#3a2987",
  "rgb": {
    "r": 58,
    "g": 41,
    "b": 135
  },
  "hsl": {
    "h": 250.851,
    "s": 53.409,
    "l": 34.51
  },
  "oklch": {
    "l": 0.36334,
    "c": 0.14862,
    "h": 284.5
  },
  "luminance": 0.04235
}

Semantic roles & 50–950 ramp

primary
#3A2987
secondary
#A3B359
accent
#DD4BC2
background
#F7F6FA
surface
#EEEBF4
border
#C9C6CE
text
#0A0510
muted
#7C7A7F

Preview Lab

Preview with #3A2987

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

Preview Lab → · Contrast checker → · Palette generator →

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