#3F22A8#3F22A8

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

Color values

HEX#3F22A8
RGBrgb(63, 34, 168)
HSLhsl(253, 66%, 40%)
HSVhsv(253, 80%, 66%)
CMYKcmyk(62.5%, 79.8%, 0%, 34.1%)
CIE-LABlab(26.81, 49.02, -66.37)
CIE-LCHlch(26.81, 82.52, 306.45°)
OKLaboklab(39.11% 0.042 -0.1914)
OKLCHoklch(39.11% 0.196 282.4)
XYZxyz(9.6876, 5.0273, 37.4981)
Luminance0.0503 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F22A8 #8BA822
analogous
#2248A8 #3F22A8 #8222A8
triadic
#3F22A8 #A83F22 #22A83F
tetradic
#3F22A8 #A82248 #8BA822 #22A882
square
#3F22A8 #A82248 #8BA822 #22A882
split-complementary
#3F22A8 #A88222 #48A822
monochromatic
#190D42 #2C1875 #3F22A8 #5532D5 #7F65E0

Accessibility & contrast

On white

10.47
#3F22A8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.01
#3F22A8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F22A8
10.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F22A8#FFFFFF#000000##FFFFFF
##3F22A81.0010.472.0110.47
#FFFFFF10.471.0021.001.00
#0000002.0121.001.0021.00
##FFFFFF10.471.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #3f22a8;
/* rgb */ color: rgb(63, 34, 168);
/* oklch */ color: oklch(39.1% 0.196 282.4);
Tailwind
colors: {
  custom: {
    50: '#8262c3',
    500: '#3f22a8',
    950: '#000000',
  },
}
SCSS
$custom: #3f22a8;
$custom-light: #8262c3;
$custom-dark: #000000;
JSON
{
  "hex": "#3f22a8",
  "rgb": {
    "r": 63,
    "g": 34,
    "b": 168
  },
  "hsl": {
    "h": 252.985,
    "s": 66.337,
    "l": 39.608
  },
  "oklch": {
    "l": 0.39112,
    "c": 0.19601,
    "h": 282.4
  },
  "luminance": 0.05028
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #3F22A8

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

Preview Lab → · Contrast checker → · Palette generator →

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