#3F22A6#3F22A6

#3F22A6 is a dark, vivid violet. Relative luminance 0.050; OKLCH L 38.9% C 0.194 H 282.7°. Best body text is #FFFFFF at 10.55:1 contrast (WCAG AA passes).

Color values

HEX#3F22A6
RGBrgb(63, 34, 166)
HSLhsl(253, 66%, 39%)
HSVhsv(253, 80%, 65%)
CMYKcmyk(62%, 79.5%, 0%, 34.9%)
CIE-LABlab(26.60, 48.44, -65.51)
CIE-LCHlch(26.60, 81.48, 306.48°)
OKLaboklab(38.9% 0.0427 -0.1889)
OKLCHoklch(38.9% 0.194 282.7)
XYZxyz(9.5027, 4.9533, 36.5243)
Luminance0.0495 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F22A6 #89A622
analogous
#2247A6 #3F22A6 #8122A6
triadic
#3F22A6 #A63F22 #22A63F
tetradic
#3F22A6 #A62247 #89A622 #22A681
square
#3F22A6 #A62247 #89A622 #22A681
split-complementary
#3F22A6 #A68122 #47A622
monochromatic
#180D40 #2C1873 #3F22A6 #5530D5 #7E63DF

Accessibility & contrast

On white

10.55
#3F22A6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.99
#3F22A6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F22A6
10.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F22A6#FFFFFF#000000##FFFFFF
##3F22A61.0010.551.9910.55
#FFFFFF10.551.0021.001.00
#0000001.9921.001.0021.00
##FFFFFF10.551.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: #3f22a6;
/* rgb */ color: rgb(63, 34, 166);
/* oklch */ color: oklch(38.9% 0.194 282.7);
Tailwind
colors: {
  custom: {
    50: '#8262c2',
    500: '#3f22a6',
    950: '#000000',
  },
}
SCSS
$custom: #3f22a6;
$custom-light: #8262c2;
$custom-dark: #000000;
JSON
{
  "hex": "#3f22a6",
  "rgb": {
    "r": 63,
    "g": 34,
    "b": 166
  },
  "hsl": {
    "h": 253.182,
    "s": 66,
    "l": 39.216
  },
  "oklch": {
    "l": 0.38902,
    "c": 0.19369,
    "h": 282.7
  },
  "luminance": 0.04954
}

Semantic roles & 50–950 ramp

primary
#3F22A6
secondary
#AEC45F
accent
#E93FC4
background
#F8F6FC
surface
#F0EBF8
border
#CBC6D1
text
#0C0513
muted
#7D7A82

Preview Lab

Preview with #3F22A6

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

Preview Lab → · Contrast checker → · Palette generator →

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