#3D2987#3D2987

#3D2987 is a dark, vivid violet. Relative luminance 0.043; OKLCH L 36.6% C 0.148 H 286.3°. Best body text is #FFFFFF at 11.26:1 contrast (WCAG AA passes).

Color values

HEX#3D2987
RGBrgb(61, 41, 135)
HSLhsl(253, 53%, 35%)
HSVhsv(253, 70%, 53%)
CMYKcmyk(54.8%, 69.6%, 0%, 47.1%)
CIE-LABlab(24.72, 34.94, -49.55)
CIE-LCHlch(24.72, 60.63, 305.19°)
OKLaboklab(36.62% 0.0416 -0.1423)
OKLCHoklch(36.62% 0.148 286.3)
XYZxyz(7.0893, 4.3269, 23.3786)
Luminance0.0433 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3D2987 #738729
analogous
#294487 #3D2987 #6C2987
triadic
#3D2987 #873D29 #29873D
tetradic
#3D2987 #872944 #738729 #29876C
square
#3D2987 #872944 #738729 #29876C
split-complementary
#3D2987 #876C29 #448729
monochromatic
#130C29 #281B58 #3D2987 #5237B6 #755DCE

Accessibility & contrast

On white

11.26
#3D2987 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.87
#3D2987 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3D2987
11.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3D2987#FFFFFF#000000##FFFFFF
##3D29871.0011.261.8711.26
#FFFFFF11.261.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D8A
Deuteranopia (green-blind)
#003885
Tritanopia (blue-blind)
#1F4154
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #3d2987;
/* rgb */ color: rgb(61, 41, 135);
/* oklch */ color: oklch(36.6% 0.148 286.3);
Tailwind
colors: {
  custom: {
    50: '#7a64ab',
    500: '#3d2987',
    950: '#000000',
  },
}
SCSS
$custom: #3d2987;
$custom-light: #7a64ab;
$custom-dark: #000000;
JSON
{
  "hex": "#3d2987",
  "rgb": {
    "r": 61,
    "g": 41,
    "b": 135
  },
  "hsl": {
    "h": 252.766,
    "s": 53.409,
    "l": 34.51
  },
  "oklch": {
    "l": 0.36616,
    "c": 0.14831,
    "h": 286.3
  },
  "luminance": 0.04327
}

Semantic roles & 50–950 ramp

primary
#3D2987
secondary
#A0B359
accent
#DD4BBE
background
#F7F6FA
surface
#EEEBF4
border
#C9C6CE
text
#0A0510
muted
#7C7A7F

Preview Lab

Preview with #3D2987

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

Preview Lab → · Contrast checker → · Palette generator →

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