#3A2282#3A2282

#3A2282 is a dark, vivid violet. Relative luminance 0.037; OKLCH L 34.8% C 0.151 H 287.2°. Best body text is #FFFFFF at 12.13:1 contrast (WCAG AA passes).

Color values

HEX#3A2282
RGBrgb(58, 34, 130)
HSLhsl(255, 59%, 32%)
HSVhsv(255, 74%, 51%)
CMYKcmyk(55.4%, 73.8%, 0%, 49%)
CIE-LABlab(22.50, 36.90, -50.06)
CIE-LCHlch(22.50, 62.19, 306.39°)
OKLaboklab(34.81% 0.0447 -0.1439)
OKLCHoklch(34.81% 0.151 287.2)
XYZxyz(6.3450, 3.6550, 21.4859)
Luminance0.0365 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A2282 #6A8222
analogous
#223A82 #3A2282 #6A2282
triadic
#3A2282 #823A22 #22823A
tetradic
#3A2282 #82223A #6A8222 #22826A
square
#3A2282 #82223A #6A8222 #22826A
split-complementary
#3A2282 #826A22 #3A8222
monochromatic
#0F0921 #241551 #3A2282 #502FB3 #6E4ED1

Accessibility & contrast

On white

12.13
#3A2282 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#3A2282 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A2282
12.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A2282#FFFFFF#000000##FFFFFF
##3A22821.0012.131.7312.13
#FFFFFF12.131.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003885
Deuteranopia (green-blind)
#003380
Tritanopia (blue-blind)
#1D3C4F
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #3a2282;
/* rgb */ color: rgb(58, 34, 130);
/* oklch */ color: oklch(34.8% 0.151 287.2);
Tailwind
colors: {
  custom: {
    50: '#785fa7',
    500: '#3a2282',
    950: '#000000',
  },
}
SCSS
$custom: #3a2282;
$custom-light: #785fa7;
$custom-dark: #000000;
JSON
{
  "hex": "#3a2282",
  "rgb": {
    "r": 58,
    "g": 34,
    "b": 130
  },
  "hsl": {
    "h": 255,
    "s": 58.537,
    "l": 32.157
  },
  "oklch": {
    "l": 0.3481,
    "c": 0.15071,
    "h": 287.2
  },
  "luminance": 0.03655
}

Semantic roles & 50–950 ramp

primary
#3A2282
secondary
#9AB44C
accent
#E246BB
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0510
muted
#7C797F

Preview Lab

Preview with #3A2282

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

Preview Lab → · Contrast checker → · Palette generator →

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