#3E117E#3E117E

#3E117E is a dark, vivid violet. Relative luminance 0.029; OKLCH L 32.9% C 0.163 H 293.7°. Best body text is #FFFFFF at 13.24:1 contrast (WCAG AA passes).

Color values

HEX#3E117E
RGBrgb(62, 17, 126)
HSLhsl(265, 76%, 28%)
HSVhsv(265, 87%, 49%)
CMYKcmyk(50.8%, 86.5%, 0%, 50.6%)
CIE-LABlab(19.77, 44.39, -52.00)
CIE-LCHlch(19.77, 68.37, 310.49°)
OKLaboklab(32.89% 0.0656 -0.1493)
OKLCHoklch(32.89% 0.163 293.7)
XYZxyz(5.9519, 2.9312, 19.9868)
Luminance0.0293 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E117E #517E11
analogous
#111A7E #3E117E #74117E
triadic
#3E117E #7E3E11 #117E3E
tetradic
#3E117E #7E111A #517E11 #117E74
square
#3E117E #7E111A #517E11 #117E74
split-complementary
#3E117E #7E7411 #1A7E11
monochromatic
#0D041B #230A48 #3E117E #5918B4 #7427E2

Accessibility & contrast

On white

13.24
#3E117E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.59
#3E117E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E117E
13.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E117E#FFFFFF#000000##FFFFFF
##3E117E1.0013.241.5913.24
#FFFFFF13.241.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003181
Deuteranopia (green-blind)
#002E7C
Tritanopia (blue-blind)
#2A3249
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #3e117e;
/* rgb */ color: rgb(62, 17, 126);
/* oklch */ color: oklch(32.9% 0.163 293.7);
Tailwind
colors: {
  custom: {
    50: '#7b57a4',
    500: '#3e117e',
    950: '#000000',
  },
}
SCSS
$custom: #3e117e;
$custom-light: #7b57a4;
$custom-dark: #000000;
JSON
{
  "hex": "#3e117e",
  "rgb": {
    "r": 62,
    "g": 17,
    "b": 126
  },
  "hsl": {
    "h": 264.771,
    "s": 76.224,
    "l": 28.039
  },
  "oklch": {
    "l": 0.3289,
    "c": 0.16309,
    "h": 293.7
  },
  "luminance": 0.02931
}

Semantic roles & 50–950 ramp

primary
#3E117E
secondary
#80B437
accent
#F335A4
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A030F
muted
#7C787F

Preview Lab

Preview with #3E117E

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

Preview Lab → · Contrast checker → · Palette generator →

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