#3E1174#3E1174

#3E1174 is a dark, vivid violet. Relative luminance 0.027; OKLCH L 31.9% C 0.152 H 297.1°. Best body text is #FFFFFF at 13.66:1 contrast (WCAG AA passes).

Color values

HEX#3E1174
RGBrgb(62, 17, 116)
HSLhsl(267, 74%, 26%)
HSVhsv(267, 85%, 45%)
CMYKcmyk(46.6%, 85.3%, 0%, 54.5%)
CIE-LABlab(18.74, 41.75, -47.28)
CIE-LCHlch(18.74, 63.07, 311.44°)
OKLaboklab(31.87% 0.0694 -0.1355)
OKLCHoklch(31.87% 0.152 297.1)
XYZxyz(5.3386, 2.6859, 16.7568)
Luminance0.0269 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E1174 #477411
analogous
#111574 #3E1174 #6F1174
triadic
#3E1174 #743E11 #11743E
tetradic
#3E1174 #741115 #477411 #11746F
square
#3E1174 #741115 #477411 #11746F
split-complementary
#3E1174 #746F11 #157411
monochromatic
#0E041B #21093F #3E1174 #5B19A9 #7721DE

Accessibility & contrast

On white

13.66
#3E1174 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.54
#3E1174 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E1174
13.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E1174#FFFFFF#000000##FFFFFF
##3E11741.0013.661.5413.66
#FFFFFF13.661.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E77
Deuteranopia (green-blind)
#002C72
Tritanopia (blue-blind)
#2F2E44
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #3e1174;
/* rgb */ color: rgb(62, 17, 116);
/* oklch */ color: oklch(31.9% 0.152 297.1);
Tailwind
colors: {
  custom: {
    50: '#7a569d',
    500: '#3e1174',
    950: '#000000',
  },
}
SCSS
$custom: #3e1174;
$custom-light: #7a569d;
$custom-dark: #000000;
JSON
{
  "hex": "#3e1174",
  "rgb": {
    "r": 62,
    "g": 17,
    "b": 116
  },
  "hsl": {
    "h": 267.273,
    "s": 74.436,
    "l": 26.078
  },
  "oklch": {
    "l": 0.31871,
    "c": 0.15224,
    "h": 297.1
  },
  "luminance": 0.02686
}

Semantic roles & 50–950 ramp

primary
#3E1174
secondary
#76AB36
accent
#F1379C
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#0A030E
muted
#7C787E

Preview Lab

Preview with #3E1174

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

Preview Lab → · Contrast checker → · Palette generator →

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