#3A1B92#3A1B92

#3A1B92 is a dark, vivid violet. Relative luminance 0.038; OKLCH L 35.5% C 0.177 H 284.8°. Best body text is #FFFFFF at 11.99:1 contrast (WCAG AA passes).

Color values

HEX#3A1B92
RGBrgb(58, 27, 146)
HSLhsl(256, 69%, 34%)
HSVhsv(256, 82%, 57%)
CMYKcmyk(60.3%, 81.5%, 0%, 42.7%)
CIE-LABlab(22.86, 45.28, -59.47)
CIE-LCHlch(22.86, 74.75, 307.29°)
OKLaboklab(35.55% 0.0454 -0.1714)
OKLCHoklch(35.55% 0.177 284.8)
XYZxyz(7.3236, 3.7583, 27.5281)
Luminance0.0376 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A1B92 #73921B
analogous
#1B3892 #3A1B92 #761B92
triadic
#3A1B92 #923A1B #1B923A
tetradic
#3A1B92 #921B38 #73921B #1B9276
square
#3A1B92 #921B38 #73921B #1B9276
split-complementary
#3A1B92 #92761B #38921B
monochromatic
#11082B #25115E #3A1B92 #4F25C6 #704ADE

Accessibility & contrast

On white

11.99
#3A1B92 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#3A1B92 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A1B92
11.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A1B92#FFFFFF#000000##FFFFFF
##3A1B921.0011.991.7511.99
#FFFFFF11.991.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF11.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A95
Deuteranopia (green-blind)
#003390
Tritanopia (blue-blind)
#033F57
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #3a1b92;
/* rgb */ color: rgb(58, 27, 146);
/* oklch */ color: oklch(35.5% 0.177 284.8);
Tailwind
colors: {
  custom: {
    50: '#7c5cb3',
    500: '#3a1b92',
    950: '#000000',
  },
}
SCSS
$custom: #3a1b92;
$custom-light: #7c5cb3;
$custom-dark: #000000;
JSON
{
  "hex": "#3a1b92",
  "rgb": {
    "r": 58,
    "g": 27,
    "b": 146
  },
  "hsl": {
    "h": 255.63,
    "s": 68.786,
    "l": 33.922
  },
  "oklch": {
    "l": 0.35549,
    "c": 0.17731,
    "h": 284.8
  },
  "luminance": 0.03759
}

Semantic roles & 50–950 ramp

primary
#3A1B92
secondary
#A1BF49
accent
#EC3CBE
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0411
muted
#7C7980

Preview Lab

Preview with #3A1B92

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

Preview Lab → · Contrast checker → · Palette generator →

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