#3A2592#3A2592

#3A2592 is a dark, vivid violet. Relative luminance 0.043; OKLCH L 36.8% C 0.167 H 283.3°. Best body text is #FFFFFF at 11.29:1 contrast (WCAG AA passes).

Color values

HEX#3A2592
RGBrgb(58, 37, 146)
HSLhsl(252, 60%, 36%)
HSVhsv(252, 75%, 57%)
CMYKcmyk(60.3%, 74.7%, 0%, 42.7%)
CIE-LABlab(24.63, 40.21, -56.55)
CIE-LCHlch(24.63, 69.39, 305.41°)
OKLaboklab(36.79% 0.0385 -0.1629)
OKLCHoklch(36.79% 0.167 283.3)
XYZxyz(7.5932, 4.2975, 27.6179)
Luminance0.0430 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A2592 #7D9225
analogous
#254692 #3A2592 #702592
triadic
#3A2592 #923A25 #25923A
tetradic
#3A2592 #922546 #7D9225 #259270
square
#3A2592 #922546 #7D9225 #259270
split-complementary
#3A2592 #927025 #469225
monochromatic
#130C30 #271961 #3A2592 #4D31C3 #735CD6

Accessibility & contrast

On white

11.29
#3A2592 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.86
#3A2592 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A2592
11.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A2592#FFFFFF#000000##FFFFFF
##3A25921.0011.291.8611.29
#FFFFFF11.291.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E95
Deuteranopia (green-blind)
#003790
Tritanopia (blue-blind)
#014359
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #3a2592;
/* rgb */ color: rgb(58, 37, 146);
/* oklch */ color: oklch(36.8% 0.167 283.3);
Tailwind
colors: {
  custom: {
    50: '#7b62b3',
    500: '#3a2592',
    950: '#000000',
  },
}
SCSS
$custom: #3a2592;
$custom-light: #7b62b3;
$custom-dark: #000000;
JSON
{
  "hex": "#3a2592",
  "rgb": {
    "r": 58,
    "g": 37,
    "b": 146
  },
  "hsl": {
    "h": 251.56,
    "s": 59.563,
    "l": 35.882
  },
  "oklch": {
    "l": 0.36793,
    "c": 0.16742,
    "h": 283.3
  },
  "luminance": 0.04298
}

Semantic roles & 50–950 ramp

primary
#3A2592
secondary
#A8BA58
accent
#E345C4
background
#F8F5FB
surface
#EFEAF6
border
#CAC6D0
text
#0A0511
muted
#7C7980

Preview Lab

Preview with #3A2592

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

Preview Lab → · Contrast checker → · Palette generator →

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