#3D17A0#3D17A0

#3D17A0 is a dark, vivid violet. Relative luminance 0.041; OKLCH L 37.0% C 0.196 H 284.0°. Best body text is #FFFFFF at 11.48:1 contrast (WCAG AA passes).

Color values

HEX#3D17A0
RGBrgb(61, 23, 160)
HSLhsl(257, 75%, 36%)
HSVhsv(257, 86%, 63%)
CMYKcmyk(61.9%, 85.6%, 0%, 37.3%)
CIE-LABlab(24.14, 51.24, -65.95)
CIE-LCHlch(24.14, 83.52, 307.85°)
OKLaboklab(36.96% 0.0474 -0.1901)
OKLCHoklch(36.96% 0.196 284)
XYZxyz(8.5741, 4.1424, 33.5986)
Luminance0.0414 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3D17A0 #7AA017
analogous
#1736A0 #3D17A0 #8117A0
triadic
#3D17A0 #A03D17 #17A03D
tetradic
#3D17A0 #A01736 #7AA017 #17A081
square
#3D17A0 #A01736 #7AA017 #17A081
split-complementary
#3D17A0 #A08117 #36A017
monochromatic
#140835 #290F6A #3D17A0 #511FD6 #774CE5

Accessibility & contrast

On white

11.48
#3D17A0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.83
#3D17A0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3D17A0
11.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3D17A0#FFFFFF#000000##FFFFFF
##3D17A01.0011.481.8311.48
#FFFFFF11.481.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003DA4
Deuteranopia (green-blind)
#00359E
Tritanopia (blue-blind)
#00435E
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #3d17a0;
/* rgb */ color: rgb(61, 23, 160);
/* oklch */ color: oklch(37.0% 0.196 284.0);
Tailwind
colors: {
  custom: {
    50: '#805cbd',
    500: '#3d17a0',
    950: '#000000',
  },
}
SCSS
$custom: #3d17a0;
$custom-light: #805cbd;
$custom-dark: #000000;
JSON
{
  "hex": "#3d17a0",
  "rgb": {
    "r": 61,
    "g": 23,
    "b": 160
  },
  "hsl": {
    "h": 256.642,
    "s": 74.863,
    "l": 35.882
  },
  "oklch": {
    "l": 0.36961,
    "c": 0.19594,
    "h": 284
  },
  "luminance": 0.04143
}

Semantic roles & 50–950 ramp

primary
#3D17A0
secondary
#A5C74C
accent
#F136BE
background
#F8F5FB
surface
#F0E9F7
border
#CBC5D0
text
#0C0412
muted
#7D7981

Preview Lab

Preview with #3D17A0

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

Preview Lab → · Contrast checker → · Palette generator →

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