#3D1766#3D1766

#3D1766 is a dark, vivid violet. Relative luminance 0.026; OKLCH L 31.1% C 0.130 H 300.9°. Best body text is #FFFFFF at 13.88:1 contrast (WCAG AA passes).

Color values

HEX#3D1766
RGBrgb(61, 23, 102)
HSLhsl(269, 63%, 25%)
HSVhsv(269, 77%, 40%)
CMYKcmyk(40.2%, 77.5%, 0%, 60%)
CIE-LABlab(18.21, 35.15, -39.05)
CIE-LCHlch(18.21, 52.53, 311.99°)
OKLaboklab(31.06% 0.0667 -0.1114)
OKLCHoklch(31.06% 0.13 300.9)
XYZxyz(4.6285, 2.5642, 12.8189)
Luminance0.0256 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3D1766 #406617
analogous
#171866 #3D1766 #651766
triadic
#3D1766 #663D17 #17663D
tetradic
#3D1766 #661718 #406617 #176665
square
#3D1766 #661718 #406617 #176665
split-complementary
#3D1766 #666517 #186617
monochromatic
#0F0619 #1F0C34 #3D1766 #5B2298 #792ECA

Accessibility & contrast

On white

13.88
#3D1766 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.51
#3D1766 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3D1766
13.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3D1766#FFFFFF#000000##FFFFFF
##3D17661.0013.881.5113.88
#FFFFFF13.881.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C68
Deuteranopia (green-blind)
#002C64
Tritanopia (blue-blind)
#342B3D
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #3d1766;
/* rgb */ color: rgb(61, 23, 102);
/* oklch */ color: oklch(31.1% 0.130 300.9);
Tailwind
colors: {
  custom: {
    50: '#775892',
    500: '#3d1766',
    950: '#000000',
  },
}
SCSS
$custom: #3d1766;
$custom-light: #775892;
$custom-dark: #000000;
JSON
{
  "hex": "#3d1766",
  "rgb": {
    "r": 61,
    "g": 23,
    "b": 102
  },
  "hsl": {
    "h": 268.861,
    "s": 63.2,
    "l": 24.51
  },
  "oklch": {
    "l": 0.31062,
    "c": 0.12985,
    "h": 300.9
  },
  "luminance": 0.02564
}

Semantic roles & 50–950 ramp

primary
#3D1766
secondary
#6E9C3C
accent
#E64297
background
#F7F5F9
surface
#EDE9F1
border
#C8C5CB
text
#09030D
muted
#7B787E

Preview Lab

Preview with #3D1766

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

Preview Lab → · Contrast checker → · Palette generator →

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