#3E2895#3E2895

#3E2895 is a dark, vivid violet. Relative luminance 0.047; OKLCH L 37.9% C 0.167 H 284.3°. Best body text is #FFFFFF at 10.81:1 contrast (WCAG AA passes).

Color values

HEX#3E2895
RGBrgb(62, 40, 149)
HSLhsl(252, 58%, 37%)
HSVhsv(252, 73%, 58%)
CMYKcmyk(58.4%, 73.2%, 0%, 41.6%)
CIE-LABlab(25.90, 40.07, -56.31)
CIE-LCHlch(25.90, 69.11, 305.44°)
OKLaboklab(37.87% 0.0414 -0.1621)
OKLCHoklch(37.87% 0.167 284.3)
XYZxyz(8.1686, 4.7111, 28.9068)
Luminance0.0471 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E2895 #7F9528
analogous
#284995 #3E2895 #752895
triadic
#3E2895 #953E28 #28953E
tetradic
#3E2895 #952849 #7F9528 #289575
square
#3E2895 #952849 #7F9528 #289575
split-complementary
#3E2895 #957528 #499528
monochromatic
#160E35 #2A1B65 #3E2895 #5235C5 #7A62D5

Accessibility & contrast

On white

10.81
#3E2895 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.94
#3E2895 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E2895
10.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E2895#FFFFFF#000000##FFFFFF
##3E28951.0010.811.9410.81
#FFFFFF10.811.0021.001.00
#0000001.9421.001.0021.00
##FFFFFF10.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004098
Deuteranopia (green-blind)
#003A93
Tritanopia (blue-blind)
#10455C
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #3e2895;
/* rgb */ color: rgb(62, 40, 149);
/* oklch */ color: oklch(37.9% 0.167 284.3);
Tailwind
colors: {
  custom: {
    50: '#7d64b5',
    500: '#3e2895',
    950: '#000000',
  },
}
SCSS
$custom: #3e2895;
$custom-light: #7d64b5;
$custom-dark: #000000;
JSON
{
  "hex": "#3e2895",
  "rgb": {
    "r": 62,
    "g": 40,
    "b": 149
  },
  "hsl": {
    "h": 252.11,
    "s": 57.672,
    "l": 37.059
  },
  "oklch": {
    "l": 0.3787,
    "c": 0.16731,
    "h": 284.3
  },
  "luminance": 0.04712
}

Semantic roles & 50–950 ramp

primary
#3E2895
secondary
#A8BB5E
accent
#E147C2
background
#F8F6FB
surface
#EFEBF6
border
#CAC6D0
text
#0B0511
muted
#7C7A80

Preview Lab

Preview with #3E2895

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

Preview Lab → · Contrast checker → · Palette generator →

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