#3D2885#3D2885

#3D2885 is a dark, vivid violet. Relative luminance 0.042; OKLCH L 36.3% C 0.147 H 287.0°. Best body text is #FFFFFF at 11.41:1 contrast (WCAG AA passes).

Color values

HEX#3D2885
RGBrgb(61, 40, 133)
HSLhsl(254, 54%, 34%)
HSVhsv(254, 70%, 52%)
CMYKcmyk(54.1%, 69.9%, 0%, 47.8%)
CIE-LABlab(24.33, 34.90, -48.94)
CIE-LCHlch(24.33, 60.11, 305.49°)
OKLaboklab(36.28% 0.043 -0.1405)
OKLCHoklch(36.28% 0.147 287)
XYZxyz(6.9156, 4.2028, 22.6326)
Luminance0.0420 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3D2885 #708528
analogous
#284285 #3D2885 #6C2885
triadic
#3D2885 #853D28 #28853D
tetradic
#3D2885 #852842 #708528 #28856C
square
#3D2885 #852842 #708528 #28856C
split-complementary
#3D2885 #856C28 #428528
monochromatic
#120C27 #271A56 #3D2885 #5336B4 #745ACD

Accessibility & contrast

On white

11.41
#3D2885 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.84
#3D2885 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3D2885
11.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3D2885#FFFFFF#000000##FFFFFF
##3D28851.0011.411.8411.41
#FFFFFF11.411.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C88
Deuteranopia (green-blind)
#003783
Tritanopia (blue-blind)
#214053
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #3d2885;
/* rgb */ color: rgb(61, 40, 133);
/* oklch */ color: oklch(36.3% 0.147 287.0);
Tailwind
colors: {
  custom: {
    50: '#7a64a9',
    500: '#3d2885',
    950: '#000000',
  },
}
SCSS
$custom: #3d2885;
$custom-light: #7a64a9;
$custom-dark: #000000;
JSON
{
  "hex": "#3d2885",
  "rgb": {
    "r": 61,
    "g": 40,
    "b": 133
  },
  "hsl": {
    "h": 253.548,
    "s": 53.757,
    "l": 33.922
  },
  "oklch": {
    "l": 0.36279,
    "c": 0.14696,
    "h": 287
  },
  "luminance": 0.04203
}

Semantic roles & 50–950 ramp

primary
#3D2885
secondary
#9EB356
accent
#DD4BBC
background
#F7F6FA
surface
#EEEBF4
border
#C9C6CE
text
#0A0510
muted
#7C7A7F

Preview Lab

Preview with #3D2885

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

Preview Lab → · Contrast checker → · Palette generator →

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