#3F22A4#3F22A4

#3F22A4 is a dark, vivid violet. Relative luminance 0.049; OKLCH L 38.7% C 0.191 H 283.1°. Best body text is #FFFFFF at 10.63:1 contrast (WCAG AA passes).

Color values

HEX#3F22A4
RGBrgb(63, 34, 164)
HSLhsl(253, 66%, 39%)
HSVhsv(253, 79%, 64%)
CMYKcmyk(61.6%, 79.3%, 0%, 35.7%)
CIE-LABlab(26.39, 47.85, -64.65)
CIE-LCHlch(26.39, 80.43, 306.51°)
OKLaboklab(38.69% 0.0432 -0.1864)
OKLCHoklch(38.69% 0.191 283.1)
XYZxyz(9.3207, 4.8805, 35.5656)
Luminance0.0488 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F22A4 #87A422
analogous
#2246A4 #3F22A4 #8022A4
triadic
#3F22A4 #A43F22 #22A43F
tetradic
#3F22A4 #A42246 #87A422 #22A480
square
#3F22A4 #A42246 #87A422 #22A480
split-complementary
#3F22A4 #A48022 #46A422
monochromatic
#180D3F #2C1771 #3F22A4 #542FD4 #7E62DE

Accessibility & contrast

On white

10.63
#3F22A4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3F22A4
10.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F22A4#FFFFFF#000000##FFFFFF
##3F22A41.0010.631.9810.63
#FFFFFF10.631.0021.001.00
#0000001.9821.001.0021.00
##FFFFFF10.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0042A8
Deuteranopia (green-blind)
#003AA2
Tritanopia (blue-blind)
#004963
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #3f22a4;
/* rgb */ color: rgb(63, 34, 164);
/* oklch */ color: oklch(38.7% 0.191 283.1);
Tailwind
colors: {
  custom: {
    50: '#8162c0',
    500: '#3f22a4',
    950: '#000000',
  },
}
SCSS
$custom: #3f22a4;
$custom-light: #8162c0;
$custom-dark: #000000;
JSON
{
  "hex": "#3f22a4",
  "rgb": {
    "r": 63,
    "g": 34,
    "b": 164
  },
  "hsl": {
    "h": 253.385,
    "s": 65.657,
    "l": 38.824
  },
  "oklch": {
    "l": 0.38694,
    "c": 0.19137,
    "h": 283.1
  },
  "luminance": 0.04881
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #3F22A4

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

Preview Lab → · Contrast checker → · Palette generator →

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