#3E1767#3E1767

#3E1767 is a dark, vivid violet. Relative luminance 0.026; OKLCH L 31.3% C 0.131 H 301.2°. Best body text is #FFFFFF at 13.79:1 contrast (WCAG AA passes).

Color values

HEX#3E1767
RGBrgb(62, 23, 103)
HSLhsl(269, 63%, 25%)
HSVhsv(269, 78%, 40%)
CMYKcmyk(39.8%, 77.7%, 0%, 59.6%)
CIE-LABlab(18.44, 35.62, -39.32)
CIE-LCHlch(18.44, 53.06, 312.17°)
OKLaboklab(31.28% 0.0681 -0.1122)
OKLCHoklch(31.28% 0.131 301.2)
XYZxyz(4.7406, 2.6162, 13.0846)
Luminance0.0262 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E1767 #406717
analogous
#171867 #3E1767 #661767
triadic
#3E1767 #673E17 #17673E
tetradic
#3E1767 #671718 #406717 #176766
square
#3E1767 #671718 #406717 #176766
split-complementary
#3E1767 #676617 #186717
monochromatic
#0F0619 #200C35 #3E1767 #5C2299 #7A2DCB

Accessibility & contrast

On white

13.79
#3E1767 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.52
#3E1767 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E1767
13.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E1767#FFFFFF#000000##FFFFFF
##3E17671.0013.791.5213.79
#FFFFFF13.791.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C69
Deuteranopia (green-blind)
#002C65
Tritanopia (blue-blind)
#352B3D
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #3e1767;
/* rgb */ color: rgb(62, 23, 103);
/* oklch */ color: oklch(31.3% 0.131 301.2);
Tailwind
colors: {
  custom: {
    50: '#785893',
    500: '#3e1767',
    950: '#000000',
  },
}
SCSS
$custom: #3e1767;
$custom-light: #785893;
$custom-dark: #000000;
JSON
{
  "hex": "#3e1767",
  "rgb": {
    "r": 62,
    "g": 23,
    "b": 103
  },
  "hsl": {
    "h": 269.25,
    "s": 63.492,
    "l": 24.706
  },
  "oklch": {
    "l": 0.31282,
    "c": 0.13122,
    "h": 301.2
  },
  "luminance": 0.02616
}

Semantic roles & 50–950 ramp

primary
#3E1767
secondary
#6E9D3D
accent
#E74196
background
#F7F5F9
surface
#EEE9F1
border
#C9C5CB
text
#09030D
muted
#7B787E

Preview Lab

Preview with #3E1767

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

Preview Lab → · Contrast checker → · Palette generator →

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