#3A1BAE#3A1BAE

#3A1BAE is a dark, highly saturated violet. Relative luminance 0.047; OKLCH L 38.6% C 0.209 H 279.9°. Best body text is #FFFFFF at 10.78:1 contrast (WCAG AA passes).

Color values

HEX#3A1BAE
RGBrgb(58, 27, 174)
HSLhsl(253, 73%, 39%)
HSVhsv(253, 84%, 68%)
CMYKcmyk(66.7%, 84.5%, 0%, 31.8%)
CIE-LABlab(25.98, 53.32, -71.38)
CIE-LCHlch(25.98, 89.10, 306.76°)
OKLaboklab(38.62% 0.0359 -0.2061)
OKLCHoklch(38.62% 0.209 279.9)
XYZxyz(9.7744, 4.7386, 40.4357)
Luminance0.0474 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A1BAE #8FAE1B
analogous
#1B46AE #3A1BAE #841BAE
triadic
#3A1BAE #AE3A1B #1BAE3A
tetradic
#3A1BAE #AE1B46 #8FAE1B #1BAE84
square
#3A1BAE #AE1B46 #8FAE1B #1BAE84
split-complementary
#3A1BAE #AE841B #46AE1B
monochromatic
#170B44 #281379 #3A1BAE #4F28DE #7A5DE6

Accessibility & contrast

On white

10.78
#3A1BAE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.95
#3A1BAE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A1BAE
10.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A1BAE#FFFFFF#000000##FFFFFF
##3A1BAE1.0010.781.9510.78
#FFFFFF10.781.0021.001.00
#0000001.9521.001.0021.00
##FFFFFF10.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0043B2
Deuteranopia (green-blind)
#0038AC
Tritanopia (blue-blind)
#004A67
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #3a1bae;
/* rgb */ color: rgb(58, 27, 174);
/* oklch */ color: oklch(38.6% 0.209 279.9);
Tailwind
colors: {
  custom: {
    50: '#815ec8',
    500: '#3a1bae',
    950: '#000000',
  },
}
SCSS
$custom: #3a1bae;
$custom-light: #815ec8;
$custom-dark: #000000;
JSON
{
  "hex": "#3a1bae",
  "rgb": {
    "r": 58,
    "g": 27,
    "b": 174
  },
  "hsl": {
    "h": 252.653,
    "s": 73.134,
    "l": 39.412
  },
  "oklch": {
    "l": 0.38618,
    "c": 0.20917,
    "h": 279.9
  },
  "luminance": 0.04739
}

Semantic roles & 50–950 ramp

primary
#3A1BAE
secondary
#B3CA5B
accent
#F038C9
background
#F8F5FC
surface
#F0EAF8
border
#CBC6D1
text
#0C0513
muted
#7D7982

Preview Lab

Preview with #3A1BAE

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

Preview Lab → · Contrast checker → · Palette generator →

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