#3D2177#3D2177

#3D2177 is a dark, vivid violet. Relative luminance 0.034; OKLCH L 34.0% C 0.138 H 292.4°. Best body text is #FFFFFF at 12.48:1 contrast (WCAG AA passes).

Color values

HEX#3D2177
RGBrgb(61, 33, 119)
HSLhsl(260, 57%, 30%)
HSVhsv(260, 72%, 47%)
CMYKcmyk(48.7%, 72.3%, 0%, 53.3%)
CIE-LABlab(21.62, 34.65, -44.50)
CIE-LCHlch(21.62, 56.40, 307.91°)
OKLaboklab(33.96% 0.0526 -0.1275)
OKLCHoklch(33.96% 0.138 292.4)
XYZxyz(5.7972, 3.4115, 17.8022)
Luminance0.0341 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3D2177 #5B7721
analogous
#213077 #3D2177 #682177
triadic
#3D2177 #773D21 #21773D
tetradic
#3D2177 #772130 #5B7721 #217768
square
#3D2177 #772130 #5B7721 #217768
split-complementary
#3D2177 #776821 #307721
monochromatic
#0C0718 #241447 #3D2177 #562EA7 #7247CC

Accessibility & contrast

On white

12.48
#3D2177 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#3D2177 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3D2177
12.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3D2177#FFFFFF#000000##FFFFFF
##3D21771.0012.481.6812.48
#FFFFFF12.481.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00357A
Deuteranopia (green-blind)
#003275
Tritanopia (blue-blind)
#2B3749
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #3d2177;
/* rgb */ color: rgb(61, 33, 119);
/* oklch */ color: oklch(34.0% 0.138 292.4);
Tailwind
colors: {
  custom: {
    50: '#785f9f',
    500: '#3d2177',
    950: '#000000',
  },
}
SCSS
$custom: #3d2177;
$custom-light: #785f9f;
$custom-dark: #000000;
JSON
{
  "hex": "#3d2177",
  "rgb": {
    "r": 61,
    "g": 33,
    "b": 119
  },
  "hsl": {
    "h": 259.535,
    "s": 56.579,
    "l": 29.804
  },
  "oklch": {
    "l": 0.33955,
    "c": 0.13789,
    "h": 292.4
  },
  "luminance": 0.03412
}

Semantic roles & 50–950 ramp

primary
#3D2177
secondary
#8BAA4A
accent
#E048AE
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#09040F
muted
#7B797E

Preview Lab

Preview with #3D2177

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

Preview Lab → · Contrast checker → · Palette generator →

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