#3D1F84#3D1F84

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

Color values

HEX#3D1F84
RGBrgb(61, 31, 132)
HSLhsl(258, 62%, 32%)
HSVhsv(258, 77%, 52%)
CMYKcmyk(53.8%, 76.5%, 0%, 48.2%)
CIE-LABlab(22.44, 39.61, -51.41)
CIE-LCHlch(22.44, 64.90, 307.62°)
OKLaboklab(34.9% 0.0515 -0.1478)
OKLCHoklch(34.9% 0.156 289.2)
XYZxyz(6.5781, 3.6377, 22.1809)
Luminance0.0364 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3D1F84 #66841F
analogous
#1F3484 #3D1F84 #701F84
triadic
#3D1F84 #843D1F #1F843D
tetradic
#3D1F84 #841F34 #66841F #1F8470
square
#3D1F84 #841F34 #66841F #1F8470
split-complementary
#3D1F84 #84701F #34841F
monochromatic
#0F0821 #261352 #3D1F84 #542BB6 #7249D4

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##3D1F84#FFFFFF#000000##FFFFFF
##3D1F841.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)
#003887
Deuteranopia (green-blind)
#003382
Tritanopia (blue-blind)
#223B50
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #3d1f84;
/* rgb */ color: rgb(61, 31, 132);
/* oklch */ color: oklch(34.9% 0.156 289.2);
Tailwind
colors: {
  custom: {
    50: '#7b5ea9',
    500: '#3d1f84',
    950: '#000000',
  },
}
SCSS
$custom: #3d1f84;
$custom-light: #7b5ea9;
$custom-dark: #000000;
JSON
{
  "hex": "#3d1f84",
  "rgb": {
    "r": 61,
    "g": 31,
    "b": 132
  },
  "hsl": {
    "h": 257.822,
    "s": 61.963,
    "l": 31.961
  },
  "oklch": {
    "l": 0.34902,
    "c": 0.15647,
    "h": 289.2
  },
  "luminance": 0.03638
}

Semantic roles & 50–950 ramp

primary
#3D1F84
secondary
#96B748
accent
#E543B5
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #3D1F84

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

Preview Lab → · Contrast checker → · Palette generator →

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