#3E317E#3E317E

#3E317E is a dark, vivid violet. Relative luminance 0.047; OKLCH L 37.3% C 0.125 H 286.4°. Best body text is #FFFFFF at 10.79:1 contrast (WCAG AA passes).

Color values

HEX#3E317E
RGBrgb(62, 49, 126)
HSLhsl(250, 44%, 34%)
HSVhsv(250, 61%, 49%)
CMYKcmyk(50.8%, 61.1%, 0%, 50.6%)
CIE-LABlab(25.94, 27.29, -41.92)
CIE-LCHlch(25.94, 50.02, 303.07°)
OKLaboklab(37.29% 0.0353 -0.1199)
OKLCHoklch(37.29% 0.125 286.4)
XYZxyz(6.8497, 4.7268, 20.2861)
Luminance0.0473 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E317E #717E31
analogous
#314B7E #3E317E #65317E
triadic
#3E317E #7E3E31 #317E3E
tetradic
#3E317E #7E314B #717E31 #317E65
square
#3E317E #7E314B #717E31 #317E65
split-complementary
#3E317E #7E6531 #4B7E31
monochromatic
#130F26 #282052 #3E317E #5442AA #7666C3

Accessibility & contrast

On white

10.79
#3E317E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.95
#3E317E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E317E
10.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E317E#FFFFFF#000000##FFFFFF
##3E317E1.0010.791.9510.79
#FFFFFF10.791.0021.001.00
#0000001.9521.001.0021.00
##FFFFFF10.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F81
Deuteranopia (green-blind)
#003B7C
Tritanopia (blue-blind)
#284352
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #3e317e;
/* rgb */ color: rgb(62, 49, 126);
/* oklch */ color: oklch(37.3% 0.125 286.4);
Tailwind
colors: {
  custom: {
    50: '#7969a4',
    500: '#3e317e',
    950: '#000000',
  },
}
SCSS
$custom: #3e317e;
$custom-light: #7969a4;
$custom-dark: #000000;
JSON
{
  "hex": "#3e317e",
  "rgb": {
    "r": 62,
    "g": 49,
    "b": 126
  },
  "hsl": {
    "h": 250.13,
    "s": 44,
    "l": 34.314
  },
  "oklch": {
    "l": 0.37293,
    "c": 0.12494,
    "h": 286.4
  },
  "luminance": 0.04727
}

Semantic roles & 50–950 ramp

primary
#3E317E
secondary
#9EAB60
accent
#D454BE
background
#F7F6FA
surface
#EEEBF4
border
#C9C6CE
text
#09060F
muted
#7B7A7F

Preview Lab

Preview with #3E317E

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

Preview Lab → · Contrast checker → · Palette generator →

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