#3D2579#3D2579

#3D2579 is a dark, vivid violet. Relative luminance 0.037; OKLCH L 34.7% C 0.135 H 290.8°. Best body text is #FFFFFF at 12.07:1 contrast (WCAG AA passes).

Color values

HEX#3D2579
RGBrgb(61, 37, 121)
HSLhsl(257, 53%, 31%)
HSVhsv(257, 69%, 47%)
CMYKcmyk(49.6%, 69.4%, 0%, 52.5%)
CIE-LABlab(22.64, 32.94, -44.12)
CIE-LCHlch(22.64, 55.06, 306.75°)
OKLaboklab(34.74% 0.048 -0.1264)
OKLCHoklch(34.74% 0.135 290.8)
XYZxyz(6.0363, 3.6955, 18.4807)
Luminance0.0370 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3D2579 #617925
analogous
#253779 #3D2579 #672579
triadic
#3D2579 #793D25 #25793D
tetradic
#3D2579 #792537 #617925 #257967
square
#3D2579 #792537 #617925 #257967
split-complementary
#3D2579 #796725 #377925
monochromatic
#0E081B #25174A #3D2579 #5533A8 #724FC9

Accessibility & contrast

On white

12.07
#3D2579 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#3D2579 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3D2579
12.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3D2579#FFFFFF#000000##FFFFFF
##3D25791.0012.071.7412.07
#FFFFFF12.071.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00377C
Deuteranopia (green-blind)
#003477
Tritanopia (blue-blind)
#2A3A4B
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #3d2579;
/* rgb */ color: rgb(61, 37, 121);
/* oklch */ color: oklch(34.7% 0.135 290.8);
Tailwind
colors: {
  custom: {
    50: '#7861a0',
    500: '#3d2579',
    950: '#000000',
  },
}
SCSS
$custom: #3d2579;
$custom-light: #7861a0;
$custom-dark: #000000;
JSON
{
  "hex": "#3d2579",
  "rgb": {
    "r": 61,
    "g": 37,
    "b": 121
  },
  "hsl": {
    "h": 257.143,
    "s": 53.165,
    "l": 30.98
  },
  "oklch": {
    "l": 0.34738,
    "c": 0.13517,
    "h": 290.8
  },
  "luminance": 0.03696
}

Semantic roles & 50–950 ramp

primary
#3D2579
secondary
#91AB4E
accent
#DD4BB3
background
#F7F5F9
surface
#EEEAF2
border
#C9C6CC
text
#09050F
muted
#7B797E

Preview Lab

Preview with #3D2579

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

Preview Lab → · Contrast checker → · Palette generator →

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