#3D1768#3D1768

#3D1768 is a dark, vivid violet. Relative luminance 0.026; OKLCH L 31.2% C 0.132 H 300.1°. Best body text is #FFFFFF at 13.81:1 contrast (WCAG AA passes).

Color values

HEX#3D1768
RGBrgb(61, 23, 104)
HSLhsl(268, 64%, 25%)
HSVhsv(268, 78%, 41%)
CMYKcmyk(41.3%, 77.9%, 0%, 59.2%)
CIE-LABlab(18.38, 35.69, -40.07)
CIE-LCHlch(18.38, 53.66, 311.69°)
OKLaboklab(31.24% 0.0662 -0.1144)
OKLCHoklch(31.24% 0.132 300.1)
XYZxyz(4.7289, 2.6043, 13.3476)
Luminance0.0260 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3D1768 #426817
analogous
#171968 #3D1768 #661768
triadic
#3D1768 #683D17 #17683D
tetradic
#3D1768 #681719 #426817 #176866
square
#3D1768 #681719 #426817 #176866
split-complementary
#3D1768 #686617 #196817
monochromatic
#0F0619 #200C36 #3D1768 #5A229A #782DCC

Accessibility & contrast

On white

13.81
#3D1768 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.52
#3D1768 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3D1768
13.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3D1768#FFFFFF#000000##FFFFFF
##3D17681.0013.811.5213.81
#FFFFFF13.811.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D6A
Deuteranopia (green-blind)
#002C66
Tritanopia (blue-blind)
#332C3E
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #3d1768;
/* rgb */ color: rgb(61, 23, 104);
/* oklch */ color: oklch(31.2% 0.132 300.1);
Tailwind
colors: {
  custom: {
    50: '#775894',
    500: '#3d1768',
    950: '#000000',
  },
}
SCSS
$custom: #3d1768;
$custom-light: #775894;
$custom-dark: #000000;
JSON
{
  "hex": "#3d1768",
  "rgb": {
    "r": 61,
    "g": 23,
    "b": 104
  },
  "hsl": {
    "h": 268.148,
    "s": 63.78,
    "l": 24.902
  },
  "oklch": {
    "l": 0.31242,
    "c": 0.13221,
    "h": 300.1
  },
  "luminance": 0.02604
}

Semantic roles & 50–950 ramp

primary
#3D1768
secondary
#709E3D
accent
#E74199
background
#F7F5F9
surface
#EDE9F1
border
#C8C5CB
text
#09030D
muted
#7B787E

Preview Lab

Preview with #3D1768

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

Preview Lab → · Contrast checker → · Palette generator →

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