#3E22A6#3E22A6

#3E22A6 is a dark, vivid violet. Relative luminance 0.049; OKLCH L 38.8% C 0.194 H 282.3°. Best body text is #FFFFFF at 10.58:1 contrast (WCAG AA passes).

Color values

HEX#3E22A6
RGBrgb(62, 34, 166)
HSLhsl(253, 66%, 39%)
HSVhsv(253, 80%, 65%)
CMYKcmyk(62.7%, 79.5%, 0%, 34.9%)
CIE-LABlab(26.51, 48.32, -65.67)
CIE-LCHlch(26.51, 81.54, 306.35°)
OKLaboklab(38.81% 0.0411 -0.1894)
OKLCHoklch(38.81% 0.194 282.3)
XYZxyz(9.4394, 4.9207, 36.5214)
Luminance0.0492 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E22A6 #8AA622
analogous
#2248A6 #3E22A6 #8022A6
triadic
#3E22A6 #A63E22 #22A63E
tetradic
#3E22A6 #A62248 #8AA622 #22A680
square
#3E22A6 #A62248 #8AA622 #22A680
split-complementary
#3E22A6 #A68022 #48A622
monochromatic
#180D40 #2B1873 #3E22A6 #5330D5 #7E63DF

Accessibility & contrast

On white

10.58
#3E22A6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.98
#3E22A6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E22A6
10.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E22A6#FFFFFF#000000##FFFFFF
##3E22A61.0010.581.9810.58
#FFFFFF10.581.0021.001.00
#0000001.9821.001.0021.00
##FFFFFF10.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0043AA
Deuteranopia (green-blind)
#003AA4
Tritanopia (blue-blind)
#004964
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #3e22a6;
/* rgb */ color: rgb(62, 34, 166);
/* oklch */ color: oklch(38.8% 0.194 282.3);
Tailwind
colors: {
  custom: {
    50: '#8162c2',
    500: '#3e22a6',
    950: '#000000',
  },
}
SCSS
$custom: #3e22a6;
$custom-light: #8162c2;
$custom-dark: #000000;
JSON
{
  "hex": "#3e22a6",
  "rgb": {
    "r": 62,
    "g": 34,
    "b": 166
  },
  "hsl": {
    "h": 252.727,
    "s": 66,
    "l": 39.216
  },
  "oklch": {
    "l": 0.38814,
    "c": 0.19384,
    "h": 282.3
  },
  "luminance": 0.04921
}

Semantic roles & 50–950 ramp

primary
#3E22A6
secondary
#AFC45F
accent
#E93FC5
background
#F8F6FC
surface
#F0EBF8
border
#CBC6D1
text
#0C0513
muted
#7D7A82

Preview Lab

Preview with #3E22A6

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

Preview Lab → · Contrast checker → · Palette generator →

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