#3D1161#3D1161

#3D1161 is a dark, vivid violet. Relative luminance 0.023; OKLCH L 29.9% C 0.131 H 304.3°. Best body text is #FFFFFF at 14.47:1 contrast (WCAG AA passes).

Color values

HEX#3D1161
RGBrgb(61, 17, 97)
HSLhsl(273, 70%, 22%)
HSVhsv(273, 82%, 38%)
CMYKcmyk(37.1%, 82.5%, 0%, 62%)
CIE-LABlab(16.78, 36.63, -38.07)
CIE-LCHlch(16.78, 52.83, 313.90°)
OKLaboklab(29.92% 0.074 -0.1085)
OKLCHoklch(29.92% 0.131 304.3)
XYZxyz(4.2821, 2.2561, 11.5168)
Luminance0.0226 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3D1161 #356111
analogous
#151161 #3D1161 #61115D
triadic
#3D1161 #613D11 #11613D
tetradic
#3D1161 #611511 #356111 #115D61
square
#3D1161 #611511 #356111 #115D61
split-complementary
#3D1161 #5D6111 #116115
monochromatic
#10051A #1C082D #3D1161 #5E1A95 #7E23C9

Accessibility & contrast

On white

14.47
#3D1161 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.45
#3D1161 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3D1161
14.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3D1161#FFFFFF#000000##FFFFFF
##3D11611.0014.471.4514.47
#FFFFFF14.471.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002863
Deuteranopia (green-blind)
#00295F
Tritanopia (blue-blind)
#362639
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #3d1161;
/* rgb */ color: rgb(61, 17, 97);
/* oklch */ color: oklch(29.9% 0.131 304.3);
Tailwind
colors: {
  custom: {
    50: '#77558f',
    500: '#3d1161',
    950: '#000000',
  },
}
SCSS
$custom: #3d1161;
$custom-light: #77558f;
$custom-dark: #000000;
JSON
{
  "hex": "#3d1161",
  "rgb": {
    "r": 61,
    "g": 17,
    "b": 97
  },
  "hsl": {
    "h": 273,
    "s": 70.175,
    "l": 22.353
  },
  "oklch": {
    "l": 0.29917,
    "c": 0.13131,
    "h": 304.3
  },
  "luminance": 0.02256
}

Semantic roles & 50–950 ramp

primary
#3D1161
secondary
#629934
accent
#ED3B8B
background
#F7F5F8
surface
#EDE9F0
border
#C8C5CB
text
#09030C
muted
#7B787D

Preview Lab

Preview with #3D1161

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

Preview Lab → · Contrast checker → · Palette generator →

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