#3E1161#3E1161

#3E1161 is a dark, vivid violet. Relative luminance 0.023; OKLCH L 30.1% C 0.132 H 305.0°. Best body text is #FFFFFF at 14.41:1 contrast (WCAG AA passes).

Color values

HEX#3E1161
RGBrgb(62, 17, 97)
HSLhsl(274, 70%, 22%)
HSVhsv(274, 82%, 38%)
CMYKcmyk(36.1%, 82.5%, 0%, 62%)
CIE-LABlab(16.93, 36.82, -37.81)
CIE-LCHlch(16.93, 52.78, 314.24°)
OKLaboklab(30.06% 0.0755 -0.1077)
OKLCHoklch(30.06% 0.132 305)
XYZxyz(4.3442, 2.2881, 11.5197)
Luminance0.0229 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E1161 #346111
analogous
#161161 #3E1161 #61115C
triadic
#3E1161 #613E11 #11613E
tetradic
#3E1161 #611611 #346111 #115C61
square
#3E1161 #611611 #346111 #115C61
split-complementary
#3E1161 #5C6111 #116116
monochromatic
#11051A #1D082D #3E1161 #5F1A95 #8123C9

Accessibility & contrast

On white

14.41
#3E1161 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.46
#3E1161 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E1161
14.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E1161#FFFFFF#000000##FFFFFF
##3E11611.0014.411.4614.41
#FFFFFF14.411.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002963
Deuteranopia (green-blind)
#002A5F
Tritanopia (blue-blind)
#372639
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #3e1161;
/* rgb */ color: rgb(62, 17, 97);
/* oklch */ color: oklch(30.1% 0.132 305.0);
Tailwind
colors: {
  custom: {
    50: '#77558f',
    500: '#3e1161',
    950: '#000000',
  },
}
SCSS
$custom: #3e1161;
$custom-light: #77558f;
$custom-dark: #000000;
JSON
{
  "hex": "#3e1161",
  "rgb": {
    "r": 62,
    "g": 17,
    "b": 97
  },
  "hsl": {
    "h": 273.75,
    "s": 70.175,
    "l": 22.353
  },
  "oklch": {
    "l": 0.30058,
    "c": 0.13156,
    "h": 305
  },
  "luminance": 0.02288
}

Semantic roles & 50–950 ramp

primary
#3E1161
secondary
#619934
accent
#ED3B89
background
#F7F5F8
surface
#EEE9F0
border
#C9C5CB
text
#09030C
muted
#7B787D

Preview Lab

Preview with #3E1161

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

Preview Lab → · Contrast checker → · Palette generator →

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