#3D2887#3D2887

#3D2887 is a dark, vivid violet. Relative luminance 0.043; OKLCH L 36.5% C 0.150 H 286.6°. Best body text is #FFFFFF at 11.34:1 contrast (WCAG AA passes).

Color values

HEX#3D2887
RGBrgb(61, 40, 135)
HSLhsl(253, 54%, 34%)
HSVhsv(253, 70%, 53%)
CMYKcmyk(54.8%, 70.4%, 0%, 47.1%)
CIE-LABlab(24.51, 35.53, -49.90)
CIE-LCHlch(24.51, 61.25, 305.45°)
OKLaboklab(36.46% 0.0426 -0.1434)
OKLCHoklch(36.46% 0.15 286.6)
XYZxyz(7.0551, 4.2586, 23.3672)
Luminance0.0426 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3D2887 #728728
analogous
#284387 #3D2887 #6D2887
triadic
#3D2887 #873D28 #28873D
tetradic
#3D2887 #872843 #728728 #28876D
square
#3D2887 #872843 #728728 #28876D
split-complementary
#3D2887 #876D28 #438728
monochromatic
#120C29 #281A58 #3D2887 #5236B6 #755BCE

Accessibility & contrast

On white

11.34
#3D2887 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3D2887
11.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3D2887#FFFFFF#000000##FFFFFF
##3D28871.0011.341.8511.34
#FFFFFF11.341.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D8A
Deuteranopia (green-blind)
#003785
Tritanopia (blue-blind)
#1F4054
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #3d2887;
/* rgb */ color: rgb(61, 40, 135);
/* oklch */ color: oklch(36.5% 0.150 286.6);
Tailwind
colors: {
  custom: {
    50: '#7a64ab',
    500: '#3d2887',
    950: '#000000',
  },
}
SCSS
$custom: #3d2887;
$custom-light: #7a64ab;
$custom-dark: #000000;
JSON
{
  "hex": "#3d2887",
  "rgb": {
    "r": 61,
    "g": 40,
    "b": 135
  },
  "hsl": {
    "h": 253.263,
    "s": 54.286,
    "l": 34.314
  },
  "oklch": {
    "l": 0.36461,
    "c": 0.14957,
    "h": 286.6
  },
  "luminance": 0.04259
}

Semantic roles & 50–950 ramp

primary
#3D2887
secondary
#9FB457
accent
#DE4ABD
background
#F7F6FA
surface
#EEEBF4
border
#C9C6CE
text
#0A0510
muted
#7C7A7F

Preview Lab

Preview with #3D2887

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

Preview Lab → · Contrast checker → · Palette generator →

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