#3A2579#3A2579

#3A2579 is a dark, vivid violet. Relative luminance 0.036; OKLCH L 34.4% C 0.135 H 288.7°. Best body text is #FFFFFF at 12.21:1 contrast (WCAG AA passes).

Color values

HEX#3A2579
RGBrgb(58, 37, 121)
HSLhsl(255, 53%, 31%)
HSVhsv(255, 69%, 47%)
CMYKcmyk(52.1%, 69.4%, 0%, 52.5%)
CIE-LABlab(22.31, 32.35, -44.66)
CIE-LCHlch(22.31, 55.15, 305.92°)
OKLaboklab(34.43% 0.0434 -0.1281)
OKLCHoklch(34.43% 0.135 288.7)
XYZxyz(5.8567, 3.6029, 18.4723)
Luminance0.0360 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A2579 #647925
analogous
#253A79 #3A2579 #642579
triadic
#3A2579 #793A25 #25793A
tetradic
#3A2579 #79253A #647925 #257964
square
#3A2579 #79253A #647925 #257964
split-complementary
#3A2579 #796425 #3A7925
monochromatic
#0D081B #24174A #3A2579 #5033A8 #6E4FC9

Accessibility & contrast

On white

12.21
#3A2579 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#3A2579 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A2579
12.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A2579#FFFFFF#000000##FFFFFF
##3A25791.0012.211.7212.21
#FFFFFF12.211.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00377C
Deuteranopia (green-blind)
#003377
Tritanopia (blue-blind)
#243A4B
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #3a2579;
/* rgb */ color: rgb(58, 37, 121);
/* oklch */ color: oklch(34.4% 0.135 288.7);
Tailwind
colors: {
  custom: {
    50: '#7761a0',
    500: '#3a2579',
    950: '#000000',
  },
}
SCSS
$custom: #3a2579;
$custom-light: #7761a0;
$custom-dark: #000000;
JSON
{
  "hex": "#3a2579",
  "rgb": {
    "r": 58,
    "g": 37,
    "b": 121
  },
  "hsl": {
    "h": 255,
    "s": 53.165,
    "l": 30.98
  },
  "oklch": {
    "l": 0.34426,
    "c": 0.13524,
    "h": 288.7
  },
  "luminance": 0.03603
}

Semantic roles & 50–950 ramp

primary
#3A2579
secondary
#94AB4E
accent
#DD4BB8
background
#F7F5FA
surface
#EDEAF3
border
#C8C6CD
text
#09050F
muted
#7B797F

Preview Lab

Preview with #3A2579

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

Preview Lab → · Contrast checker → · Palette generator →

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