#3E22B1#3E22B1

#3E22B1 is a dark, highly saturated violet. Relative luminance 0.053; OKLCH L 40.0% C 0.207 H 280.5°. Best body text is #FFFFFF at 10.15:1 contrast (WCAG AA passes).

Color values

HEX#3E22B1
RGBrgb(62, 34, 177)
HSLhsl(252, 68%, 41%)
HSVhsv(252, 81%, 69%)
CMYKcmyk(65%, 80.8%, 0%, 30.6%)
CIE-LABlab(27.69, 51.55, -70.34)
CIE-LCHlch(27.69, 87.21, 306.23°)
OKLaboklab(39.98% 0.0378 -0.203)
OKLCHoklch(39.98% 0.207 280.5)
XYZxyz(10.4919, 5.3417, 42.0646)
Luminance0.0534 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E22B1 #95B122
analogous
#224EB1 #3E22B1 #8622B1
triadic
#3E22B1 #B13E22 #22B13E
tetradic
#3E22B1 #B1224E #95B122 #22B186
square
#3E22B1 #B1224E #95B122 #22B186
split-complementary
#3E22B1 #B18622 #4EB122
monochromatic
#1A0E4A #2C187E #3E22B1 #5738D9 #826BE3

Accessibility & contrast

On white

10.15
#3E22B1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.07
#3E22B1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E22B1
10.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E22B1#FFFFFF#000000##FFFFFF
##3E22B11.0010.152.0710.15
#FFFFFF10.151.0021.001.00
#0000002.0721.001.0021.00
##FFFFFF10.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0046B5
Deuteranopia (green-blind)
#003CAF
Tritanopia (blue-blind)
#004E6A
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #3e22b1;
/* rgb */ color: rgb(62, 34, 177);
/* oklch */ color: oklch(40.0% 0.207 280.5);
Tailwind
colors: {
  custom: {
    50: '#8362ca',
    500: '#3e22b1',
    950: '#000000',
  },
}
SCSS
$custom: #3e22b1;
$custom-light: #8362ca;
$custom-dark: #000000;
JSON
{
  "hex": "#3e22b1",
  "rgb": {
    "r": 62,
    "g": 34,
    "b": 177
  },
  "hsl": {
    "h": 251.748,
    "s": 67.773,
    "l": 41.373
  },
  "oklch": {
    "l": 0.39982,
    "c": 0.20652,
    "h": 280.5
  },
  "luminance": 0.05343
}

Semantic roles & 50–950 ramp

primary
#3E22B1
secondary
#B5C966
accent
#EB3DC9
background
#F8F6FC
surface
#F0EBF9
border
#CBC6D2
text
#0C0513
muted
#7D7A82

Preview Lab

Preview with #3E22B1

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

Preview Lab → · Contrast checker → · Palette generator →

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