#3E2597#3E2597

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

Color values

HEX#3E2597
RGBrgb(62, 37, 151)
HSLhsl(253, 61%, 37%)
HSVhsv(253, 75%, 59%)
CMYKcmyk(58.9%, 75.5%, 0%, 40.8%)
CIE-LABlab(25.51, 42.32, -58.18)
CIE-LCHlch(25.51, 71.94, 306.03°)
OKLaboklab(37.65% 0.0433 -0.1676)
OKLCHoklch(37.65% 0.173 284.5)
XYZxyz(8.2324, 4.5811, 29.7226)
Luminance0.0458 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E2597 #7E9725
analogous
#254597 #3E2597 #772597
triadic
#3E2597 #973E25 #25973E
tetradic
#3E2597 #972545 #7E9725 #259777
square
#3E2597 #972545 #7E9725 #259777
split-complementary
#3E2597 #977725 #459725
monochromatic
#160D35 #2A1966 #3E2597 #5231C8 #795FD8

Accessibility & contrast

On white

10.96
#3E2597 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.92
#3E2597 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E2597
10.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E2597#FFFFFF#000000##FFFFFF
##3E25971.0010.961.9210.96
#FFFFFF10.961.0021.001.00
#0000001.9221.001.0021.00
##FFFFFF10.961.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #3e2597;
/* rgb */ color: rgb(62, 37, 151);
/* oklch */ color: oklch(37.7% 0.173 284.5);
Tailwind
colors: {
  custom: {
    50: '#7e63b7',
    500: '#3e2597',
    950: '#000000',
  },
}
SCSS
$custom: #3e2597;
$custom-light: #7e63b7;
$custom-dark: #000000;
JSON
{
  "hex": "#3e2597",
  "rgb": {
    "r": 62,
    "g": 37,
    "b": 151
  },
  "hsl": {
    "h": 253.158,
    "s": 60.638,
    "l": 36.863
  },
  "oklch": {
    "l": 0.37654,
    "c": 0.17307,
    "h": 284.5
  },
  "luminance": 0.04582
}

Semantic roles & 50–950 ramp

primary
#3E2597
secondary
#A7BD5B
accent
#E444C1
background
#F8F6FB
surface
#EFEBF6
border
#CAC6D0
text
#0B0511
muted
#7C7A80

Preview Lab

Preview with #3E2597

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

Preview Lab → · Contrast checker → · Palette generator →

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