#3D2180#3D2180

#3D2180 is a dark, vivid violet. Relative luminance 0.036; OKLCH L 34.8% C 0.149 H 289.8°. Best body text is #FFFFFF at 12.16:1 contrast (WCAG AA passes).

Color values

HEX#3D2180
RGBrgb(61, 33, 128)
HSLhsl(258, 59%, 32%)
HSVhsv(258, 74%, 50%)
CMYKcmyk(52.3%, 74.2%, 0%, 49.8%)
CIE-LABlab(22.44, 37.35, -48.89)
CIE-LCHlch(22.44, 61.52, 307.38°)
OKLaboklab(34.79% 0.0507 -0.1404)
OKLCHoklch(34.79% 0.149 289.8)
XYZxyz(6.3635, 3.6381, 20.7848)
Luminance0.0364 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3D2180 #648021
analogous
#213580 #3D2180 #6D2180
triadic
#3D2180 #803D21 #21803D
tetradic
#3D2180 #802135 #648021 #21806D
square
#3D2180 #802135 #648021 #21806D
split-complementary
#3D2180 #806D21 #358021
monochromatic
#0F081F #26144F #3D2180 #542EB1 #724BD1

Accessibility & contrast

On white

12.16
#3D2180 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#3D2180 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3D2180
12.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3D2180#FFFFFF#000000##FFFFFF
##3D21801.0012.161.7312.16
#FFFFFF12.161.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003783
Deuteranopia (green-blind)
#00337E
Tritanopia (blue-blind)
#253A4E
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #3d2180;
/* rgb */ color: rgb(61, 33, 128);
/* oklch */ color: oklch(34.8% 0.149 289.8);
Tailwind
colors: {
  custom: {
    50: '#7a5fa6',
    500: '#3d2180',
    950: '#000000',
  },
}
SCSS
$custom: #3d2180;
$custom-light: #7a5fa6;
$custom-dark: #000000;
JSON
{
  "hex": "#3d2180",
  "rgb": {
    "r": 61,
    "g": 33,
    "b": 128
  },
  "hsl": {
    "h": 257.684,
    "s": 59.006,
    "l": 31.569
  },
  "oklch": {
    "l": 0.34787,
    "c": 0.14924,
    "h": 289.8
  },
  "luminance": 0.03638
}

Semantic roles & 50–950 ramp

primary
#3D2180
secondary
#94B34A
accent
#E246B4
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A050F
muted
#7C797F

Preview Lab

Preview with #3D2180

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

Preview Lab → · Contrast checker → · Palette generator →

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