#3E229A#3E229A

#3E229A is a dark, vivid violet. Relative luminance 0.045; OKLCH L 37.6% C 0.180 H 284.4°. Best body text is #FFFFFF at 11.05:1 contrast (WCAG AA passes).

Color values

HEX#3E229A
RGBrgb(62, 34, 154)
HSLhsl(254, 64%, 37%)
HSVhsv(254, 78%, 60%)
CMYKcmyk(59.7%, 77.9%, 0%, 39.6%)
CIE-LABlab(25.26, 44.77, -60.42)
CIE-LCHlch(25.26, 75.20, 306.54°)
OKLaboklab(37.57% 0.0447 -0.1741)
OKLCHoklch(37.57% 0.18 284.4)
XYZxyz(8.3896, 4.5007, 30.9922)
Luminance0.0450 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E229A #7E9A22
analogous
#22429A #3E229A #7A229A
triadic
#3E229A #9A3E22 #229A3E
tetradic
#3E229A #9A2242 #7E9A22 #229A7A
square
#3E229A #9A2242 #7E9A22 #229A7A
split-complementary
#3E229A #9A7A22 #429A22
monochromatic
#160C36 #2A1768 #3E229A #522DCC #795BDB

Accessibility & contrast

On white

11.05
#3E229A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.90
#3E229A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E229A
11.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E229A#FFFFFF#000000##FFFFFF
##3E229A1.0011.051.9011.05
#FFFFFF11.051.0021.001.00
#0000001.9021.001.0021.00
##FFFFFF11.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F9D
Deuteranopia (green-blind)
#003898
Tritanopia (blue-blind)
#05455D
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #3e229a;
/* rgb */ color: rgb(62, 34, 154);
/* oklch */ color: oklch(37.6% 0.180 284.4);
Tailwind
colors: {
  custom: {
    50: '#7f61b9',
    500: '#3e229a',
    950: '#000000',
  },
}
SCSS
$custom: #3e229a;
$custom-light: #7f61b9;
$custom-dark: #000000;
JSON
{
  "hex": "#3e229a",
  "rgb": {
    "r": 62,
    "g": 34,
    "b": 154
  },
  "hsl": {
    "h": 254,
    "s": 63.83,
    "l": 36.863
  },
  "oklch": {
    "l": 0.37573,
    "c": 0.17973,
    "h": 284.4
  },
  "luminance": 0.04501
}

Semantic roles & 50–950 ramp

primary
#3E229A
secondary
#A7BF58
accent
#E741C0
background
#F8F5FB
surface
#EFEAF6
border
#CAC6D0
text
#0B0512
muted
#7C7981

Preview Lab

Preview with #3E229A

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

Preview Lab → · Contrast checker → · Palette generator →

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