#3A2A85#3A2A85

#3A2A85 is a dark, vivid violet. Relative luminance 0.042; OKLCH L 36.3% C 0.145 H 284.6°. Best body text is #FFFFFF at 11.35:1 contrast (WCAG AA passes).

Color values

HEX#3A2A85
RGBrgb(58, 42, 133)
HSLhsl(251, 52%, 34%)
HSVhsv(251, 68%, 52%)
CMYKcmyk(56.4%, 68.4%, 0%, 47.8%)
CIE-LABlab(24.48, 33.15, -48.71)
CIE-LCHlch(24.48, 58.92, 304.24°)
OKLaboklab(36.31% 0.0366 -0.14)
OKLCHoklch(36.31% 0.145 284.6)
XYZxyz(6.8052, 4.2485, 22.6472)
Luminance0.0425 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A2A85 #75852A
analogous
#2A4885 #3A2A85 #682A85
triadic
#3A2A85 #853A2A #2A853A
tetradic
#3A2A85 #852A48 #75852A #2A8568
square
#3A2A85 #852A48 #75852A #2A8568
split-complementary
#3A2A85 #85682A #48852A
monochromatic
#110D28 #261B56 #3A2A85 #4E39B4 #715DCC

Accessibility & contrast

On white

11.35
#3A2A85 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.85
#3A2A85 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A2A85
11.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A2A85#FFFFFF#000000##FFFFFF
##3A2A851.0011.351.8511.35
#FFFFFF11.351.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D88
Deuteranopia (green-blind)
#003783
Tritanopia (blue-blind)
#184153
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #3a2a85;
/* rgb */ color: rgb(58, 42, 133);
/* oklch */ color: oklch(36.3% 0.145 284.6);
Tailwind
colors: {
  custom: {
    50: '#7865a9',
    500: '#3a2a85',
    950: '#000000',
  },
}
SCSS
$custom: #3a2a85;
$custom-light: #7865a9;
$custom-dark: #000000;
JSON
{
  "hex": "#3a2a85",
  "rgb": {
    "r": 58,
    "g": 42,
    "b": 133
  },
  "hsl": {
    "h": 250.549,
    "s": 52,
    "l": 34.314
  },
  "oklch": {
    "l": 0.36312,
    "c": 0.14469,
    "h": 284.6
  },
  "luminance": 0.04249
}

Semantic roles & 50–950 ramp

primary
#3A2A85
secondary
#A2B259
accent
#DB4CC2
background
#F7F6FA
surface
#EEEBF4
border
#C9C6CE
text
#0A0510
muted
#7C7A7F

Preview Lab

Preview with #3A2A85

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

Preview Lab → · Contrast checker → · Palette generator →

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