#3E229D#3E229D

#3E229D is a dark, vivid violet. Relative luminance 0.046; OKLCH L 37.9% C 0.183 H 283.8°. Best body text is #FFFFFF at 10.93:1 contrast (WCAG AA passes).

Color values

HEX#3E229D
RGBrgb(62, 34, 157)
HSLhsl(254, 64%, 37%)
HSVhsv(254, 78%, 62%)
CMYKcmyk(60.5%, 78.3%, 0%, 38.4%)
CIE-LABlab(25.57, 45.66, -61.75)
CIE-LCHlch(25.57, 76.80, 306.48°)
OKLaboklab(37.88% 0.0438 -0.178)
OKLCHoklch(37.88% 0.183 283.8)
XYZxyz(8.6426, 4.6019, 32.3246)
Luminance0.0460 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E229D #819D22
analogous
#22439D #3E229D #7C229D
triadic
#3E229D #9D3E22 #229D3E
tetradic
#3E229D #9D2243 #819D22 #229D7C
square
#3E229D #9D2243 #819D22 #229D7C
split-complementary
#3E229D #9D7C22 #439D22
monochromatic
#160C38 #2A176B #3E229D #522DCF #7A5DDC

Accessibility & contrast

On white

10.93
#3E229D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.92
#3E229D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E229D
10.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E229D#FFFFFF#000000##FFFFFF
##3E229D1.0010.931.9210.93
#FFFFFF10.931.0021.001.00
#0000001.9221.001.0021.00
##FFFFFF10.931.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #3e229d;
/* rgb */ color: rgb(62, 34, 157);
/* oklch */ color: oklch(37.9% 0.183 283.8);
Tailwind
colors: {
  custom: {
    50: '#7f61bb',
    500: '#3e229d',
    950: '#000000',
  },
}
SCSS
$custom: #3e229d;
$custom-light: #7f61bb;
$custom-dark: #000000;
JSON
{
  "hex": "#3e229d",
  "rgb": {
    "r": 62,
    "g": 34,
    "b": 157
  },
  "hsl": {
    "h": 253.659,
    "s": 64.398,
    "l": 37.451
  },
  "oklch": {
    "l": 0.3788,
    "c": 0.1833,
    "h": 283.8
  },
  "luminance": 0.04603
}

Semantic roles & 50–950 ramp

primary
#3E229D
secondary
#A9C15A
accent
#E740C1
background
#F8F5FB
surface
#EFEAF6
border
#CAC6D0
text
#0B0512
muted
#7C7981

Preview Lab

Preview with #3E229D

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

Preview Lab → · Contrast checker → · Palette generator →

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