#3E1168#3E1168

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

Color values

HEX#3E1168
RGBrgb(62, 17, 104)
HSLhsl(271, 72%, 24%)
HSVhsv(271, 84%, 41%)
CMYKcmyk(40.4%, 83.7%, 0%, 59.2%)
CIE-LABlab(17.57, 38.61, -41.39)
CIE-LCHlch(17.57, 56.60, 313.02°)
OKLaboklab(30.71% 0.0735 -0.1182)
OKLCHoklch(30.71% 0.139 301.9)
XYZxyz(4.6851, 2.4245, 13.3152)
Luminance0.0243 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E1168 #3B6811
analogous
#121168 #3E1168 #681166
triadic
#3E1168 #683E11 #11683E
tetradic
#3E1168 #681211 #3B6811 #116668
square
#3E1168 #681211 #3B6811 #116668
split-complementary
#3E1168 #666811 #116812
monochromatic
#10041A #1F0833 #3E1168 #5D1A9D #7D22D1

Accessibility & contrast

On white

14.14
#3E1168 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.49
#3E1168 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E1168
14.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E1168#FFFFFF#000000##FFFFFF
##3E11681.0014.141.4914.14
#FFFFFF14.141.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B6A
Deuteranopia (green-blind)
#002B66
Tritanopia (blue-blind)
#35293D
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #3e1168;
/* rgb */ color: rgb(62, 17, 104);
/* oklch */ color: oklch(30.7% 0.139 301.9);
Tailwind
colors: {
  custom: {
    50: '#785594',
    500: '#3e1168',
    950: '#000000',
  },
}
SCSS
$custom: #3e1168;
$custom-light: #785594;
$custom-dark: #000000;
JSON
{
  "hex": "#3e1168",
  "rgb": {
    "r": 62,
    "g": 17,
    "b": 104
  },
  "hsl": {
    "h": 271.034,
    "s": 71.901,
    "l": 23.725
  },
  "oklch": {
    "l": 0.30705,
    "c": 0.13918,
    "h": 301.9
  },
  "luminance": 0.02425
}

Semantic roles & 50–950 ramp

primary
#3E1168
secondary
#69A035
accent
#EF3991
background
#F7F5F9
surface
#EEE9F1
border
#C9C5CB
text
#09030D
muted
#7B787E

Preview Lab

Preview with #3E1168

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

Preview Lab → · Contrast checker → · Palette generator →

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