#3A1AA8#3A1AA8

#3A1AA8 is a dark, highly saturated violet. Relative luminance 0.045; OKLCH L 37.9% C 0.203 H 280.9°. Best body text is #FFFFFF at 11.09:1 contrast (WCAG AA passes).

Color values

HEX#3A1AA8
RGBrgb(58, 26, 168)
HSLhsl(254, 73%, 38%)
HSVhsv(254, 85%, 66%)
CMYKcmyk(65.5%, 84.5%, 0%, 34.1%)
CIE-LABlab(25.15, 52.03, -69.13)
CIE-LCHlch(25.15, 86.52, 306.96°)
OKLaboklab(37.85% 0.0384 -0.1995)
OKLCHoklch(37.85% 0.203 280.9)
XYZxyz(9.1800, 4.4648, 37.4162)
Luminance0.0447 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A1AA8 #88A81A
analogous
#1A41A8 #3A1AA8 #811AA8
triadic
#3A1AA8 #A83A1A #1AA83A
tetradic
#3A1AA8 #A81A41 #88A81A #1AA881
square
#3A1AA8 #A81A41 #88A81A #1AA881
split-complementary
#3A1AA8 #A8811A #41A81A
monochromatic
#150A3E #281273 #3A1AA8 #4C22DD #7757E5

Accessibility & contrast

On white

11.09
#3A1AA8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.89
#3A1AA8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A1AA8
11.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A1AA8#FFFFFF#000000##FFFFFF
##3A1AA81.0011.091.8911.09
#FFFFFF11.091.0021.001.00
#0000001.8921.001.0021.00
##FFFFFF11.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0040AC
Deuteranopia (green-blind)
#0036A6
Tritanopia (blue-blind)
#004864
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #3a1aa8;
/* rgb */ color: rgb(58, 26, 168);
/* oklch */ color: oklch(37.9% 0.203 280.9);
Tailwind
colors: {
  custom: {
    50: '#805ec3',
    500: '#3a1aa8',
    950: '#000000',
  },
}
SCSS
$custom: #3a1aa8;
$custom-light: #805ec3;
$custom-dark: #000000;
JSON
{
  "hex": "#3a1aa8",
  "rgb": {
    "r": 58,
    "g": 26,
    "b": 168
  },
  "hsl": {
    "h": 253.521,
    "s": 73.196,
    "l": 38.039
  },
  "oklch": {
    "l": 0.37852,
    "c": 0.20317,
    "h": 280.9
  },
  "luminance": 0.04465
}

Semantic roles & 50–950 ramp

primary
#3A1AA8
secondary
#AEC855
accent
#F038C6
background
#F8F5FC
surface
#F0E9F8
border
#CBC5D1
text
#0C0513
muted
#7D7982

Preview Lab

Preview with #3A1AA8

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

Preview Lab → · Contrast checker → · Palette generator →

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