#3E228D#3E228D

#3E228D is a dark, vivid violet. Relative luminance 0.041; OKLCH L 36.3% C 0.164 H 287.1°. Best body text is #FFFFFF at 11.55:1 contrast (WCAG AA passes).

Color values

HEX#3E228D
RGBrgb(62, 34, 141)
HSLhsl(256, 61%, 34%)
HSVhsv(256, 76%, 55%)
CMYKcmyk(56%, 75.9%, 0%, 44.7%)
CIE-LABlab(23.97, 40.88, -54.52)
CIE-LCHlch(23.97, 68.14, 306.86°)
OKLaboklab(36.27% 0.0482 -0.1568)
OKLCHoklch(36.27% 0.164 287.1)
XYZxyz(7.3649, 4.0909, 25.5957)
Luminance0.0409 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E228D #718D22
analogous
#223C8D #3E228D #74228D
triadic
#3E228D #8D3E22 #228D3E
tetradic
#3E228D #8D223C #718D22 #228D74
square
#3E228D #8D223C #718D22 #228D74
split-complementary
#3E228D #8D7422 #3C8D22
monochromatic
#130A2A #28165C #3E228D #542EBE #7654D6

Accessibility & contrast

On white

11.55
#3E228D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.82
#3E228D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E228D
11.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E228D#FFFFFF#000000##FFFFFF
##3E228D1.0011.551.8211.55
#FFFFFF11.551.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C90
Deuteranopia (green-blind)
#00368B
Tritanopia (blue-blind)
#1C3F56
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #3e228d;
/* rgb */ color: rgb(62, 34, 141);
/* oklch */ color: oklch(36.3% 0.164 287.1);
Tailwind
colors: {
  custom: {
    50: '#7d60af',
    500: '#3e228d',
    950: '#000000',
  },
}
SCSS
$custom: #3e228d;
$custom-light: #7d60af;
$custom-dark: #000000;
JSON
{
  "hex": "#3e228d",
  "rgb": {
    "r": 62,
    "g": 34,
    "b": 141
  },
  "hsl": {
    "h": 255.701,
    "s": 61.143,
    "l": 34.314
  },
  "oklch": {
    "l": 0.36274,
    "c": 0.16408,
    "h": 287.1
  },
  "luminance": 0.04091
}

Semantic roles & 50–950 ramp

primary
#3E228D
secondary
#9EB951
accent
#E444BA
background
#F8F5FA
surface
#EFEAF5
border
#CAC6CF
text
#0B0511
muted
#7C7980

Preview Lab

Preview with #3E228D

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

Preview Lab → · Contrast checker → · Palette generator →

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