#3D2279#3D2279

#3D2279 is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.3% C 0.139 H 291.6°. Best body text is #FFFFFF at 12.33:1 contrast (WCAG AA passes).

Color values

HEX#3D2279
RGBrgb(61, 34, 121)
HSLhsl(259, 56%, 30%)
HSVhsv(259, 72%, 47%)
CMYKcmyk(49.6%, 71.9%, 0%, 52.5%)
CIE-LABlab(22.00, 34.69, -45.15)
CIE-LCHlch(22.00, 56.94, 307.53°)
OKLaboklab(34.28% 0.0511 -0.1294)
OKLCHoklch(34.28% 0.139 291.6)
XYZxyz(5.9467, 3.5164, 18.4509)
Luminance0.0352 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3D2279 #5E7922
analogous
#223279 #3D2279 #682279
triadic
#3D2279 #793D22 #22793D
tetradic
#3D2279 #792232 #5E7922 #227968
square
#3D2279 #792232 #5E7922 #227968
split-complementary
#3D2279 #796822 #327922
monochromatic
#0D0719 #251549 #3D2279 #552FA9 #7249CC

Accessibility & contrast

On white

12.33
#3D2279 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#3D2279 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3D2279
12.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3D2279#FFFFFF#000000##FFFFFF
##3D22791.0012.331.7012.33
#FFFFFF12.331.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00367C
Deuteranopia (green-blind)
#003377
Tritanopia (blue-blind)
#2A384A
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #3d2279;
/* rgb */ color: rgb(61, 34, 121);
/* oklch */ color: oklch(34.3% 0.139 291.6);
Tailwind
colors: {
  custom: {
    50: '#795fa0',
    500: '#3d2279',
    950: '#000000',
  },
}
SCSS
$custom: #3d2279;
$custom-light: #795fa0;
$custom-dark: #000000;
JSON
{
  "hex": "#3d2279",
  "rgb": {
    "r": 61,
    "g": 34,
    "b": 121
  },
  "hsl": {
    "h": 258.621,
    "s": 56.129,
    "l": 30.392
  },
  "oklch": {
    "l": 0.34283,
    "c": 0.13915,
    "h": 291.6
  },
  "luminance": 0.03517
}

Semantic roles & 50–950 ramp

primary
#3D2279
secondary
#8EAC4B
accent
#DF48B1
background
#F7F5FA
surface
#EEE9F3
border
#C9C5CD
text
#0A050F
muted
#7C797F

Preview Lab

Preview with #3D2279

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

Preview Lab → · Contrast checker → · Palette generator →

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