#3E22A8#3E22A8

#3E22A8 is a dark, vivid violet. Relative luminance 0.050; OKLCH L 39.0% C 0.196 H 281.9°. Best body text is #FFFFFF at 10.51:1 contrast (WCAG AA passes).

Color values

HEX#3E22A8
RGBrgb(62, 34, 168)
HSLhsl(253, 66%, 40%)
HSVhsv(253, 80%, 66%)
CMYKcmyk(63.1%, 79.8%, 0%, 34.1%)
CIE-LABlab(26.72, 48.91, -66.53)
CIE-LCHlch(26.72, 82.58, 306.32°)
OKLaboklab(39.02% 0.0405 -0.1919)
OKLCHoklch(39.02% 0.196 281.9)
XYZxyz(9.6243, 4.9946, 37.4951)
Luminance0.0500 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E22A8 #8CA822
analogous
#2249A8 #3E22A8 #8122A8
triadic
#3E22A8 #A83E22 #22A83E
tetradic
#3E22A8 #A82249 #8CA822 #22A881
square
#3E22A8 #A82249 #8CA822 #22A881
split-complementary
#3E22A8 #A88122 #49A822
monochromatic
#180D42 #2B1875 #3E22A8 #5432D5 #7E65E0

Accessibility & contrast

On white

10.51
#3E22A8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.00
#3E22A8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E22A8
10.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E22A8#FFFFFF#000000##FFFFFF
##3E22A81.0010.512.0010.51
#FFFFFF10.511.0021.001.00
#0000002.0021.001.0021.00
##FFFFFF10.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0043AC
Deuteranopia (green-blind)
#003AA6
Tritanopia (blue-blind)
#004A65
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #3e22a8;
/* rgb */ color: rgb(62, 34, 168);
/* oklch */ color: oklch(39.0% 0.196 281.9);
Tailwind
colors: {
  custom: {
    50: '#8262c3',
    500: '#3e22a8',
    950: '#000000',
  },
}
SCSS
$custom: #3e22a8;
$custom-light: #8262c3;
$custom-dark: #000000;
JSON
{
  "hex": "#3e22a8",
  "rgb": {
    "r": 62,
    "g": 34,
    "b": 168
  },
  "hsl": {
    "h": 252.537,
    "s": 66.337,
    "l": 39.608
  },
  "oklch": {
    "l": 0.39024,
    "c": 0.19617,
    "h": 281.9
  },
  "luminance": 0.04995
}

Semantic roles & 50–950 ramp

primary
#3E22A8
secondary
#B0C561
accent
#E93FC6
background
#F8F6FC
surface
#F0EBF8
border
#CBC6D1
text
#0C0513
muted
#7D7A82

Preview Lab

Preview with #3E22A8

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

Preview Lab → · Contrast checker → · Palette generator →

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