#3E1173#3E1173

#3E1173 is a dark, vivid violet. Relative luminance 0.027; OKLCH L 31.8% C 0.151 H 297.5°. Best body text is #FFFFFF at 13.70:1 contrast (WCAG AA passes).

Color values

HEX#3E1173
RGBrgb(62, 17, 115)
HSLhsl(268, 74%, 26%)
HSVhsv(268, 85%, 45%)
CMYKcmyk(46.1%, 85.2%, 0%, 54.9%)
CIE-LABlab(18.64, 41.48, -46.80)
CIE-LCHlch(18.64, 62.54, 311.55°)
OKLaboklab(31.77% 0.0698 -0.1341)
OKLCHoklch(31.77% 0.151 297.5)
XYZxyz(5.2808, 2.6627, 16.4521)
Luminance0.0266 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E1173 #467311
analogous
#111573 #3E1173 #6F1173
triadic
#3E1173 #733E11 #11733E
tetradic
#3E1173 #731115 #467311 #11736F
square
#3E1173 #731115 #467311 #11736F
split-complementary
#3E1173 #736F11 #157311
monochromatic
#0E041B #21093E #3E1173 #5B19A8 #7721DE

Accessibility & contrast

On white

13.70
#3E1173 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.53
#3E1173 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E1173
13.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E1173#FFFFFF#000000##FFFFFF
##3E11731.0013.701.5313.70
#FFFFFF13.701.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E76
Deuteranopia (green-blind)
#002C71
Tritanopia (blue-blind)
#302D43
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #3e1173;
/* rgb */ color: rgb(62, 17, 115);
/* oklch */ color: oklch(31.8% 0.151 297.5);
Tailwind
colors: {
  custom: {
    50: '#7a569c',
    500: '#3e1173',
    950: '#000000',
  },
}
SCSS
$custom: #3e1173;
$custom-light: #7a569c;
$custom-dark: #000000;
JSON
{
  "hex": "#3e1173",
  "rgb": {
    "r": 62,
    "g": 17,
    "b": 115
  },
  "hsl": {
    "h": 267.551,
    "s": 74.242,
    "l": 25.882
  },
  "oklch": {
    "l": 0.31772,
    "c": 0.15116,
    "h": 297.5
  },
  "luminance": 0.02663
}

Semantic roles & 50–950 ramp

primary
#3E1173
secondary
#75AA36
accent
#F1379B
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#0A030E
muted
#7C787E

Preview Lab

Preview with #3E1173

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

Preview Lab → · Contrast checker → · Palette generator →

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