#3A2597#3A2597

#3A2597 is a dark, vivid violet. Relative luminance 0.045; OKLCH L 37.3% C 0.174 H 282.4°. Best body text is #FFFFFF at 11.10:1 contrast (WCAG AA passes).

Color values

HEX#3A2597
RGBrgb(58, 37, 151)
HSLhsl(251, 61%, 37%)
HSVhsv(251, 75%, 59%)
CMYKcmyk(61.6%, 75.5%, 0%, 40.8%)
CIE-LABlab(25.13, 41.77, -58.82)
CIE-LCHlch(25.13, 72.14, 305.38°)
OKLaboklab(37.29% 0.0373 -0.1696)
OKLCHoklch(37.29% 0.174 282.4)
XYZxyz(7.9907, 4.4565, 29.7113)
Luminance0.0446 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A2597 #829725
analogous
#254997 #3A2597 #732597
triadic
#3A2597 #973A25 #25973A
tetradic
#3A2597 #972549 #829725 #259773
square
#3A2597 #972549 #829725 #259773
split-complementary
#3A2597 #977325 #499725
monochromatic
#140D35 #271966 #3A2597 #4D31C8 #755FD8

Accessibility & contrast

On white

11.10
#3A2597 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.89
#3A2597 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A2597
11.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A2597#FFFFFF#000000##FFFFFF
##3A25971.0011.101.8911.10
#FFFFFF11.101.0021.001.00
#0000001.8921.001.0021.00
##FFFFFF11.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F9A
Deuteranopia (green-blind)
#003895
Tritanopia (blue-blind)
#00455C
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #3a2597;
/* rgb */ color: rgb(58, 37, 151);
/* oklch */ color: oklch(37.3% 0.174 282.4);
Tailwind
colors: {
  custom: {
    50: '#7c62b7',
    500: '#3a2597',
    950: '#000000',
  },
}
SCSS
$custom: #3a2597;
$custom-light: #7c62b7;
$custom-dark: #000000;
JSON
{
  "hex": "#3a2597",
  "rgb": {
    "r": 58,
    "g": 37,
    "b": 151
  },
  "hsl": {
    "h": 251.053,
    "s": 60.638,
    "l": 36.863
  },
  "oklch": {
    "l": 0.37293,
    "c": 0.17362,
    "h": 282.4
  },
  "luminance": 0.04457
}

Semantic roles & 50–950 ramp

primary
#3A2597
secondary
#ABBD5B
accent
#E444C6
background
#F8F5FB
surface
#EFEAF6
border
#CAC6D0
text
#0B0511
muted
#7C7980

Preview Lab

Preview with #3A2597

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

Preview Lab → · Contrast checker → · Palette generator →

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