#3E1156#3E1156

#3E1156 is a dark, moderate violet. Relative luminance 0.021; OKLCH L 29.1% C 0.120 H 310.8°. Best body text is #FFFFFF at 14.79:1 contrast (WCAG AA passes).

Color values

HEX#3E1156
RGBrgb(62, 17, 86)
HSLhsl(279, 67%, 20%)
HSVhsv(279, 80%, 34%)
CMYKcmyk(27.9%, 80.2%, 0%, 66.3%)
CIE-LABlab(15.99, 34.08, -31.98)
CIE-LCHlch(15.99, 46.73, 316.82°)
OKLaboklab(29.1% 0.0781 -0.0906)
OKLCHoklch(29.1% 0.12 310.8)
XYZxyz(3.8664, 2.0970, 9.0034)
Luminance0.0210 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E1156 #295611
analogous
#1B1156 #3E1156 #56114C
triadic
#3E1156 #563E11 #11563E
tetradic
#3E1156 #561B11 #295611 #114C56
square
#3E1156 #561B11 #295611 #114C56
split-complementary
#3E1156 #4C5611 #11561B
monochromatic
#12051A #190723 #3E1156 #631B89 #8825BC

Accessibility & contrast

On white

14.79
#3E1156 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.42
#3E1156 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E1156
14.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E1156#FFFFFF#000000##FFFFFF
##3E11561.0014.791.4214.79
#FFFFFF14.791.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002658
Deuteranopia (green-blind)
#042855
Tritanopia (blue-blind)
#3B2132
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #3e1156;
/* rgb */ color: rgb(62, 17, 86);
/* oklch */ color: oklch(29.1% 0.120 310.8);
Tailwind
colors: {
  custom: {
    50: '#765486',
    500: '#3e1156',
    950: '#000000',
  },
}
SCSS
$custom: #3e1156;
$custom-light: #765486;
$custom-dark: #000000;
JSON
{
  "hex": "#3e1156",
  "rgb": {
    "r": 62,
    "g": 17,
    "b": 86
  },
  "hsl": {
    "h": 279.13,
    "s": 66.99,
    "l": 20.196
  },
  "oklch": {
    "l": 0.29098,
    "c": 0.11959,
    "h": 310.8
  },
  "luminance": 0.02097
}

Semantic roles & 50–950 ramp

primary
#3E1156
secondary
#538F34
accent
#EA3E7A
background
#F7F5F8
surface
#EDE9EF
border
#C8C5CA
text
#09030B
muted
#7B787C

Preview Lab

Preview with #3E1156

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

Preview Lab → · Contrast checker → · Palette generator →

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