#3D1FB4#3D1FB4

#3D1FB4 is a dark, highly saturated violet. Relative luminance 0.053; OKLCH L 39.9% C 0.212 H 280.0°. Best body text is #FFFFFF at 10.23:1 contrast (WCAG AA passes).

Color values

HEX#3D1FB4
RGBrgb(61, 31, 180)
HSLhsl(252, 71%, 41%)
HSVhsv(252, 83%, 71%)
CMYKcmyk(66.1%, 82.8%, 0%, 29.4%)
CIE-LABlab(27.48, 53.63, -72.48)
CIE-LCHlch(27.48, 90.16, 306.50°)
OKLaboklab(39.92% 0.0368 -0.2092)
OKLCHoklch(39.92% 0.212 280)
XYZxyz(10.6501, 5.2665, 43.6265)
Luminance0.0527 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3D1FB4 #96B41F
analogous
#1F4BB4 #3D1FB4 #881FB4
triadic
#3D1FB4 #B43D1F #1FB43D
tetradic
#3D1FB4 #B41F4B #96B41F #1FB488
square
#3D1FB4 #B41F4B #96B41F #1FB488
split-complementary
#3D1FB4 #B4881F #4BB41F
monochromatic
#1A0D4C #2B1680 #3D1FB4 #5634DC #8168E5

Accessibility & contrast

On white

10.23
#3D1FB4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.05
#3D1FB4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3D1FB4
10.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3D1FB4#FFFFFF#000000##FFFFFF
##3D1FB41.0010.232.0510.23
#FFFFFF10.231.0021.001.00
#0000002.0521.001.0021.00
##FFFFFF10.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0046B8
Deuteranopia (green-blind)
#003BB1
Tritanopia (blue-blind)
#004E6B
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #3d1fb4;
/* rgb */ color: rgb(61, 31, 180);
/* oklch */ color: oklch(39.9% 0.212 280.0);
Tailwind
colors: {
  custom: {
    50: '#8461cc',
    500: '#3d1fb4',
    950: '#000000',
  },
}
SCSS
$custom: #3d1fb4;
$custom-light: #8461cc;
$custom-dark: #000000;
JSON
{
  "hex": "#3d1fb4",
  "rgb": {
    "r": 61,
    "g": 31,
    "b": 180
  },
  "hsl": {
    "h": 252.081,
    "s": 70.616,
    "l": 41.373
  },
  "oklch": {
    "l": 0.39915,
    "c": 0.21243,
    "h": 280
  },
  "luminance": 0.05267
}

Semantic roles & 50–950 ramp

primary
#3D1FB4
secondary
#B6CB64
accent
#ED3AC9
background
#F8F6FC
surface
#F0EBF9
border
#CBC6D2
text
#0C0514
muted
#7D7A82

Preview Lab

Preview with #3D1FB4

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

Preview Lab → · Contrast checker → · Palette generator →

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