#3A1B9F#3A1B9F

#3A1B9F is a dark, vivid violet. Relative luminance 0.042; OKLCH L 37.0% C 0.192 H 282.3°. Best body text is #FFFFFF at 11.43:1 contrast (WCAG AA passes).

Color values

HEX#3A1B9F
RGBrgb(58, 27, 159)
HSLhsl(254, 71%, 36%)
HSVhsv(254, 83%, 62%)
CMYKcmyk(63.5%, 83%, 0%, 37.6%)
CIE-LABlab(24.28, 49.04, -65.12)
CIE-LCHlch(24.28, 81.52, 306.99°)
OKLaboklab(36.95% 0.0411 -0.1878)
OKLCHoklch(36.95% 0.192 282.3)
XYZxyz(8.3929, 4.1860, 33.1599)
Luminance0.0419 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A1B9F #809F1B
analogous
#1B3E9F #3A1B9F #7C1B9F
triadic
#3A1B9F #9F3A1B #1B9F3A
tetradic
#3A1B9F #9F1B3E #809F1B #1B9F7C
square
#3A1B9F #9F1B3E #809F1B #1B9F7C
split-complementary
#3A1B9F #9F7C1B #3E9F1B
monochromatic
#140936 #27126B #3A1B9F #4D24D3 #7453E2

Accessibility & contrast

On white

11.43
#3A1B9F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.84
#3A1B9F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A1B9F
11.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A1B9F#FFFFFF#000000##FFFFFF
##3A1B9F1.0011.431.8411.43
#FFFFFF11.431.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003EA3
Deuteranopia (green-blind)
#00359D
Tritanopia (blue-blind)
#00445E
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #3a1b9f;
/* rgb */ color: rgb(58, 27, 159);
/* oklch */ color: oklch(37.0% 0.192 282.3);
Tailwind
colors: {
  custom: {
    50: '#7e5dbd',
    500: '#3a1b9f',
    950: '#000000',
  },
}
SCSS
$custom: #3a1b9f;
$custom-light: #7e5dbd;
$custom-dark: #000000;
JSON
{
  "hex": "#3a1b9f",
  "rgb": {
    "r": 58,
    "g": 27,
    "b": 159
  },
  "hsl": {
    "h": 254.091,
    "s": 70.968,
    "l": 36.471
  },
  "oklch": {
    "l": 0.36952,
    "c": 0.19226,
    "h": 282.3
  },
  "luminance": 0.04187
}

Semantic roles & 50–950 ramp

primary
#3A1B9F
secondary
#A9C551
accent
#EE3AC4
background
#F8F5FB
surface
#EFE9F7
border
#CAC5D0
text
#0B0512
muted
#7C7981

Preview Lab

Preview with #3A1B9F

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

Preview Lab → · Contrast checker → · Palette generator →

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