#3E227E#3E227E

#3E227E is a dark, vivid violet. Relative luminance 0.037; OKLCH L 34.8% C 0.145 H 290.8°. Best body text is #FFFFFF at 12.10:1 contrast (WCAG AA passes).

Color values

HEX#3E227E
RGBrgb(62, 34, 126)
HSLhsl(258, 58%, 31%)
HSVhsv(258, 73%, 49%)
CMYKcmyk(50.8%, 73%, 0%, 50.6%)
CIE-LABlab(22.56, 36.38, -47.41)
CIE-LCHlch(22.56, 59.76, 307.50°)
OKLaboklab(34.85% 0.0517 -0.136)
OKLCHoklch(34.85% 0.146 290.8)
XYZxyz(6.3235, 3.6743, 20.1106)
Luminance0.0367 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E227E #627E22
analogous
#22347E #3E227E #6C227E
triadic
#3E227E #7E3E22 #227E3E
tetradic
#3E227E #7E2234 #627E22 #227E6C
square
#3E227E #7E2234 #627E22 #227E6C
split-complementary
#3E227E #7E6C22 #347E22
monochromatic
#0F081E #26154E #3E227E #562FAE #744CCF

Accessibility & contrast

On white

12.10
#3E227E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#3E227E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E227E
12.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E227E#FFFFFF#000000##FFFFFF
##3E227E1.0012.101.7412.10
#FFFFFF12.101.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003781
Deuteranopia (green-blind)
#00347C
Tritanopia (blue-blind)
#293A4D
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #3e227e;
/* rgb */ color: rgb(62, 34, 126);
/* oklch */ color: oklch(34.8% 0.145 290.8);
Tailwind
colors: {
  custom: {
    50: '#7a60a4',
    500: '#3e227e',
    950: '#000000',
  },
}
SCSS
$custom: #3e227e;
$custom-light: #7a60a4;
$custom-dark: #000000;
JSON
{
  "hex": "#3e227e",
  "rgb": {
    "r": 62,
    "g": 34,
    "b": 126
  },
  "hsl": {
    "h": 258.261,
    "s": 57.5,
    "l": 31.373
  },
  "oklch": {
    "l": 0.34847,
    "c": 0.1455,
    "h": 290.8
  },
  "luminance": 0.03675
}

Semantic roles & 50–950 ramp

primary
#3E227E
secondary
#92B14B
accent
#E147B2
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A050F
muted
#7C797F

Preview Lab

Preview with #3E227E

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

Preview Lab → · Contrast checker → · Palette generator →

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