#3A1B94#3A1B94

#3A1B94 is a dark, vivid violet. Relative luminance 0.038; OKLCH L 35.8% C 0.180 H 284.4°. Best body text is #FFFFFF at 11.90:1 contrast (WCAG AA passes).

Color values

HEX#3A1B94
RGBrgb(58, 27, 148)
HSLhsl(255, 69%, 34%)
HSVhsv(255, 82%, 58%)
CMYKcmyk(60.8%, 81.8%, 0%, 42%)
CIE-LABlab(23.07, 45.87, -60.35)
CIE-LCHlch(23.07, 75.80, 307.23°)
OKLaboklab(35.76% 0.0448 -0.174)
OKLCHoklch(35.76% 0.18 284.4)
XYZxyz(7.4805, 3.8210, 28.3546)
Luminance0.0382 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A1B94 #75941B
analogous
#1B3994 #3A1B94 #771B94
triadic
#3A1B94 #943A1B #1B943A
tetradic
#3A1B94 #941B39 #75941B #1B9477
square
#3A1B94 #941B39 #75941B #1B9477
split-complementary
#3A1B94 #94771B #39941B
monochromatic
#11082C #261260 #3A1B94 #4E24C8 #714BDE

Accessibility & contrast

On white

11.90
#3A1B94 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.76
#3A1B94 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A1B94
11.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A1B94#FFFFFF#000000##FFFFFF
##3A1B941.0011.901.7611.90
#FFFFFF11.901.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A97
Deuteranopia (green-blind)
#003392
Tritanopia (blue-blind)
#004058
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #3a1b94;
/* rgb */ color: rgb(58, 27, 148);
/* oklch */ color: oklch(35.8% 0.180 284.4);
Tailwind
colors: {
  custom: {
    50: '#7c5db5',
    500: '#3a1b94',
    950: '#000000',
  },
}
SCSS
$custom: #3a1b94;
$custom-light: #7c5db5;
$custom-dark: #000000;
JSON
{
  "hex": "#3a1b94",
  "rgb": {
    "r": 58,
    "g": 27,
    "b": 148
  },
  "hsl": {
    "h": 255.372,
    "s": 69.143,
    "l": 34.314
  },
  "oklch": {
    "l": 0.35762,
    "c": 0.17963,
    "h": 284.4
  },
  "luminance": 0.03822
}

Semantic roles & 50–950 ramp

primary
#3A1B94
secondary
#A2C04B
accent
#EC3CBF
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0411
muted
#7C7980

Preview Lab

Preview with #3A1B94

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

Preview Lab → · Contrast checker → · Palette generator →

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