#3A2387#3A2387

#3A2387 is a dark, vivid violet. Relative luminance 0.039; OKLCH L 35.4% C 0.156 H 285.9°. Best body text is #FFFFFF at 11.86:1 contrast (WCAG AA passes).

Color values

HEX#3A2387
RGBrgb(58, 35, 135)
HSLhsl(254, 59%, 33%)
HSVhsv(254, 74%, 53%)
CMYKcmyk(57%, 74.1%, 0%, 47.1%)
CIE-LABlab(23.17, 37.89, -52.10)
CIE-LCHlch(23.17, 64.42, 306.02°)
OKLaboklab(35.43% 0.0427 -0.1499)
OKLCHoklch(35.43% 0.156 285.9)
XYZxyz(6.7178, 3.8505, 23.3062)
Luminance0.0385 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A2387 #708723
analogous
#233E87 #3A2387 #6C2387
triadic
#3A2387 #873A23 #23873A
tetradic
#3A2387 #87233E #708723 #23876C
square
#3A2387 #87233E #708723 #23876C
split-complementary
#3A2387 #876C23 #3E8723
monochromatic
#100A26 #251656 #3A2387 #4F30B8 #7052D2

Accessibility & contrast

On white

11.86
#3A2387 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.77
#3A2387 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A2387
11.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A2387#FFFFFF#000000##FFFFFF
##3A23871.0011.861.7711.86
#FFFFFF11.861.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A8A
Deuteranopia (green-blind)
#003485
Tritanopia (blue-blind)
#173E53
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #3a2387;
/* rgb */ color: rgb(58, 35, 135);
/* oklch */ color: oklch(35.4% 0.156 285.9);
Tailwind
colors: {
  custom: {
    50: '#7960ab',
    500: '#3a2387',
    950: '#000000',
  },
}
SCSS
$custom: #3a2387;
$custom-light: #7960ab;
$custom-dark: #000000;
JSON
{
  "hex": "#3a2387",
  "rgb": {
    "r": 58,
    "g": 35,
    "b": 135
  },
  "hsl": {
    "h": 253.8,
    "s": 58.824,
    "l": 33.333
  },
  "oklch": {
    "l": 0.35434,
    "c": 0.15586,
    "h": 285.9
  },
  "luminance": 0.03851
}

Semantic roles & 50–950 ramp

primary
#3A2387
secondary
#9EB650
accent
#E246BE
background
#F7F5FA
surface
#EEEAF4
border
#C9C6CE
text
#0A0510
muted
#7C797F

Preview Lab

Preview with #3A2387

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

Preview Lab → · Contrast checker → · Palette generator →

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