#3D17B4#3D17B4

#3D17B4 is a dark, highly saturated violet. Relative luminance 0.049; OKLCH L 39.2% C 0.218 H 280.6°. Best body text is #FFFFFF at 10.61:1 contrast (WCAG AA passes).

Color values

HEX#3D17B4
RGBrgb(61, 23, 180)
HSLhsl(255, 77%, 40%)
HSVhsv(255, 87%, 71%)
CMYKcmyk(66.1%, 87.2%, 0%, 29.4%)
CIE-LABlab(26.45, 56.70, -74.19)
CIE-LCHlch(26.45, 93.38, 307.39°)
OKLaboklab(39.21% 0.0399 -0.2141)
OKLCHoklch(39.21% 0.218 280.6)
XYZxyz(10.4665, 4.8993, 43.5653)
Luminance0.0490 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3D17B4 #8EB417
analogous
#1740B4 #3D17B4 #8B17B4
triadic
#3D17B4 #B43D17 #17B43D
tetradic
#3D17B4 #B41740 #8EB417 #17B48B
square
#3D17B4 #B41740 #8EB417 #17B48B
split-complementary
#3D17B4 #B48B17 #40B417
monochromatic
#180947 #2B107E #3D17B4 #5325E3 #7E5BEA

Accessibility & contrast

On white

10.61
#3D17B4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.98
#3D17B4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3D17B4
10.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3D17B4#FFFFFF#000000##FFFFFF
##3D17B41.0010.611.9810.61
#FFFFFF10.611.0021.001.00
#0000001.9821.001.0021.00
##FFFFFF10.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0044B8
Deuteranopia (green-blind)
#0039B1
Tritanopia (blue-blind)
#004C6A
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #3d17b4;
/* rgb */ color: rgb(61, 23, 180);
/* oklch */ color: oklch(39.2% 0.218 280.6);
Tailwind
colors: {
  custom: {
    50: '#845ecc',
    500: '#3d17b4',
    950: '#000000',
  },
}
SCSS
$custom: #3d17b4;
$custom-light: #845ecc;
$custom-dark: #000000;
JSON
{
  "hex": "#3d17b4",
  "rgb": {
    "r": 61,
    "g": 23,
    "b": 180
  },
  "hsl": {
    "h": 254.522,
    "s": 77.34,
    "l": 39.804
  },
  "oklch": {
    "l": 0.39207,
    "c": 0.21776,
    "h": 280.6
  },
  "luminance": 0.049
}

Semantic roles & 50–950 ramp

primary
#3D17B4
secondary
#B1CE59
accent
#F434C5
background
#F8F5FC
surface
#F0E9F9
border
#CBC5D2
text
#0D0514
muted
#7D7982

Preview Lab

Preview with #3D17B4

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

Preview Lab → · Contrast checker → · Palette generator →

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