#3E227A#3E227A

#3E227A is a dark, vivid violet. Relative luminance 0.036; OKLCH L 34.5% C 0.140 H 292.0°. Best body text is #FFFFFF at 12.25:1 contrast (WCAG AA passes).

Color values

HEX#3E227A
RGBrgb(62, 34, 122)
HSLhsl(259, 56%, 31%)
HSVhsv(259, 72%, 48%)
CMYKcmyk(49.2%, 72.1%, 0%, 52.2%)
CIE-LABlab(22.21, 35.18, -45.45)
CIE-LCHlch(22.21, 57.48, 307.74°)
OKLaboklab(34.48% 0.0525 -0.1303)
OKLCHoklch(34.48% 0.14 292)
XYZxyz(6.0705, 3.5731, 18.7784)
Luminance0.0357 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E227A #5E7A22
analogous
#22327A #3E227A #6A227A
triadic
#3E227A #7A3E22 #227A3E
tetradic
#3E227A #7A2232 #5E7A22 #227A6A
square
#3E227A #7A2232 #5E7A22 #227A6A
split-complementary
#3E227A #7A6A22 #327A22
monochromatic
#0D071A #26154A #3E227A #562FAA #734ACD

Accessibility & contrast

On white

12.25
#3E227A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#3E227A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E227A
12.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E227A#FFFFFF#000000##FFFFFF
##3E227A1.0012.251.7112.25
#FFFFFF12.251.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00367D
Deuteranopia (green-blind)
#003378
Tritanopia (blue-blind)
#2B384B
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #3e227a;
/* rgb */ color: rgb(62, 34, 122);
/* oklch */ color: oklch(34.5% 0.140 292.0);
Tailwind
colors: {
  custom: {
    50: '#795fa1',
    500: '#3e227a',
    950: '#000000',
  },
}
SCSS
$custom: #3e227a;
$custom-light: #795fa1;
$custom-dark: #000000;
JSON
{
  "hex": "#3e227a",
  "rgb": {
    "r": 62,
    "g": 34,
    "b": 122
  },
  "hsl": {
    "h": 259.091,
    "s": 56.41,
    "l": 30.588
  },
  "oklch": {
    "l": 0.34482,
    "c": 0.14044,
    "h": 292
  },
  "luminance": 0.03573
}

Semantic roles & 50–950 ramp

primary
#3E227A
secondary
#8EAD4B
accent
#E048AF
background
#F7F5FA
surface
#EEE9F3
border
#C9C5CD
text
#0A050F
muted
#7C797F

Preview Lab

Preview with #3E227A

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

Preview Lab → · Contrast checker → · Palette generator →

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