#3E2297#3E2297

#3E2297 is a dark, vivid violet. Relative luminance 0.044; OKLCH L 37.3% C 0.176 H 285.0°. Best body text is #FFFFFF at 11.17:1 contrast (WCAG AA passes).

Color values

HEX#3E2297
RGBrgb(62, 34, 151)
HSLhsl(254, 63%, 36%)
HSVhsv(254, 77%, 59%)
CMYKcmyk(58.9%, 77.5%, 0%, 40.8%)
CIE-LABlab(24.96, 43.87, -59.08)
CIE-LCHlch(24.96, 73.59, 306.60°)
OKLaboklab(37.27% 0.0455 -0.1702)
OKLCHoklch(37.27% 0.176 285)
XYZxyz(8.1428, 4.4021, 29.6928)
Luminance0.0440 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E2297 #7B9722
analogous
#224197 #3E2297 #792297
triadic
#3E2297 #973E22 #22973E
tetradic
#3E2297 #972241 #7B9722 #229779
square
#3E2297 #972241 #7B9722 #229779
split-complementary
#3E2297 #977922 #419722
monochromatic
#150C33 #291765 #3E2297 #532DC9 #785ADA

Accessibility & contrast

On white

11.17
#3E2297 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.88
#3E2297 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E2297
11.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E2297#FFFFFF#000000##FFFFFF
##3E22971.0011.171.8811.17
#FFFFFF11.171.0021.001.00
#0000001.8821.001.0021.00
##FFFFFF11.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E9A
Deuteranopia (green-blind)
#003895
Tritanopia (blue-blind)
#0D435B
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #3e2297;
/* rgb */ color: rgb(62, 34, 151);
/* oklch */ color: oklch(37.3% 0.176 285.0);
Tailwind
colors: {
  custom: {
    50: '#7e61b7',
    500: '#3e2297',
    950: '#000000',
  },
}
SCSS
$custom: #3e2297;
$custom-light: #7e61b7;
$custom-dark: #000000;
JSON
{
  "hex": "#3e2297",
  "rgb": {
    "r": 62,
    "g": 34,
    "b": 151
  },
  "hsl": {
    "h": 254.359,
    "s": 63.243,
    "l": 36.275
  },
  "oklch": {
    "l": 0.37269,
    "c": 0.17615,
    "h": 285
  },
  "luminance": 0.04403
}

Semantic roles & 50–950 ramp

primary
#3E2297
secondary
#A5BE57
accent
#E642BF
background
#F8F5FB
surface
#EFEAF6
border
#CAC6D0
text
#0B0511
muted
#7C7980

Preview Lab

Preview with #3E2297

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

Preview Lab → · Contrast checker → · Palette generator →

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