#3D2795#3D2795

#3D2795 is a dark, vivid violet. Relative luminance 0.046; OKLCH L 37.6% C 0.169 H 284.0°. Best body text is #FFFFFF at 10.92:1 contrast (WCAG AA passes).

Color values

HEX#3D2795
RGBrgb(61, 39, 149)
HSLhsl(252, 59%, 37%)
HSVhsv(252, 74%, 58%)
CMYKcmyk(59.1%, 73.8%, 0%, 41.6%)
CIE-LABlab(25.60, 40.47, -56.79)
CIE-LCHlch(25.60, 69.74, 305.47°)
OKLaboklab(37.64% 0.0407 -0.1636)
OKLCHoklch(37.64% 0.169 284)
XYZxyz(8.0731, 4.6126, 28.8928)
Luminance0.0461 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3D2795 #7F9527
analogous
#274895 #3D2795 #742795
triadic
#3D2795 #953D27 #27953D
tetradic
#3D2795 #952748 #7F9527 #279574
square
#3D2795 #952748 #7F9527 #279574
split-complementary
#3D2795 #957427 #489527
monochromatic
#150E34 #291A64 #3D2795 #5134C6 #7861D6

Accessibility & contrast

On white

10.92
#3D2795 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.92
#3D2795 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3D2795
10.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3D2795#FFFFFF#000000##FFFFFF
##3D27951.0010.921.9210.92
#FFFFFF10.921.0021.001.00
#0000001.9221.001.0021.00
##FFFFFF10.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004098
Deuteranopia (green-blind)
#003993
Tritanopia (blue-blind)
#0B455B
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #3d2795;
/* rgb */ color: rgb(61, 39, 149);
/* oklch */ color: oklch(37.6% 0.169 284.0);
Tailwind
colors: {
  custom: {
    50: '#7d64b5',
    500: '#3d2795',
    950: '#000000',
  },
}
SCSS
$custom: #3d2795;
$custom-light: #7d64b5;
$custom-dark: #000000;
JSON
{
  "hex": "#3d2795",
  "rgb": {
    "r": 61,
    "g": 39,
    "b": 149
  },
  "hsl": {
    "h": 252,
    "s": 58.511,
    "l": 36.863
  },
  "oklch": {
    "l": 0.37638,
    "c": 0.16856,
    "h": 284
  },
  "luminance": 0.04613
}

Semantic roles & 50–950 ramp

primary
#3D2795
secondary
#A8BB5D
accent
#E246C3
background
#F8F6FB
surface
#EFEBF6
border
#CAC6D0
text
#0B0511
muted
#7C7A80

Preview Lab

Preview with #3D2795

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

Preview Lab → · Contrast checker → · Palette generator →

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