#3A2394#3A2394

#3A2394 is a dark, vivid violet. Relative luminance 0.042; OKLCH L 36.7% C 0.172 H 283.3°. Best body text is #FFFFFF at 11.36:1 contrast (WCAG AA passes).

Color values

HEX#3A2394
RGBrgb(58, 35, 148)
HSLhsl(252, 62%, 36%)
HSVhsv(252, 76%, 58%)
CMYKcmyk(60.8%, 76.4%, 0%, 42%)
CIE-LABlab(24.45, 41.91, -58.09)
CIE-LCHlch(24.45, 71.63, 305.81°)
OKLaboklab(36.72% 0.0395 -0.1674)
OKLCHoklch(36.72% 0.172 283.3)
XYZxyz(7.6896, 4.2392, 28.4243)
Luminance0.0424 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A2394 #7D9423
analogous
#234494 #3A2394 #722394
triadic
#3A2394 #943A23 #23943A
tetradic
#3A2394 #942344 #7D9423 #239472
square
#3A2394 #942344 #7D9423 #239472
split-complementary
#3A2394 #947223 #449423
monochromatic
#130C31 #271763 #3A2394 #4D2FC5 #735AD8

Accessibility & contrast

On white

11.36
#3A2394 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.85
#3A2394 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A2394
11.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A2394#FFFFFF#000000##FFFFFF
##3A23941.0011.361.8511.36
#FFFFFF11.361.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E97
Deuteranopia (green-blind)
#003692
Tritanopia (blue-blind)
#00435A
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #3a2394;
/* rgb */ color: rgb(58, 35, 148);
/* oklch */ color: oklch(36.7% 0.172 283.3);
Tailwind
colors: {
  custom: {
    50: '#7c61b5',
    500: '#3a2394',
    950: '#000000',
  },
}
SCSS
$custom: #3a2394;
$custom-light: #7c61b5;
$custom-dark: #000000;
JSON
{
  "hex": "#3a2394",
  "rgb": {
    "r": 58,
    "g": 35,
    "b": 148
  },
  "hsl": {
    "h": 252.212,
    "s": 61.749,
    "l": 35.882
  },
  "oklch": {
    "l": 0.36723,
    "c": 0.17201,
    "h": 283.3
  },
  "luminance": 0.0424
}

Semantic roles & 50–950 ramp

primary
#3A2394
secondary
#A8BC57
accent
#E543C4
background
#F8F5FB
surface
#EFEAF6
border
#CAC6D0
text
#0B0511
muted
#7C7980

Preview Lab

Preview with #3A2394

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

Preview Lab → · Contrast checker → · Palette generator →

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