#3D1F85#3D1F85

#3D1F85 is a dark, vivid violet. Relative luminance 0.037; OKLCH L 35.0% C 0.158 H 289.0°. Best body text is #FFFFFF at 12.12:1 contrast (WCAG AA passes).

Color values

HEX#3D1F85
RGBrgb(61, 31, 133)
HSLhsl(258, 62%, 32%)
HSVhsv(258, 77%, 52%)
CMYKcmyk(54.1%, 76.7%, 0%, 47.8%)
CIE-LABlab(22.53, 39.91, -51.88)
CIE-LCHlch(22.53, 65.46, 307.57°)
OKLaboklab(35% 0.0512 -0.1491)
OKLCHoklch(35% 0.158 289)
XYZxyz(6.6469, 3.6652, 22.5430)
Luminance0.0367 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3D1F85 #67851F
analogous
#1F3485 #3D1F85 #701F85
triadic
#3D1F85 #853D1F #1F853D
tetradic
#3D1F85 #851F34 #67851F #1F8570
square
#3D1F85 #851F34 #67851F #1F8570
split-complementary
#3D1F85 #85701F #34851F
monochromatic
#0F0822 #261353 #3D1F85 #542BB7 #734AD5

Accessibility & contrast

On white

12.12
#3D1F85 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3D1F85
12.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3D1F85#FFFFFF#000000##FFFFFF
##3D1F851.0012.121.7312.12
#FFFFFF12.121.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003888
Deuteranopia (green-blind)
#003383
Tritanopia (blue-blind)
#223B50
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #3d1f85;
/* rgb */ color: rgb(61, 31, 133);
/* oklch */ color: oklch(35.0% 0.158 289.0);
Tailwind
colors: {
  custom: {
    50: '#7b5ea9',
    500: '#3d1f85',
    950: '#000000',
  },
}
SCSS
$custom: #3d1f85;
$custom-light: #7b5ea9;
$custom-dark: #000000;
JSON
{
  "hex": "#3d1f85",
  "rgb": {
    "r": 61,
    "g": 31,
    "b": 133
  },
  "hsl": {
    "h": 257.647,
    "s": 62.195,
    "l": 32.157
  },
  "oklch": {
    "l": 0.35,
    "c": 0.15769,
    "h": 289
  },
  "luminance": 0.03666
}

Semantic roles & 50–950 ramp

primary
#3D1F85
secondary
#97B749
accent
#E543B5
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #3D1F85

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

Preview Lab → · Contrast checker → · Palette generator →

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