#3A2587#3A2587

#3A2587 is a dark, vivid violet. Relative luminance 0.040; OKLCH L 35.7% C 0.154 H 285.5°. Best body text is #FFFFFF at 11.70:1 contrast (WCAG AA passes).

Color values

HEX#3A2587
RGBrgb(58, 37, 135)
HSLhsl(253, 57%, 34%)
HSVhsv(253, 73%, 53%)
CMYKcmyk(57%, 72.6%, 0%, 47.1%)
CIE-LABlab(23.58, 36.75, -51.44)
CIE-LCHlch(23.58, 63.22, 305.55°)
OKLaboklab(35.72% 0.0409 -0.148)
OKLCHoklch(35.72% 0.154 285.5)
XYZxyz(6.7783, 3.9716, 23.3264)
Luminance0.0397 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A2587 #728725
analogous
#254187 #3A2587 #6B2587
triadic
#3A2587 #873A25 #25873A
tetradic
#3A2587 #872541 #728725 #25876B
square
#3A2587 #872541 #728725 #25876B
split-complementary
#3A2587 #876B25 #418725
monochromatic
#110B27 #251857 #3A2587 #4F32B7 #7056D1

Accessibility & contrast

On white

11.70
#3A2587 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.79
#3A2587 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A2587
11.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A2587#FFFFFF#000000##FFFFFF
##3A25871.0011.701.7911.70
#FFFFFF11.701.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B8A
Deuteranopia (green-blind)
#003585
Tritanopia (blue-blind)
#173F53
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #3a2587;
/* rgb */ color: rgb(58, 37, 135);
/* oklch */ color: oklch(35.7% 0.154 285.5);
Tailwind
colors: {
  custom: {
    50: '#7961ab',
    500: '#3a2587',
    950: '#000000',
  },
}
SCSS
$custom: #3a2587;
$custom-light: #7961ab;
$custom-dark: #000000;
JSON
{
  "hex": "#3a2587",
  "rgb": {
    "r": 58,
    "g": 37,
    "b": 135
  },
  "hsl": {
    "h": 252.857,
    "s": 56.977,
    "l": 33.725
  },
  "oklch": {
    "l": 0.35723,
    "c": 0.15352,
    "h": 285.5
  },
  "luminance": 0.03972
}

Semantic roles & 50–950 ramp

primary
#3A2587
secondary
#A0B553
accent
#E048C0
background
#F7F5FA
surface
#EEEAF4
border
#C9C6CE
text
#0A0510
muted
#7C797F

Preview Lab

Preview with #3A2587

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

Preview Lab → · Contrast checker → · Palette generator →

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