#3E229F#3E229F

#3E229F is a dark, vivid violet. Relative luminance 0.047; OKLCH L 38.1% C 0.186 H 283.5°. Best body text is #FFFFFF at 10.86:1 contrast (WCAG AA passes).

Color values

HEX#3E229F
RGBrgb(62, 34, 159)
HSLhsl(253, 65%, 38%)
HSVhsv(253, 79%, 62%)
CMYKcmyk(61%, 78.6%, 0%, 37.6%)
CIE-LABlab(25.78, 46.25, -62.63)
CIE-LCHlch(25.78, 77.86, 306.45°)
OKLaboklab(38.09% 0.0432 -0.1806)
OKLCHoklch(38.09% 0.186 283.5)
XYZxyz(8.8147, 4.6708, 33.2312)
Luminance0.0467 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E229F #839F22
analogous
#22449F #3E229F #7C229F
triadic
#3E229F #9F3E22 #229F3E
tetradic
#3E229F #9F2244 #839F22 #229F7C
square
#3E229F #9F2244 #839F22 #229F7C
split-complementary
#3E229F #9F7C22 #449F22
monochromatic
#170C3A #2A176D #3E229F #522DD1 #7B5FDD

Accessibility & contrast

On white

10.86
#3E229F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3E229F
10.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E229F#FFFFFF#000000##FFFFFF
##3E229F1.0010.861.9310.86
#FFFFFF10.861.0021.001.00
#0000001.9321.001.0021.00
##FFFFFF10.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0041A3
Deuteranopia (green-blind)
#00399D
Tritanopia (blue-blind)
#004760
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #3e229f;
/* rgb */ color: rgb(62, 34, 159);
/* oklch */ color: oklch(38.1% 0.186 283.5);
Tailwind
colors: {
  custom: {
    50: '#8061bd',
    500: '#3e229f',
    950: '#000000',
  },
}
SCSS
$custom: #3e229f;
$custom-light: #8061bd;
$custom-dark: #000000;
JSON
{
  "hex": "#3e229f",
  "rgb": {
    "r": 62,
    "g": 34,
    "b": 159
  },
  "hsl": {
    "h": 253.44,
    "s": 64.767,
    "l": 37.843
  },
  "oklch": {
    "l": 0.38085,
    "c": 0.18566,
    "h": 283.5
  },
  "luminance": 0.04671
}

Semantic roles & 50–950 ramp

primary
#3E229F
secondary
#ABC15B
accent
#E840C2
background
#F8F5FB
surface
#F0EAF7
border
#CBC6D0
text
#0B0512
muted
#7C7981

Preview Lab

Preview with #3E229F

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

Preview Lab → · Contrast checker → · Palette generator →

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