#3E2697#3E2697

#3E2697 is a dark, vivid violet. Relative luminance 0.046; OKLCH L 37.8% C 0.172 H 284.3°. Best body text is #FFFFFF at 10.89:1 contrast (WCAG AA passes).

Color values

HEX#3E2697
RGBrgb(62, 38, 151)
HSLhsl(253, 60%, 37%)
HSVhsv(253, 75%, 59%)
CMYKcmyk(58.9%, 74.8%, 0%, 40.8%)
CIE-LABlab(25.70, 41.78, -57.87)
CIE-LCHlch(25.70, 71.37, 305.83°)
OKLaboklab(37.79% 0.0425 -0.1667)
OKLCHoklch(37.79% 0.172 284.3)
XYZxyz(8.2639, 4.6442, 29.7331)
Luminance0.0464 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E2697 #7F9726
analogous
#264797 #3E2697 #762697
triadic
#3E2697 #973E26 #26973E
tetradic
#3E2697 #972647 #7F9726 #269776
square
#3E2697 #972647 #7F9726 #269776
split-complementary
#3E2697 #977626 #479726
monochromatic
#160D35 #2A1A66 #3E2697 #5232C8 #7A60D7

Accessibility & contrast

On white

10.89
#3E2697 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.93
#3E2697 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E2697
10.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E2697#FFFFFF#000000##FFFFFF
##3E26971.0010.891.9310.89
#FFFFFF10.891.0021.001.00
#0000001.9321.001.0021.00
##FFFFFF10.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00409A
Deuteranopia (green-blind)
#003995
Tritanopia (blue-blind)
#0C455C
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #3e2697;
/* rgb */ color: rgb(62, 38, 151);
/* oklch */ color: oklch(37.8% 0.172 284.3);
Tailwind
colors: {
  custom: {
    50: '#7e63b7',
    500: '#3e2697',
    950: '#000000',
  },
}
SCSS
$custom: #3e2697;
$custom-light: #7e63b7;
$custom-dark: #000000;
JSON
{
  "hex": "#3e2697",
  "rgb": {
    "r": 62,
    "g": 38,
    "b": 151
  },
  "hsl": {
    "h": 252.743,
    "s": 59.788,
    "l": 37.059
  },
  "oklch": {
    "l": 0.37788,
    "c": 0.17201,
    "h": 284.3
  },
  "luminance": 0.04645
}

Semantic roles & 50–950 ramp

primary
#3E2697
secondary
#A8BC5C
accent
#E345C1
background
#F8F6FB
surface
#EFEBF6
border
#CAC6D0
text
#0B0511
muted
#7C7A80

Preview Lab

Preview with #3E2697

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

Preview Lab → · Contrast checker → · Palette generator →

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