#3E227B#3E227B

#3E227B is a dark, vivid violet. Relative luminance 0.036; OKLCH L 34.6% C 0.142 H 291.7°. Best body text is #FFFFFF at 12.21:1 contrast (WCAG AA passes).

Color values

HEX#3E227B
RGBrgb(62, 34, 123)
HSLhsl(259, 57%, 31%)
HSVhsv(259, 72%, 48%)
CMYKcmyk(49.6%, 72.4%, 0%, 51.8%)
CIE-LABlab(22.30, 35.48, -45.94)
CIE-LCHlch(22.30, 58.05, 307.68°)
OKLaboklab(34.57% 0.0523 -0.1317)
OKLCHoklch(34.57% 0.142 291.7)
XYZxyz(6.1328, 3.5980, 19.1064)
Luminance0.0360 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E227B #5F7B22
analogous
#22337B #3E227B #6A227B
triadic
#3E227B #7B3E22 #227B3E
tetradic
#3E227B #7B2233 #5F7B22 #227B6A
square
#3E227B #7B2233 #5F7B22 #227B6A
split-complementary
#3E227B #7B6A22 #337B22
monochromatic
#0E071B #26154B #3E227B #562FAB #734ACD

Accessibility & contrast

On white

12.21
#3E227B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3E227B
12.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E227B#FFFFFF#000000##FFFFFF
##3E227B1.0012.211.7212.21
#FFFFFF12.211.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00377E
Deuteranopia (green-blind)
#003379
Tritanopia (blue-blind)
#2B394C
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #3e227b;
/* rgb */ color: rgb(62, 34, 123);
/* oklch */ color: oklch(34.6% 0.142 291.7);
Tailwind
colors: {
  custom: {
    50: '#7a5fa2',
    500: '#3e227b',
    950: '#000000',
  },
}
SCSS
$custom: #3e227b;
$custom-light: #7a5fa2;
$custom-dark: #000000;
JSON
{
  "hex": "#3e227b",
  "rgb": {
    "r": 62,
    "g": 34,
    "b": 123
  },
  "hsl": {
    "h": 258.876,
    "s": 56.688,
    "l": 30.784
  },
  "oklch": {
    "l": 0.34573,
    "c": 0.1417,
    "h": 291.7
  },
  "luminance": 0.03598
}

Semantic roles & 50–950 ramp

primary
#3E227B
secondary
#8FAE4B
accent
#E048B0
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A050F
muted
#7C797F

Preview Lab

Preview with #3E227B

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

Preview Lab → · Contrast checker → · Palette generator →

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