#3D17A1#3D17A1

#3D17A1 is a dark, vivid violet. Relative luminance 0.042; OKLCH L 37.1% C 0.197 H 283.8°. Best body text is #FFFFFF at 11.44:1 contrast (WCAG AA passes).

Color values

HEX#3D17A1
RGBrgb(61, 23, 161)
HSLhsl(257, 75%, 36%)
HSVhsv(257, 86%, 63%)
CMYKcmyk(62.1%, 85.7%, 0%, 36.9%)
CIE-LABlab(24.25, 51.52, -66.37)
CIE-LCHlch(24.25, 84.02, 307.82°)
OKLaboklab(37.07% 0.047 -0.1913)
OKLCHoklch(37.07% 0.197 283.8)
XYZxyz(8.6619, 4.1775, 34.0612)
Luminance0.0418 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3D17A1 #7BA117
analogous
#1736A1 #3D17A1 #8217A1
triadic
#3D17A1 #A13D17 #17A13D
tetradic
#3D17A1 #A11736 #7BA117 #17A182
square
#3D17A1 #A11736 #7BA117 #17A182
split-complementary
#3D17A1 #A18217 #36A117
monochromatic
#140836 #290F6B #3D17A1 #511FD7 #774DE6

Accessibility & contrast

On white

11.44
#3D17A1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.84
#3D17A1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3D17A1
11.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3D17A1#FFFFFF#000000##FFFFFF
##3D17A11.0011.441.8411.44
#FFFFFF11.441.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003EA5
Deuteranopia (green-blind)
#00359F
Tritanopia (blue-blind)
#00435F
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #3d17a1;
/* rgb */ color: rgb(61, 23, 161);
/* oklch */ color: oklch(37.1% 0.197 283.8);
Tailwind
colors: {
  custom: {
    50: '#805cbe',
    500: '#3d17a1',
    950: '#000000',
  },
}
SCSS
$custom: #3d17a1;
$custom-light: #805cbe;
$custom-dark: #000000;
JSON
{
  "hex": "#3d17a1",
  "rgb": {
    "r": 61,
    "g": 23,
    "b": 161
  },
  "hsl": {
    "h": 256.522,
    "s": 75,
    "l": 36.078
  },
  "oklch": {
    "l": 0.37072,
    "c": 0.19704,
    "h": 283.8
  },
  "luminance": 0.04178
}

Semantic roles & 50–950 ramp

primary
#3D17A1
secondary
#A6C74C
accent
#F236BE
background
#F8F5FB
surface
#F0E9F7
border
#CBC5D0
text
#0C0412
muted
#7D7981

Preview Lab

Preview with #3D17A1

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

Preview Lab → · Contrast checker → · Palette generator →

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