#3E1164#3E1164

#3E1164 is a dark, vivid violet. Relative luminance 0.023; OKLCH L 30.3% C 0.135 H 303.6°. Best body text is #FFFFFF at 14.30:1 contrast (WCAG AA passes).

Color values

HEX#3E1164
RGBrgb(62, 17, 100)
HSLhsl(273, 71%, 23%)
HSVhsv(273, 83%, 39%)
CMYKcmyk(38%, 83%, 0%, 60.8%)
CIE-LABlab(17.20, 37.59, -39.36)
CIE-LCHlch(17.20, 54.42, 313.68°)
OKLaboklab(30.33% 0.0747 -0.1122)
OKLCHoklch(30.33% 0.135 303.6)
XYZxyz(4.4868, 2.3451, 12.2704)
Luminance0.0234 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E1164 #376411
analogous
#141164 #3E1164 #641160
triadic
#3E1164 #643E11 #11643E
tetradic
#3E1164 #641411 #376411 #116064
square
#3E1164 #641411 #376411 #116064
split-complementary
#3E1164 #606411 #116414
monochromatic
#10041A #1E0830 #3E1164 #5E1A98 #7F23CD

Accessibility & contrast

On white

14.30
#3E1164 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.47
#3E1164 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E1164
14.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E1164#FFFFFF#000000##FFFFFF
##3E11641.0014.301.4714.30
#FFFFFF14.301.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002966
Deuteranopia (green-blind)
#002A62
Tritanopia (blue-blind)
#36273A
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #3e1164;
/* rgb */ color: rgb(62, 17, 100);
/* oklch */ color: oklch(30.3% 0.135 303.6);
Tailwind
colors: {
  custom: {
    50: '#785591',
    500: '#3e1164',
    950: '#000000',
  },
}
SCSS
$custom: #3e1164;
$custom-light: #785591;
$custom-dark: #000000;
JSON
{
  "hex": "#3e1164",
  "rgb": {
    "r": 62,
    "g": 17,
    "b": 100
  },
  "hsl": {
    "h": 272.53,
    "s": 70.94,
    "l": 22.941
  },
  "oklch": {
    "l": 0.30332,
    "c": 0.13483,
    "h": 303.6
  },
  "luminance": 0.02345
}

Semantic roles & 50–950 ramp

primary
#3E1164
secondary
#649C35
accent
#EE3A8C
background
#F7F5F9
surface
#EEE9F1
border
#C9C5CB
text
#09030D
muted
#7B787E

Preview Lab

Preview with #3E1164

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

Preview Lab → · Contrast checker → · Palette generator →

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