#3E1768#3E1768

#3E1768 is a dark, vivid violet. Relative luminance 0.026; OKLCH L 31.4% C 0.132 H 300.8°. Best body text is #FFFFFF at 13.75:1 contrast (WCAG AA passes).

Color values

HEX#3E1768
RGBrgb(62, 23, 104)
HSLhsl(269, 64%, 25%)
HSVhsv(269, 78%, 41%)
CMYKcmyk(40.4%, 77.9%, 0%, 59.2%)
CIE-LABlab(18.52, 35.89, -39.83)
CIE-LCHlch(18.52, 53.62, 312.02°)
OKLaboklab(31.37% 0.0678 -0.1137)
OKLCHoklch(31.37% 0.132 300.8)
XYZxyz(4.7911, 2.6364, 13.3505)
Luminance0.0264 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E1768 #416817
analogous
#171868 #3E1768 #671768
triadic
#3E1768 #683E17 #17683E
tetradic
#3E1768 #681718 #416817 #176867
square
#3E1768 #681718 #416817 #176867
split-complementary
#3E1768 #686717 #186817
monochromatic
#0F0619 #200C36 #3E1768 #5C229A #7A2DCC

Accessibility & contrast

On white

13.75
#3E1768 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3E1768
13.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E1768#FFFFFF#000000##FFFFFF
##3E17681.0013.751.5313.75
#FFFFFF13.751.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.751.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #3e1768;
/* rgb */ color: rgb(62, 23, 104);
/* oklch */ color: oklch(31.4% 0.132 300.8);
Tailwind
colors: {
  custom: {
    50: '#785894',
    500: '#3e1768',
    950: '#000000',
  },
}
SCSS
$custom: #3e1768;
$custom-light: #785894;
$custom-dark: #000000;
JSON
{
  "hex": "#3e1768",
  "rgb": {
    "r": 62,
    "g": 23,
    "b": 104
  },
  "hsl": {
    "h": 268.889,
    "s": 63.78,
    "l": 24.902
  },
  "oklch": {
    "l": 0.31372,
    "c": 0.13238,
    "h": 300.8
  },
  "luminance": 0.02636
}

Semantic roles & 50–950 ramp

primary
#3E1768
secondary
#6F9E3D
accent
#E74197
background
#F7F5F9
surface
#EEE9F1
border
#C9C5CB
text
#09030D
muted
#7B787E

Preview Lab

Preview with #3E1768

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

Preview Lab → · Contrast checker → · Palette generator →

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