#3E1668#3E1668

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

Color values

HEX#3E1668
RGBrgb(62, 22, 104)
HSLhsl(269, 65%, 25%)
HSVhsv(269, 79%, 41%)
CMYKcmyk(40.4%, 78.8%, 0%, 59.2%)
CIE-LABlab(18.35, 36.37, -40.11)
CIE-LCHlch(18.35, 54.15, 312.20°)
OKLaboklab(31.25% 0.0688 -0.1145)
OKLCHoklch(31.25% 0.134 301)
XYZxyz(4.7716, 2.5974, 13.3440)
Luminance0.0260 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E1668 #406816
analogous
#161768 #3E1668 #671668
triadic
#3E1668 #683E16 #16683E
tetradic
#3E1668 #681617 #406816 #166867
square
#3E1668 #681617 #406816 #166867
split-complementary
#3E1668 #686716 #176816
monochromatic
#0F0519 #200B35 #3E1668 #5C219B #7A2BCD

Accessibility & contrast

On white

13.82
#3E1668 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3E1668
13.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E1668#FFFFFF#000000##FFFFFF
##3E16681.0013.821.5213.82
#FFFFFF13.821.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C6A
Deuteranopia (green-blind)
#002C66
Tritanopia (blue-blind)
#352B3E
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #3e1668;
/* rgb */ color: rgb(62, 22, 104);
/* oklch */ color: oklch(31.3% 0.134 301.0);
Tailwind
colors: {
  custom: {
    50: '#785894',
    500: '#3e1668',
    950: '#000000',
  },
}
SCSS
$custom: #3e1668;
$custom-light: #785894;
$custom-dark: #000000;
JSON
{
  "hex": "#3e1668",
  "rgb": {
    "r": 62,
    "g": 22,
    "b": 104
  },
  "hsl": {
    "h": 269.268,
    "s": 65.079,
    "l": 24.706
  },
  "oklch": {
    "l": 0.31252,
    "c": 0.1336,
    "h": 301
  },
  "luminance": 0.02597
}

Semantic roles & 50–950 ramp

primary
#3E1668
secondary
#6E9F3B
accent
#E84096
background
#F7F5F9
surface
#EEE9F1
border
#C9C5CB
text
#09030D
muted
#7B787E

Preview Lab

Preview with #3E1668

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

Preview Lab → · Contrast checker → · Palette generator →

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