#3D1F82#3D1F82

#3D1F82 is a dark, vivid violet. Relative luminance 0.036; OKLCH L 34.7% C 0.154 H 289.7°. Best body text is #FFFFFF at 12.23:1 contrast (WCAG AA passes).

Color values

HEX#3D1F82
RGBrgb(61, 31, 130)
HSLhsl(258, 61%, 32%)
HSVhsv(258, 76%, 51%)
CMYKcmyk(53.1%, 76.2%, 0%, 49%)
CIE-LABlab(22.24, 39.02, -50.47)
CIE-LCHlch(22.24, 63.79, 307.71°)
OKLaboklab(34.71% 0.052 -0.145)
OKLCHoklch(34.71% 0.154 289.7)
XYZxyz(6.4426, 3.5835, 21.4670)
Luminance0.0358 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3D1F82 #64821F
analogous
#1F3382 #3D1F82 #6F1F82
triadic
#3D1F82 #823D1F #1F823D
tetradic
#3D1F82 #821F33 #64821F #1F826F
square
#3D1F82 #821F33 #64821F #1F826F
split-complementary
#3D1F82 #826F1F #33821F
monochromatic
#0F071F #261351 #3D1F82 #542BB3 #7248D3

Accessibility & contrast

On white

12.23
#3D1F82 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#3D1F82 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3D1F82
12.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3D1F82#FFFFFF#000000##FFFFFF
##3D1F821.0012.231.7212.23
#FFFFFF12.231.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003785
Deuteranopia (green-blind)
#003380
Tritanopia (blue-blind)
#243A4F
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #3d1f82;
/* rgb */ color: rgb(61, 31, 130);
/* oklch */ color: oklch(34.7% 0.154 289.7);
Tailwind
colors: {
  custom: {
    50: '#7a5ea7',
    500: '#3d1f82',
    950: '#000000',
  },
}
SCSS
$custom: #3d1f82;
$custom-light: #7a5ea7;
$custom-dark: #000000;
JSON
{
  "hex": "#3d1f82",
  "rgb": {
    "r": 61,
    "g": 31,
    "b": 130
  },
  "hsl": {
    "h": 258.182,
    "s": 61.491,
    "l": 31.569
  },
  "oklch": {
    "l": 0.34708,
    "c": 0.15403,
    "h": 289.7
  },
  "luminance": 0.03584
}

Semantic roles & 50–950 ramp

primary
#3D1F82
secondary
#94B548
accent
#E543B4
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #3D1F82

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

Preview Lab → · Contrast checker → · Palette generator →

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