#3A1B9D#3A1B9D

#3A1B9D is a dark, vivid violet. Relative luminance 0.041; OKLCH L 36.7% C 0.190 H 282.7°. Best body text is #FFFFFF at 11.52:1 contrast (WCAG AA passes).

Color values

HEX#3A1B9D
RGBrgb(58, 27, 157)
HSLhsl(254, 71%, 36%)
HSVhsv(254, 83%, 62%)
CMYKcmyk(63.1%, 82.8%, 0%, 38.4%)
CIE-LABlab(24.05, 48.47, -64.26)
CIE-LCHlch(24.05, 80.49, 307.03°)
OKLaboklab(36.73% 0.0417 -0.1853)
OKLCHoklch(36.73% 0.19 282.7)
XYZxyz(8.2208, 4.1171, 32.2532)
Luminance0.0412 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A1B9D #7E9D1B
analogous
#1B3D9D #3A1B9D #7B1B9D
triadic
#3A1B9D #9D3A1B #1B9D3A
tetradic
#3A1B9D #9D1B3D #7E9D1B #1B9D7B
square
#3A1B9D #9D1B3D #7E9D1B #1B9D7B
split-complementary
#3A1B9D #9D7B1B #3D9D1B
monochromatic
#130935 #271269 #3A1B9D #4D24D1 #7451E1

Accessibility & contrast

On white

11.52
#3A1B9D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.82
#3A1B9D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A1B9D
11.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A1B9D#FFFFFF#000000##FFFFFF
##3A1B9D1.0011.521.8211.52
#FFFFFF11.521.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003DA1
Deuteranopia (green-blind)
#00359B
Tritanopia (blue-blind)
#00435D
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #3a1b9d;
/* rgb */ color: rgb(58, 27, 157);
/* oklch */ color: oklch(36.7% 0.190 282.7);
Tailwind
colors: {
  custom: {
    50: '#7e5dbb',
    500: '#3a1b9d',
    950: '#000000',
  },
}
SCSS
$custom: #3a1b9d;
$custom-light: #7e5dbb;
$custom-dark: #000000;
JSON
{
  "hex": "#3a1b9d",
  "rgb": {
    "r": 58,
    "g": 27,
    "b": 157
  },
  "hsl": {
    "h": 254.308,
    "s": 70.652,
    "l": 36.078
  },
  "oklch": {
    "l": 0.36734,
    "c": 0.18999,
    "h": 282.7
  },
  "luminance": 0.04118
}

Semantic roles & 50–950 ramp

primary
#3A1B9D
secondary
#A8C450
accent
#ED3AC3
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0412
muted
#7C7981

Preview Lab

Preview with #3A1B9D

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

Preview Lab → · Contrast checker → · Palette generator →

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