#3E229E#3E229E

#3E229E is a dark, vivid violet. Relative luminance 0.046; OKLCH L 38.0% C 0.184 H 283.6°. Best body text is #FFFFFF at 10.90:1 contrast (WCAG AA passes).

Color values

HEX#3E229E
RGBrgb(62, 34, 158)
HSLhsl(254, 65%, 38%)
HSVhsv(254, 78%, 62%)
CMYKcmyk(60.8%, 78.5%, 0%, 38%)
CIE-LABlab(25.67, 45.96, -62.19)
CIE-LCHlch(25.67, 77.33, 306.46°)
OKLaboklab(37.98% 0.0435 -0.1793)
OKLCHoklch(37.98% 0.184 283.6)
XYZxyz(8.7283, 4.6362, 32.7761)
Luminance0.0464 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E229E #829E22
analogous
#22449E #3E229E #7C229E
triadic
#3E229E #9E3E22 #229E3E
tetradic
#3E229E #9E2244 #829E22 #229E7C
square
#3E229E #9E2244 #829E22 #229E7C
split-complementary
#3E229E #9E7C22 #449E22
monochromatic
#160C39 #2A176C #3E229E #522DD0 #7B5EDC

Accessibility & contrast

On white

10.90
#3E229E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.93
#3E229E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E229E
10.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E229E#FFFFFF#000000##FFFFFF
##3E229E1.0010.901.9310.90
#FFFFFF10.901.0021.001.00
#0000001.9321.001.0021.00
##FFFFFF10.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0040A1
Deuteranopia (green-blind)
#00399C
Tritanopia (blue-blind)
#00465F
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #3e229e;
/* rgb */ color: rgb(62, 34, 158);
/* oklch */ color: oklch(38.0% 0.184 283.6);
Tailwind
colors: {
  custom: {
    50: '#8061bc',
    500: '#3e229e',
    950: '#000000',
  },
}
SCSS
$custom: #3e229e;
$custom-light: #8061bc;
$custom-dark: #000000;
JSON
{
  "hex": "#3e229e",
  "rgb": {
    "r": 62,
    "g": 34,
    "b": 158
  },
  "hsl": {
    "h": 253.548,
    "s": 64.583,
    "l": 37.647
  },
  "oklch": {
    "l": 0.37982,
    "c": 0.18447,
    "h": 283.6
  },
  "luminance": 0.04637
}

Semantic roles & 50–950 ramp

primary
#3E229E
secondary
#AAC15B
accent
#E840C2
background
#F8F5FB
surface
#EFEAF7
border
#CAC6D0
text
#0B0512
muted
#7C7981

Preview Lab

Preview with #3E229E

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

Preview Lab → · Contrast checker → · Palette generator →

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