#3F22A2#3F22A2

#3F22A2 is a dark, vivid violet. Relative luminance 0.048; OKLCH L 38.5% C 0.189 H 283.4°. Best body text is #FFFFFF at 10.70:1 contrast (WCAG AA passes).

Color values

HEX#3F22A2
RGBrgb(63, 34, 162)
HSLhsl(254, 65%, 38%)
HSVhsv(254, 79%, 64%)
CMYKcmyk(61.1%, 79%, 0%, 36.5%)
CIE-LABlab(26.18, 47.26, -63.78)
CIE-LCHlch(26.18, 79.38, 306.54°)
OKLaboklab(38.49% 0.0439 -0.1839)
OKLCHoklch(38.49% 0.189 283.4)
XYZxyz(9.1415, 4.8088, 34.6219)
Luminance0.0481 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F22A2 #85A222
analogous
#2245A2 #3F22A2 #7F22A2
triadic
#3F22A2 #A23F22 #22A23F
tetradic
#3F22A2 #A22245 #85A222 #22A27F
square
#3F22A2 #A22245 #85A222 #22A27F
split-complementary
#3F22A2 #A27F22 #45A222
monochromatic
#180D3D #2B176F #3F22A2 #532ED3 #7D61DE

Accessibility & contrast

On white

10.70
#3F22A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.96
#3F22A2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F22A2
10.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F22A2#FFFFFF#000000##FFFFFF
##3F22A21.0010.701.9610.70
#FFFFFF10.701.0021.001.00
#0000001.9621.001.0021.00
##FFFFFF10.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0042A6
Deuteranopia (green-blind)
#003AA0
Tritanopia (blue-blind)
#004862
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #3f22a2;
/* rgb */ color: rgb(63, 34, 162);
/* oklch */ color: oklch(38.5% 0.189 283.4);
Tailwind
colors: {
  custom: {
    50: '#8162bf',
    500: '#3f22a2',
    950: '#000000',
  },
}
SCSS
$custom: #3f22a2;
$custom-light: #8162bf;
$custom-dark: #000000;
JSON
{
  "hex": "#3f22a2",
  "rgb": {
    "r": 63,
    "g": 34,
    "b": 162
  },
  "hsl": {
    "h": 253.594,
    "s": 65.306,
    "l": 38.431
  },
  "oklch": {
    "l": 0.38486,
    "c": 0.18904,
    "h": 283.4
  },
  "luminance": 0.04809
}

Semantic roles & 50–950 ramp

primary
#3F22A2
secondary
#ACC35D
accent
#E840C2
background
#F8F5FB
surface
#F0EAF7
border
#CBC6D0
text
#0C0512
muted
#7D7981

Preview Lab

Preview with #3F22A2

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

Preview Lab → · Contrast checker → · Palette generator →

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