#3D2182#3D2182

#3D2182 is a dark, vivid violet. Relative luminance 0.037; OKLCH L 35.0% C 0.152 H 289.3°. Best body text is #FFFFFF at 12.08:1 contrast (WCAG AA passes).

Color values

HEX#3D2182
RGBrgb(61, 33, 130)
HSLhsl(257, 60%, 32%)
HSVhsv(257, 75%, 51%)
CMYKcmyk(53.1%, 74.6%, 0%, 49%)
CIE-LABlab(22.62, 37.95, -49.84)
CIE-LCHlch(22.62, 62.65, 307.29°)
OKLaboklab(34.98% 0.0502 -0.1432)
OKLCHoklch(34.98% 0.152 289.3)
XYZxyz(6.4964, 3.6912, 21.4849)
Luminance0.0369 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3D2182 #668221
analogous
#213582 #3D2182 #6E2182
triadic
#3D2182 #823D21 #21823D
tetradic
#3D2182 #822135 #668221 #21826E
square
#3D2182 #822135 #668221 #21826E
split-complementary
#3D2182 #826E21 #358221
monochromatic
#0F0820 #261551 #3D2182 #542DB3 #724CD2

Accessibility & contrast

On white

12.08
#3D2182 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#3D2182 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3D2182
12.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3D2182#FFFFFF#000000##FFFFFF
##3D21821.0012.081.7412.08
#FFFFFF12.081.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003885
Deuteranopia (green-blind)
#003480
Tritanopia (blue-blind)
#243B4F
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #3d2182;
/* rgb */ color: rgb(61, 33, 130);
/* oklch */ color: oklch(35.0% 0.152 289.3);
Tailwind
colors: {
  custom: {
    50: '#7a5fa7',
    500: '#3d2182',
    950: '#000000',
  },
}
SCSS
$custom: #3d2182;
$custom-light: #7a5fa7;
$custom-dark: #000000;
JSON
{
  "hex": "#3d2182",
  "rgb": {
    "r": 61,
    "g": 33,
    "b": 130
  },
  "hsl": {
    "h": 257.32,
    "s": 59.509,
    "l": 31.961
  },
  "oklch": {
    "l": 0.34977,
    "c": 0.15173,
    "h": 289.3
  },
  "luminance": 0.03692
}

Semantic roles & 50–950 ramp

primary
#3D2182
secondary
#96B44A
accent
#E345B5
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0510
muted
#7C797F

Preview Lab

Preview with #3D2182

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

Preview Lab → · Contrast checker → · Palette generator →

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