#3E2291#3E2291

#3E2291 is a dark, vivid violet. Relative luminance 0.042; OKLCH L 36.7% C 0.169 H 286.2°. Best body text is #FFFFFF at 11.40:1 contrast (WCAG AA passes).

Color values

HEX#3E2291
RGBrgb(62, 34, 145)
HSLhsl(255, 62%, 35%)
HSVhsv(255, 77%, 57%)
CMYKcmyk(57.2%, 76.6%, 0%, 43.1%)
CIE-LABlab(24.36, 42.08, -56.36)
CIE-LCHlch(24.36, 70.34, 306.75°)
OKLaboklab(36.67% 0.0471 -0.1622)
OKLCHoklch(36.67% 0.169 286.2)
XYZxyz(7.6679, 4.2121, 27.1915)
Luminance0.0421 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E2291 #759122
analogous
#223E91 #3E2291 #752291
triadic
#3E2291 #913E22 #22913E
tetradic
#3E2291 #91223E #759122 #229175
square
#3E2291 #91223E #759122 #229175
split-complementary
#3E2291 #917522 #3E9122
monochromatic
#140B2E #29165F #3E2291 #532EC3 #7756D7

Accessibility & contrast

On white

11.40
#3E2291 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.84
#3E2291 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E2291
11.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E2291#FFFFFF#000000##FFFFFF
##3E22911.0011.401.8411.40
#FFFFFF11.401.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D94
Deuteranopia (green-blind)
#00378F
Tritanopia (blue-blind)
#174158
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #3e2291;
/* rgb */ color: rgb(62, 34, 145);
/* oklch */ color: oklch(36.7% 0.169 286.2);
Tailwind
colors: {
  custom: {
    50: '#7d60b2',
    500: '#3e2291',
    950: '#000000',
  },
}
SCSS
$custom: #3e2291;
$custom-light: #7d60b2;
$custom-dark: #000000;
JSON
{
  "hex": "#3e2291",
  "rgb": {
    "r": 62,
    "g": 34,
    "b": 145
  },
  "hsl": {
    "h": 255.135,
    "s": 62.011,
    "l": 35.098
  },
  "oklch": {
    "l": 0.36668,
    "c": 0.16895,
    "h": 286.2
  },
  "luminance": 0.04213
}

Semantic roles & 50–950 ramp

primary
#3E2291
secondary
#A1BB53
accent
#E543BC
background
#F8F5FB
surface
#EFEAF6
border
#CAC6D0
text
#0B0511
muted
#7C7980

Preview Lab

Preview with #3E2291

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

Preview Lab → · Contrast checker → · Palette generator →

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