#3A1885#3A1885

#3A1885 is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.9% C 0.165 H 288.3°. Best body text is #FFFFFF at 12.73:1 contrast (WCAG AA passes).

Color values

HEX#3A1885
RGBrgb(58, 24, 133)
HSLhsl(259, 69%, 31%)
HSVhsv(259, 82%, 52%)
CMYKcmyk(56.4%, 82%, 0%, 47.8%)
CIE-LABlab(21.00, 42.90, -54.41)
CIE-LCHlch(21.00, 69.29, 308.25°)
OKLaboklab(33.85% 0.0518 -0.1566)
OKLCHoklch(33.85% 0.165 288.3)
XYZxyz(6.3039, 3.2459, 22.4801)
Luminance0.0325 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A1885 #638518
analogous
#182C85 #3A1885 #701885
triadic
#3A1885 #853A18 #18853A
tetradic
#3A1885 #85182C #638518 #188570
square
#3A1885 #85182C #638518 #188570
split-complementary
#3A1885 #857018 #2C8518
monochromatic
#0D051D #230F51 #3A1885 #5121B9 #6E3CDC

Accessibility & contrast

On white

12.73
#3A1885 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#3A1885 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A1885
12.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A1885#FFFFFF#000000##FFFFFF
##3A18851.0012.731.6512.73
#FFFFFF12.731.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003588
Deuteranopia (green-blind)
#003083
Tritanopia (blue-blind)
#1A384F
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #3a1885;
/* rgb */ color: rgb(58, 24, 133);
/* oklch */ color: oklch(33.9% 0.165 288.3);
Tailwind
colors: {
  custom: {
    50: '#7a5aaa',
    500: '#3a1885',
    950: '#000000',
  },
}
SCSS
$custom: #3a1885;
$custom-light: #7a5aaa;
$custom-dark: #000000;
JSON
{
  "hex": "#3a1885",
  "rgb": {
    "r": 58,
    "g": 24,
    "b": 133
  },
  "hsl": {
    "h": 258.716,
    "s": 69.427,
    "l": 30.784
  },
  "oklch": {
    "l": 0.33852,
    "c": 0.1649,
    "h": 288.3
  },
  "luminance": 0.03246
}

Semantic roles & 50–950 ramp

primary
#3A1885
secondary
#93B940
accent
#EC3CB5
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #3A1885

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

Preview Lab → · Contrast checker → · Palette generator →

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