#3E227F#3E227F

#3E227F is a dark, vivid violet. Relative luminance 0.037; OKLCH L 34.9% C 0.147 H 290.5°. Best body text is #FFFFFF at 12.07:1 contrast (WCAG AA passes).

Color values

HEX#3E227F
RGBrgb(62, 34, 127)
HSLhsl(258, 58%, 32%)
HSVhsv(258, 73%, 50%)
CMYKcmyk(51.2%, 73.2%, 0%, 50.2%)
CIE-LABlab(22.65, 36.68, -47.89)
CIE-LCHlch(22.65, 60.32, 307.44°)
OKLaboklab(34.94% 0.0515 -0.1374)
OKLCHoklch(34.94% 0.147 290.5)
XYZxyz(6.3883, 3.7002, 20.4522)
Luminance0.0370 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E227F #637F22
analogous
#22347F #3E227F #6D227F
triadic
#3E227F #7F3E22 #227F3E
tetradic
#3E227F #7F2234 #637F22 #227F6D
square
#3E227F #7F2234 #637F22 #227F6D
split-complementary
#3E227F #7F6D22 #347F22
monochromatic
#0F081E #26154F #3E227F #562FAF #744CCF

Accessibility & contrast

On white

12.07
#3E227F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3E227F
12.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E227F#FFFFFF#000000##FFFFFF
##3E227F1.0012.071.7412.07
#FFFFFF12.071.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003882
Deuteranopia (green-blind)
#00347D
Tritanopia (blue-blind)
#283A4E
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #3e227f;
/* rgb */ color: rgb(62, 34, 127);
/* oklch */ color: oklch(34.9% 0.147 290.5);
Tailwind
colors: {
  custom: {
    50: '#7a60a5',
    500: '#3e227f',
    950: '#000000',
  },
}
SCSS
$custom: #3e227f;
$custom-light: #7a60a5;
$custom-dark: #000000;
JSON
{
  "hex": "#3e227f",
  "rgb": {
    "r": 62,
    "g": 34,
    "b": 127
  },
  "hsl": {
    "h": 258.065,
    "s": 57.764,
    "l": 31.569
  },
  "oklch": {
    "l": 0.3494,
    "c": 0.14676,
    "h": 290.5
  },
  "luminance": 0.037
}

Semantic roles & 50–950 ramp

primary
#3E227F
secondary
#93B24B
accent
#E147B3
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A050F
muted
#7C797F

Preview Lab

Preview with #3E227F

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

Preview Lab → · Contrast checker → · Palette generator →

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