#3E2295#3E2295

#3E2295 is a dark, vivid violet. Relative luminance 0.043; OKLCH L 37.1% C 0.174 H 285.4°. Best body text is #FFFFFF at 11.24:1 contrast (WCAG AA passes).

Color values

HEX#3E2295
RGBrgb(62, 34, 149)
HSLhsl(255, 63%, 36%)
HSVhsv(255, 77%, 58%)
CMYKcmyk(58.4%, 77.2%, 0%, 41.6%)
CIE-LABlab(24.76, 43.28, -58.18)
CIE-LCHlch(24.76, 72.51, 306.64°)
OKLaboklab(37.07% 0.0461 -0.1675)
OKLCHoklch(37.07% 0.174 285.4)
XYZxyz(7.9818, 4.3376, 28.8446)
Luminance0.0434 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E2295 #799522
analogous
#223F95 #3E2295 #772295
triadic
#3E2295 #953E22 #22953E
tetradic
#3E2295 #95223F #799522 #229577
square
#3E2295 #95223F #799522 #229577
split-complementary
#3E2295 #957722 #3F9522
monochromatic
#150B31 #291763 #3E2295 #532DC7 #7858D9

Accessibility & contrast

On white

11.24
#3E2295 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.87
#3E2295 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E2295
11.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E2295#FFFFFF#000000##FFFFFF
##3E22951.0011.241.8711.24
#FFFFFF11.241.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E98
Deuteranopia (green-blind)
#003793
Tritanopia (blue-blind)
#11435A
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #3e2295;
/* rgb */ color: rgb(62, 34, 149);
/* oklch */ color: oklch(37.1% 0.174 285.4);
Tailwind
colors: {
  custom: {
    50: '#7e61b5',
    500: '#3e2295',
    950: '#000000',
  },
}
SCSS
$custom: #3e2295;
$custom-light: #7e61b5;
$custom-dark: #000000;
JSON
{
  "hex": "#3e2295",
  "rgb": {
    "r": 62,
    "g": 34,
    "b": 149
  },
  "hsl": {
    "h": 254.609,
    "s": 62.842,
    "l": 35.882
  },
  "oklch": {
    "l": 0.37067,
    "c": 0.17376,
    "h": 285.4
  },
  "luminance": 0.04338
}

Semantic roles & 50–950 ramp

primary
#3E2295
secondary
#A4BD56
accent
#E642BE
background
#F8F5FB
surface
#EFEAF6
border
#CAC6D0
text
#0B0511
muted
#7C7980

Preview Lab

Preview with #3E2295

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

Preview Lab → · Contrast checker → · Palette generator →

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