#3A2087#3A2087

#3A2087 is a dark, vivid violet. Relative luminance 0.037; OKLCH L 35.0% C 0.159 H 286.5°. Best body text is #FFFFFF at 12.09:1 contrast (WCAG AA passes).

Color values

HEX#3A2087
RGBrgb(58, 32, 135)
HSLhsl(255, 62%, 33%)
HSVhsv(255, 76%, 53%)
CMYKcmyk(57%, 76.3%, 0%, 47.1%)
CIE-LABlab(22.59, 39.52, -53.06)
CIE-LCHlch(22.59, 66.16, 306.68°)
OKLaboklab(35.02% 0.0452 -0.1527)
OKLCHoklch(35.02% 0.159 286.5)
XYZxyz(6.6333, 3.6815, 23.2780)
Luminance0.0368 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A2087 #6D8720
analogous
#203987 #3A2087 #6E2087
triadic
#3A2087 #873A20 #20873A
tetradic
#3A2087 #872039 #6D8720 #20876E
square
#3A2087 #872039 #6D8720 #20876E
split-complementary
#3A2087 #876E20 #398720
monochromatic
#0F0924 #251456 #3A2087 #4F2CB8 #6F4DD5

Accessibility & contrast

On white

12.09
#3A2087 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#3A2087 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A2087
12.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A2087#FFFFFF#000000##FFFFFF
##3A20871.0012.091.7412.09
#FFFFFF12.091.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00398A
Deuteranopia (green-blind)
#003385
Tritanopia (blue-blind)
#173C52
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #3a2087;
/* rgb */ color: rgb(58, 32, 135);
/* oklch */ color: oklch(35.0% 0.159 286.5);
Tailwind
colors: {
  custom: {
    50: '#795eab',
    500: '#3a2087',
    950: '#000000',
  },
}
SCSS
$custom: #3a2087;
$custom-light: #795eab;
$custom-dark: #000000;
JSON
{
  "hex": "#3a2087",
  "rgb": {
    "r": 58,
    "g": 32,
    "b": 135
  },
  "hsl": {
    "h": 255.146,
    "s": 61.677,
    "l": 32.745
  },
  "oklch": {
    "l": 0.35023,
    "c": 0.15923,
    "h": 286.5
  },
  "luminance": 0.03682
}

Semantic roles & 50–950 ramp

primary
#3A2087
secondary
#9CB84B
accent
#E543BC
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0510
muted
#7C797F

Preview Lab

Preview with #3A2087

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

Preview Lab → · Contrast checker → · Palette generator →

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