#3D2185#3D2185

#3D2185 is a dark, vivid violet. Relative luminance 0.038; OKLCH L 35.3% C 0.155 H 288.6°. Best body text is #FFFFFF at 11.97:1 contrast (WCAG AA passes).

Color values

HEX#3D2185
RGBrgb(61, 33, 133)
HSLhsl(257, 60%, 33%)
HSVhsv(257, 75%, 52%)
CMYKcmyk(54.1%, 75.2%, 0%, 47.8%)
CIE-LABlab(22.91, 38.85, -51.27)
CIE-LCHlch(22.91, 64.33, 307.16°)
OKLaboklab(35.26% 0.0495 -0.1473)
OKLCHoklch(35.26% 0.155 288.6)
XYZxyz(6.7007, 3.7729, 22.5609)
Luminance0.0377 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3D2185 #698521
analogous
#213785 #3D2185 #6F2185
triadic
#3D2185 #853D21 #21853D
tetradic
#3D2185 #852137 #698521 #21856F
square
#3D2185 #852137 #698521 #21856F
split-complementary
#3D2185 #856F21 #378521
monochromatic
#100923 #271554 #3D2185 #532DB6 #734DD3

Accessibility & contrast

On white

11.97
#3D2185 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#3D2185 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3D2185
11.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3D2185#FFFFFF#000000##FFFFFF
##3D21851.0011.971.7511.97
#FFFFFF11.971.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF11.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003988
Deuteranopia (green-blind)
#003483
Tritanopia (blue-blind)
#213C51
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #3d2185;
/* rgb */ color: rgb(61, 33, 133);
/* oklch */ color: oklch(35.3% 0.155 288.6);
Tailwind
colors: {
  custom: {
    50: '#7b5fa9',
    500: '#3d2185',
    950: '#000000',
  },
}
SCSS
$custom: #3d2185;
$custom-light: #7b5fa9;
$custom-dark: #000000;
JSON
{
  "hex": "#3d2185",
  "rgb": {
    "r": 61,
    "g": 33,
    "b": 133
  },
  "hsl": {
    "h": 256.8,
    "s": 60.241,
    "l": 32.549
  },
  "oklch": {
    "l": 0.35264,
    "c": 0.15544,
    "h": 288.6
  },
  "luminance": 0.03773
}

Semantic roles & 50–950 ramp

primary
#3D2185
secondary
#98B64C
accent
#E344B7
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0510
muted
#7C797F

Preview Lab

Preview with #3D2185

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

Preview Lab → · Contrast checker → · Palette generator →

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