#3E227D#3E227D

#3E227D is a dark, vivid violet. Relative luminance 0.036; OKLCH L 34.8% C 0.144 H 291.1°. Best body text is #FFFFFF at 12.14:1 contrast (WCAG AA passes).

Color values

HEX#3E227D
RGBrgb(62, 34, 125)
HSLhsl(258, 57%, 31%)
HSVhsv(258, 73%, 49%)
CMYKcmyk(50.4%, 72.8%, 0%, 51%)
CIE-LABlab(22.47, 36.08, -46.92)
CIE-LCHlch(22.47, 59.19, 307.56°)
OKLaboklab(34.76% 0.0519 -0.1346)
OKLCHoklch(34.76% 0.144 291.1)
XYZxyz(6.2593, 3.6486, 19.7725)
Luminance0.0365 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E227D #617D22
analogous
#22337D #3E227D #6B227D
triadic
#3E227D #7D3E22 #227D3E
tetradic
#3E227D #7D2233 #617D22 #227D6B
square
#3E227D #7D2233 #617D22 #227D6B
split-complementary
#3E227D #7D6B22 #337D22
monochromatic
#0E081D #26154D #3E227D #562FAD #744BCE

Accessibility & contrast

On white

12.14
#3E227D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#3E227D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E227D
12.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E227D#FFFFFF#000000##FFFFFF
##3E227D1.0012.141.7312.14
#FFFFFF12.141.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003780
Deuteranopia (green-blind)
#00347B
Tritanopia (blue-blind)
#29394D
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #3e227d;
/* rgb */ color: rgb(62, 34, 125);
/* oklch */ color: oklch(34.8% 0.144 291.1);
Tailwind
colors: {
  custom: {
    50: '#7a60a3',
    500: '#3e227d',
    950: '#000000',
  },
}
SCSS
$custom: #3e227d;
$custom-light: #7a60a3;
$custom-dark: #000000;
JSON
{
  "hex": "#3e227d",
  "rgb": {
    "r": 62,
    "g": 34,
    "b": 125
  },
  "hsl": {
    "h": 258.462,
    "s": 57.233,
    "l": 31.176
  },
  "oklch": {
    "l": 0.34755,
    "c": 0.14423,
    "h": 291.1
  },
  "luminance": 0.03649
}

Semantic roles & 50–950 ramp

primary
#3E227D
secondary
#91B04B
accent
#E047B1
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A050F
muted
#7C797F

Preview Lab

Preview with #3E227D

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

Preview Lab → · Contrast checker → · Palette generator →

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