#3E2294#3E2294

#3E2294 is a dark, vivid violet. Relative luminance 0.043; OKLCH L 37.0% C 0.173 H 285.6°. Best body text is #FFFFFF at 11.28:1 contrast (WCAG AA passes).

Color values

HEX#3E2294
RGBrgb(62, 34, 148)
HSLhsl(255, 63%, 36%)
HSVhsv(255, 77%, 58%)
CMYKcmyk(58.1%, 77%, 0%, 42%)
CIE-LABlab(24.66, 42.98, -57.73)
CIE-LCHlch(24.66, 71.97, 306.67°)
OKLaboklab(36.97% 0.0463 -0.1662)
OKLCHoklch(36.97% 0.173 285.6)
XYZxyz(7.9023, 4.3058, 28.4259)
Luminance0.0431 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E2294 #789422
analogous
#223F94 #3E2294 #772294
triadic
#3E2294 #943E22 #22943E
tetradic
#3E2294 #94223F #789422 #229477
square
#3E2294 #94223F #789422 #229477
split-complementary
#3E2294 #947722 #3F9422
monochromatic
#140B30 #291762 #3E2294 #532DC6 #7758D9

Accessibility & contrast

On white

11.28
#3E2294 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.86
#3E2294 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E2294
11.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E2294#FFFFFF#000000##FFFFFF
##3E22941.0011.281.8611.28
#FFFFFF11.281.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E97
Deuteranopia (green-blind)
#003792
Tritanopia (blue-blind)
#13425A
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #3e2294;
/* rgb */ color: rgb(62, 34, 148);
/* oklch */ color: oklch(37.0% 0.173 285.6);
Tailwind
colors: {
  custom: {
    50: '#7e61b4',
    500: '#3e2294',
    950: '#000000',
  },
}
SCSS
$custom: #3e2294;
$custom-light: #7e61b4;
$custom-dark: #000000;
JSON
{
  "hex": "#3e2294",
  "rgb": {
    "r": 62,
    "g": 34,
    "b": 148
  },
  "hsl": {
    "h": 254.737,
    "s": 62.637,
    "l": 35.686
  },
  "oklch": {
    "l": 0.36967,
    "c": 0.17256,
    "h": 285.6
  },
  "luminance": 0.04306
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #3E2294

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

Preview Lab → · Contrast checker → · Palette generator →

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