#3D2886#3D2886

#3D2886 is a dark, vivid violet. Relative luminance 0.042; OKLCH L 36.4% C 0.148 H 286.8°. Best body text is #FFFFFF at 11.37:1 contrast (WCAG AA passes).

Color values

HEX#3D2886
RGBrgb(61, 40, 134)
HSLhsl(253, 54%, 34%)
HSVhsv(253, 70%, 53%)
CMYKcmyk(54.5%, 70.1%, 0%, 47.5%)
CIE-LABlab(24.42, 35.21, -49.42)
CIE-LCHlch(24.42, 60.68, 305.47°)
OKLaboklab(36.37% 0.0428 -0.142)
OKLCHoklch(36.37% 0.148 286.8)
XYZxyz(6.9851, 4.2306, 22.9982)
Luminance0.0423 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3D2886 #718628
analogous
#284286 #3D2886 #6C2886
triadic
#3D2886 #863D28 #28863D
tetradic
#3D2886 #862842 #718628 #28866C
square
#3D2886 #862842 #718628 #28866C
split-complementary
#3D2886 #866C28 #428628
monochromatic
#120C28 #281A57 #3D2886 #5236B5 #745BCE

Accessibility & contrast

On white

11.37
#3D2886 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.85
#3D2886 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3D2886
11.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3D2886#FFFFFF#000000##FFFFFF
##3D28861.0011.371.8511.37
#FFFFFF11.371.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C89
Deuteranopia (green-blind)
#003784
Tritanopia (blue-blind)
#204053
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #3d2886;
/* rgb */ color: rgb(61, 40, 134);
/* oklch */ color: oklch(36.4% 0.148 286.8);
Tailwind
colors: {
  custom: {
    50: '#7a64aa',
    500: '#3d2886',
    950: '#000000',
  },
}
SCSS
$custom: #3d2886;
$custom-light: #7a64aa;
$custom-dark: #000000;
JSON
{
  "hex": "#3d2886",
  "rgb": {
    "r": 61,
    "g": 40,
    "b": 134
  },
  "hsl": {
    "h": 253.404,
    "s": 54.023,
    "l": 34.118
  },
  "oklch": {
    "l": 0.3637,
    "c": 0.14827,
    "h": 286.8
  },
  "luminance": 0.04231
}

Semantic roles & 50–950 ramp

primary
#3D2886
secondary
#9EB357
accent
#DD4ABD
background
#F7F6FA
surface
#EEEBF4
border
#C9C6CE
text
#0A0510
muted
#7C7A7F

Preview Lab

Preview with #3D2886

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

Preview Lab → · Contrast checker → · Palette generator →

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