#3E227C#3E227C

#3E227C is a dark, vivid violet. Relative luminance 0.036; OKLCH L 34.7% C 0.143 H 291.4°. Best body text is #FFFFFF at 12.18:1 contrast (WCAG AA passes).

Color values

HEX#3E227C
RGBrgb(62, 34, 124)
HSLhsl(259, 57%, 31%)
HSVhsv(259, 73%, 49%)
CMYKcmyk(50%, 72.6%, 0%, 51.4%)
CIE-LABlab(22.38, 35.78, -46.43)
CIE-LCHlch(22.38, 58.62, 307.61°)
OKLaboklab(34.66% 0.0521 -0.1331)
OKLCHoklch(34.66% 0.143 291.4)
XYZxyz(6.1957, 3.6232, 19.4378)
Luminance0.0362 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E227C #607C22
analogous
#22337C #3E227C #6B227C
triadic
#3E227C #7C3E22 #227C3E
tetradic
#3E227C #7C2233 #607C22 #227C6B
square
#3E227C #7C2233 #607C22 #227C6B
split-complementary
#3E227C #7C6B22 #337C22
monochromatic
#0E081C #26154C #3E227C #562FAC #734BCE

Accessibility & contrast

On white

12.18
#3E227C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#3E227C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E227C
12.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E227C#FFFFFF#000000##FFFFFF
##3E227C1.0012.181.7212.18
#FFFFFF12.181.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00377F
Deuteranopia (green-blind)
#00347A
Tritanopia (blue-blind)
#2A394C
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #3e227c;
/* rgb */ color: rgb(62, 34, 124);
/* oklch */ color: oklch(34.7% 0.143 291.4);
Tailwind
colors: {
  custom: {
    50: '#7a5fa3',
    500: '#3e227c',
    950: '#000000',
  },
}
SCSS
$custom: #3e227c;
$custom-light: #7a5fa3;
$custom-dark: #000000;
JSON
{
  "hex": "#3e227c",
  "rgb": {
    "r": 62,
    "g": 34,
    "b": 124
  },
  "hsl": {
    "h": 258.667,
    "s": 56.962,
    "l": 30.98
  },
  "oklch": {
    "l": 0.34664,
    "c": 0.14297,
    "h": 291.4
  },
  "luminance": 0.03623
}

Semantic roles & 50–950 ramp

primary
#3E227C
secondary
#90AF4B
accent
#E048B1
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A050F
muted
#7C797F

Preview Lab

Preview with #3E227C

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

Preview Lab → · Contrast checker → · Palette generator →

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