#3D1168#3D1168

#3D1168 is a dark, vivid violet. Relative luminance 0.024; OKLCH L 30.6% C 0.139 H 301.1°. Best body text is #FFFFFF at 14.20:1 contrast (WCAG AA passes).

Color values

HEX#3D1168
RGBrgb(61, 17, 104)
HSLhsl(270, 72%, 24%)
HSVhsv(270, 84%, 41%)
CMYKcmyk(41.3%, 83.7%, 0%, 59.2%)
CIE-LABlab(17.42, 38.44, -41.64)
CIE-LCHlch(17.42, 56.67, 312.72°)
OKLaboklab(30.57% 0.0719 -0.119)
OKLCHoklch(30.57% 0.139 301.1)
XYZxyz(4.6230, 2.3924, 13.3122)
Luminance0.0239 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3D1168 #3C6811
analogous
#111168 #3D1168 #681167
triadic
#3D1168 #683D11 #11683D
tetradic
#3D1168 #681111 #3C6811 #116768
square
#3D1168 #681111 #3C6811 #116768
split-complementary
#3D1168 #676811 #116811
monochromatic
#0F041A #1E0833 #3D1168 #5C1A9D #7B22D1

Accessibility & contrast

On white

14.20
#3D1168 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.48
#3D1168 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3D1168
14.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3D1168#FFFFFF#000000##FFFFFF
##3D11681.0014.201.4814.20
#FFFFFF14.201.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A6A
Deuteranopia (green-blind)
#002A66
Tritanopia (blue-blind)
#33293D
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #3d1168;
/* rgb */ color: rgb(61, 17, 104);
/* oklch */ color: oklch(30.6% 0.139 301.1);
Tailwind
colors: {
  custom: {
    50: '#785594',
    500: '#3d1168',
    950: '#000000',
  },
}
SCSS
$custom: #3d1168;
$custom-light: #785594;
$custom-dark: #000000;
JSON
{
  "hex": "#3d1168",
  "rgb": {
    "r": 61,
    "g": 17,
    "b": 104
  },
  "hsl": {
    "h": 270.345,
    "s": 71.901,
    "l": 23.725
  },
  "oklch": {
    "l": 0.3057,
    "c": 0.139,
    "h": 301.1
  },
  "luminance": 0.02392
}

Semantic roles & 50–950 ramp

primary
#3D1168
secondary
#6AA035
accent
#EF3993
background
#F7F5F9
surface
#EEE9F1
border
#C9C5CB
text
#09030D
muted
#7B787E

Preview Lab

Preview with #3D1168

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

Preview Lab → · Contrast checker → · Palette generator →

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