#3A1988#3A1988

#3A1988 is a dark, vivid violet. Relative luminance 0.034; OKLCH L 34.3% C 0.167 H 287.4°. Best body text is #FFFFFF at 12.54:1 contrast (WCAG AA passes).

Color values

HEX#3A1988
RGBrgb(58, 25, 136)
HSLhsl(258, 69%, 32%)
HSVhsv(258, 82%, 53%)
CMYKcmyk(57.4%, 81.6%, 0%, 46.7%)
CIE-LABlab(21.48, 43.30, -55.51)
CIE-LCHlch(21.48, 70.41, 307.96°)
OKLaboklab(34.28% 0.0501 -0.1598)
OKLCHoklch(34.28% 0.167 287.4)
XYZxyz(6.5352, 3.3720, 23.5943)
Luminance0.0337 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A1988 #678819
analogous
#193088 #3A1988 #721988
triadic
#3A1988 #883A19 #19883A
tetradic
#3A1988 #881930 #678819 #198872
square
#3A1988 #881930 #678819 #198872
split-complementary
#3A1988 #887219 #308819
monochromatic
#0E0621 #240F54 #3A1988 #5023BC #6E40DC

Accessibility & contrast

On white

12.54
#3A1988 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#3A1988 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A1988
12.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A1988#FFFFFF#000000##FFFFFF
##3A19881.0012.541.6712.54
#FFFFFF12.541.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00368B
Deuteranopia (green-blind)
#003086
Tritanopia (blue-blind)
#173A51
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #3a1988;
/* rgb */ color: rgb(58, 25, 136);
/* oklch */ color: oklch(34.3% 0.167 287.4);
Tailwind
colors: {
  custom: {
    50: '#7a5bac',
    500: '#3a1988',
    950: '#000000',
  },
}
SCSS
$custom: #3a1988;
$custom-light: #7a5bac;
$custom-dark: #000000;
JSON
{
  "hex": "#3a1988",
  "rgb": {
    "r": 58,
    "g": 25,
    "b": 136
  },
  "hsl": {
    "h": 257.838,
    "s": 68.944,
    "l": 31.569
  },
  "oklch": {
    "l": 0.34275,
    "c": 0.16747,
    "h": 287.4
  },
  "luminance": 0.03372
}

Semantic roles & 50–950 ramp

primary
#3A1988
secondary
#97BB41
accent
#EC3CB8
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #3A1988

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

Preview Lab → · Contrast checker → · Palette generator →

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