#3E2795#3E2795

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

Color values

HEX#3E2795
RGBrgb(62, 39, 149)
HSLhsl(253, 59%, 37%)
HSVhsv(253, 74%, 58%)
CMYKcmyk(58.4%, 73.8%, 0%, 41.6%)
CIE-LABlab(25.70, 40.62, -56.63)
CIE-LCHlch(25.70, 69.70, 305.65°)
OKLaboklab(37.73% 0.0422 -0.1631)
OKLCHoklch(37.73% 0.168 284.5)
XYZxyz(8.1353, 4.6446, 28.8958)
Luminance0.0464 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E2795 #7E9527
analogous
#274795 #3E2795 #752795
triadic
#3E2795 #953E27 #27953E
tetradic
#3E2795 #952747 #7E9527 #279575
square
#3E2795 #952747 #7E9527 #279575
split-complementary
#3E2795 #957527 #479527
monochromatic
#160E34 #2A1A64 #3E2795 #5234C6 #7961D6

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##3E2795#FFFFFF#000000##FFFFFF
##3E27951.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)
#004098
Deuteranopia (green-blind)
#003993
Tritanopia (blue-blind)
#10455B
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #3e2795;
/* rgb */ color: rgb(62, 39, 149);
/* oklch */ color: oklch(37.7% 0.168 284.5);
Tailwind
colors: {
  custom: {
    50: '#7e64b5',
    500: '#3e2795',
    950: '#000000',
  },
}
SCSS
$custom: #3e2795;
$custom-light: #7e64b5;
$custom-dark: #000000;
JSON
{
  "hex": "#3e2795",
  "rgb": {
    "r": 62,
    "g": 39,
    "b": 149
  },
  "hsl": {
    "h": 252.545,
    "s": 58.511,
    "l": 36.863
  },
  "oklch": {
    "l": 0.3773,
    "c": 0.16844,
    "h": 284.5
  },
  "luminance": 0.04645
}

Semantic roles & 50–950 ramp

primary
#3E2795
secondary
#A7BB5D
accent
#E246C1
background
#F8F6FB
surface
#EFEBF6
border
#CAC6D0
text
#0B0511
muted
#7C7A80

Preview Lab

Preview with #3E2795

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

Preview Lab → · Contrast checker → · Palette generator →

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