#3D2799#3D2799

#3D2799 is a dark, vivid violet. Relative luminance 0.047; OKLCH L 38.0% C 0.174 H 283.2°. Best body text is #FFFFFF at 10.78:1 contrast (WCAG AA passes).

Color values

HEX#3D2799
RGBrgb(61, 39, 153)
HSLhsl(252, 59%, 38%)
HSVhsv(252, 75%, 60%)
CMYKcmyk(60.1%, 74.5%, 0%, 40%)
CIE-LABlab(25.99, 41.71, -58.62)
CIE-LCHlch(25.99, 71.94, 305.44°)
OKLaboklab(38.03% 0.0398 -0.1689)
OKLCHoklch(38.03% 0.174 283.2)
XYZxyz(8.3980, 4.7425, 30.6037)
Luminance0.0474 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3D2799 #839927
analogous
#274A99 #3D2799 #762799
triadic
#3D2799 #993D27 #27993D
tetradic
#3D2799 #99274A #839927 #279976
square
#3D2799 #99274A #839927 #279976
split-complementary
#3D2799 #997627 #4A9927
monochromatic
#160E37 #2A1B68 #3D2799 #5033CA #7A63D7

Accessibility & contrast

On white

10.78
#3D2799 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.95
#3D2799 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3D2799
10.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3D2799#FFFFFF#000000##FFFFFF
##3D27991.0010.781.9510.78
#FFFFFF10.781.0021.001.00
#0000001.9521.001.0021.00
##FFFFFF10.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00419C
Deuteranopia (green-blind)
#003A97
Tritanopia (blue-blind)
#00475E
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #3d2799;
/* rgb */ color: rgb(61, 39, 153);
/* oklch */ color: oklch(38.0% 0.174 283.2);
Tailwind
colors: {
  custom: {
    50: '#7e64b8',
    500: '#3d2799',
    950: '#000000',
  },
}
SCSS
$custom: #3d2799;
$custom-light: #7e64b8;
$custom-dark: #000000;
JSON
{
  "hex": "#3d2799",
  "rgb": {
    "r": 61,
    "g": 39,
    "b": 153
  },
  "hsl": {
    "h": 251.579,
    "s": 59.375,
    "l": 37.647
  },
  "oklch": {
    "l": 0.3803,
    "c": 0.17352,
    "h": 283.2
  },
  "luminance": 0.04743
}

Semantic roles & 50–950 ramp

primary
#3D2799
secondary
#ABBD5F
accent
#E345C4
background
#F8F6FB
surface
#EFEBF6
border
#CAC6D0
text
#0B0511
muted
#7C7A80

Preview Lab

Preview with #3D2799

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

Preview Lab → · Contrast checker → · Palette generator →

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