#3A2398#3A2398

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

Color values

HEX#3A2398
RGBrgb(58, 35, 152)
HSLhsl(252, 63%, 37%)
HSVhsv(252, 77%, 60%)
CMYKcmyk(61.8%, 77%, 0%, 40.4%)
CIE-LABlab(24.85, 43.14, -59.88)
CIE-LCHlch(24.85, 73.80, 305.77°)
OKLaboklab(37.13% 0.0384 -0.1727)
OKLCHoklch(37.13% 0.177 282.5)
XYZxyz(8.0117, 4.3680, 30.1206)
Luminance0.0437 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A2398 #819823
analogous
#234798 #3A2398 #752398
triadic
#3A2398 #983A23 #23983A
tetradic
#3A2398 #982347 #819823 #239875
square
#3A2398 #982347 #819823 #239875
split-complementary
#3A2398 #987523 #479823
monochromatic
#140C35 #271866 #3A2398 #4D2ECA #755CD9

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##3A2398#FFFFFF#000000##FFFFFF
##3A23981.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)
#003F9B
Deuteranopia (green-blind)
#003796
Tritanopia (blue-blind)
#00455C
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #3a2398;
/* rgb */ color: rgb(58, 35, 152);
/* oklch */ color: oklch(37.1% 0.177 282.5);
Tailwind
colors: {
  custom: {
    50: '#7c61b7',
    500: '#3a2398',
    950: '#000000',
  },
}
SCSS
$custom: #3a2398;
$custom-light: #7c61b7;
$custom-dark: #000000;
JSON
{
  "hex": "#3a2398",
  "rgb": {
    "r": 58,
    "g": 35,
    "b": 152
  },
  "hsl": {
    "h": 251.795,
    "s": 62.567,
    "l": 36.667
  },
  "oklch": {
    "l": 0.37131,
    "c": 0.17689,
    "h": 282.5
  },
  "luminance": 0.04369
}

Semantic roles & 50–950 ramp

primary
#3A2398
secondary
#AABE59
accent
#E642C5
background
#F8F5FB
surface
#EFEAF6
border
#CAC6D0
text
#0B0511
muted
#7C7980

Preview Lab

Preview with #3A2398

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

Preview Lab → · Contrast checker → · Palette generator →

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