#3F22A5#3F22A5

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

Color values

HEX#3F22A5
RGBrgb(63, 34, 165)
HSLhsl(253, 66%, 39%)
HSVhsv(253, 79%, 65%)
CMYKcmyk(61.8%, 79.4%, 0%, 35.3%)
CIE-LABlab(26.50, 48.14, -65.08)
CIE-LCHlch(26.50, 80.95, 306.49°)
OKLaboklab(38.8% 0.043 -0.1877)
OKLCHoklch(38.8% 0.193 282.9)
XYZxyz(9.4113, 4.9168, 36.0431)
Luminance0.0492 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F22A5 #88A522
analogous
#2247A5 #3F22A5 #8122A5
triadic
#3F22A5 #A53F22 #22A53F
tetradic
#3F22A5 #A52247 #88A522 #22A581
square
#3F22A5 #A52247 #88A522 #22A581
split-complementary
#3F22A5 #A58122 #47A522
monochromatic
#180D40 #2C1872 #3F22A5 #5430D4 #7E63DF

Accessibility & contrast

On white

10.59
#3F22A5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3F22A5
10.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F22A5#FFFFFF#000000##FFFFFF
##3F22A51.0010.591.9810.59
#FFFFFF10.591.0021.001.00
#0000001.9821.001.0021.00
##FFFFFF10.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0043A9
Deuteranopia (green-blind)
#003AA3
Tritanopia (blue-blind)
#004963
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #3f22a5;
/* rgb */ color: rgb(63, 34, 165);
/* oklch */ color: oklch(38.8% 0.193 282.9);
Tailwind
colors: {
  custom: {
    50: '#8162c1',
    500: '#3f22a5',
    950: '#000000',
  },
}
SCSS
$custom: #3f22a5;
$custom-light: #8162c1;
$custom-dark: #000000;
JSON
{
  "hex": "#3f22a5",
  "rgb": {
    "r": 63,
    "g": 34,
    "b": 165
  },
  "hsl": {
    "h": 253.282,
    "s": 65.829,
    "l": 39.02
  },
  "oklch": {
    "l": 0.38798,
    "c": 0.19253,
    "h": 282.9
  },
  "luminance": 0.04917
}

Semantic roles & 50–950 ramp

primary
#3F22A5
secondary
#AEC45F
accent
#E93FC3
background
#F8F6FC
surface
#F0EBF8
border
#CBC6D1
text
#0C0512
muted
#7D7A81

Preview Lab

Preview with #3F22A5

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

Preview Lab → · Contrast checker → · Palette generator →

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