#3A2495#3A2495

#3A2495 is a dark, vivid violet. Relative luminance 0.043; OKLCH L 37.0% C 0.172 H 282.9°. Best body text is #FFFFFF at 11.25:1 contrast (WCAG AA passes).

Color values

HEX#3A2495
RGBrgb(58, 36, 149)
HSLhsl(252, 61%, 36%)
HSVhsv(252, 76%, 58%)
CMYKcmyk(61.1%, 75.8%, 0%, 41.6%)
CIE-LABlab(24.74, 41.69, -58.23)
CIE-LCHlch(24.74, 71.61, 305.60°)
OKLaboklab(36.96% 0.0385 -0.1678)
OKLCHoklch(36.96% 0.172 282.9)
XYZxyz(7.7989, 4.3307, 28.8529)
Luminance0.0433 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A2495 #7F9524
analogous
#244795 #3A2495 #732495
triadic
#3A2495 #953A24 #24953A
tetradic
#3A2495 #952447 #7F9524 #249573
square
#3A2495 #952447 #7F9524 #249573
split-complementary
#3A2495 #957324 #479524
monochromatic
#140C32 #271864 #3A2495 #4D30C6 #745CD8

Accessibility & contrast

On white

11.25
#3A2495 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3A2495
11.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A2495#FFFFFF#000000##FFFFFF
##3A24951.0011.251.8711.25
#FFFFFF11.251.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.251.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #3a2495;
/* rgb */ color: rgb(58, 36, 149);
/* oklch */ color: oklch(37.0% 0.172 282.9);
Tailwind
colors: {
  custom: {
    50: '#7c62b5',
    500: '#3a2495',
    950: '#000000',
  },
}
SCSS
$custom: #3a2495;
$custom-light: #7c62b5;
$custom-dark: #000000;
JSON
{
  "hex": "#3a2495",
  "rgb": {
    "r": 58,
    "g": 36,
    "b": 149
  },
  "hsl": {
    "h": 251.681,
    "s": 61.081,
    "l": 36.275
  },
  "oklch": {
    "l": 0.36957,
    "c": 0.1722,
    "h": 282.9
  },
  "luminance": 0.04331
}

Semantic roles & 50–950 ramp

primary
#3A2495
secondary
#A9BC59
accent
#E444C5
background
#F8F5FB
surface
#EFEAF6
border
#CAC6D0
text
#0B0511
muted
#7C7980

Preview Lab

Preview with #3A2495

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

Preview Lab → · Contrast checker → · Palette generator →

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