#3A2496#3A2496

#3A2496 is a dark, vivid violet. Relative luminance 0.044; OKLCH L 37.1% C 0.173 H 282.7°. Best body text is #FFFFFF at 11.21:1 contrast (WCAG AA passes).

Color values

HEX#3A2496
RGBrgb(58, 36, 150)
HSLhsl(252, 61%, 36%)
HSVhsv(252, 76%, 59%)
CMYKcmyk(61.3%, 76%, 0%, 41.2%)
CIE-LABlab(24.84, 41.99, -58.68)
CIE-LCHlch(24.84, 72.16, 305.59°)
OKLaboklab(37.06% 0.0383 -0.1692)
OKLCHoklch(37.06% 0.173 282.7)
XYZxyz(7.8791, 4.3628, 29.2752)
Luminance0.0436 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A2496 #809624
analogous
#244796 #3A2496 #732496
triadic
#3A2496 #963A24 #24963A
tetradic
#3A2496 #962447 #809624 #249673
square
#3A2496 #962447 #809624 #249673
split-complementary
#3A2496 #967324 #479624
monochromatic
#140C33 #271865 #3A2496 #4D30C7 #745CD8

Accessibility & contrast

On white

11.21
#3A2496 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.87
#3A2496 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A2496
11.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A2496#FFFFFF#000000##FFFFFF
##3A24961.0011.211.8711.21
#FFFFFF11.211.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F99
Deuteranopia (green-blind)
#003794
Tritanopia (blue-blind)
#00445B
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #3a2496;
/* rgb */ color: rgb(58, 36, 150);
/* oklch */ color: oklch(37.1% 0.173 282.7);
Tailwind
colors: {
  custom: {
    50: '#7c62b6',
    500: '#3a2496',
    950: '#000000',
  },
}
SCSS
$custom: #3a2496;
$custom-light: #7c62b6;
$custom-dark: #000000;
JSON
{
  "hex": "#3a2496",
  "rgb": {
    "r": 58,
    "g": 36,
    "b": 150
  },
  "hsl": {
    "h": 251.579,
    "s": 61.29,
    "l": 36.471
  },
  "oklch": {
    "l": 0.37058,
    "c": 0.17343,
    "h": 282.7
  },
  "luminance": 0.04363
}

Semantic roles & 50–950 ramp

primary
#3A2496
secondary
#A9BD59
accent
#E443C5
background
#F8F5FB
surface
#EFEAF6
border
#CAC6D0
text
#0B0511
muted
#7C7980

Preview Lab

Preview with #3A2496

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

Preview Lab → · Contrast checker → · Palette generator →

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