#3F22B5#3F22B5

#3F22B5 is a dark, highly saturated violet. Relative luminance 0.055; OKLCH L 40.5% C 0.211 H 280.4°. Best body text is #FFFFFF at 9.96:1 contrast (WCAG AA passes).

Color values

HEX#3F22B5
RGBrgb(63, 34, 181)
HSLhsl(252, 68%, 42%)
HSVhsv(252, 81%, 71%)
CMYKcmyk(65.2%, 81.2%, 0%, 29%)
CIE-LABlab(28.21, 52.80, -71.86)
CIE-LCHlch(28.21, 89.17, 306.31°)
OKLaboklab(40.49% 0.038 -0.2074)
OKLCHoklch(40.49% 0.211 280.4)
XYZxyz(10.9598, 5.5361, 44.1981)
Luminance0.0554 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F22B5 #98B522
analogous
#224EB5 #3F22B5 #8922B5
triadic
#3F22B5 #B53F22 #22B53F
tetradic
#3F22B5 #B5224E #98B522 #22B589
square
#3F22B5 #B5224E #98B522 #22B589
split-complementary
#3F22B5 #B58922 #4EB522
monochromatic
#1B0F4E #2D1881 #3F22B5 #5A3ADA #856EE4

Accessibility & contrast

On white

9.96
#3F22B5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.11
#3F22B5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F22B5
9.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F22B5#FFFFFF#000000##FFFFFF
##3F22B51.009.962.119.96
#FFFFFF9.961.0021.001.00
#0000002.1121.001.0021.00
##FFFFFF9.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0048B9
Deuteranopia (green-blind)
#003DB2
Tritanopia (blue-blind)
#004F6D
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #3f22b5;
/* rgb */ color: rgb(63, 34, 181);
/* oklch */ color: oklch(40.5% 0.211 280.4);
Tailwind
colors: {
  custom: {
    50: '#8563cd',
    500: '#3f22b5',
    950: '#000000',
  },
}
SCSS
$custom: #3f22b5;
$custom-light: #8563cd;
$custom-dark: #000000;
JSON
{
  "hex": "#3f22b5",
  "rgb": {
    "r": 63,
    "g": 34,
    "b": 181
  },
  "hsl": {
    "h": 251.837,
    "s": 68.372,
    "l": 42.157
  },
  "oklch": {
    "l": 0.40494,
    "c": 0.21089,
    "h": 280.4
  },
  "luminance": 0.05537
}

Semantic roles & 50–950 ramp

primary
#3F22B5
secondary
#B7CA69
accent
#EB3DC9
background
#F8F6FC
surface
#F0EBF9
border
#CBC6D2
text
#0C0514
muted
#7D7A82

Preview Lab

Preview with #3F22B5

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

Preview Lab → · Contrast checker → · Palette generator →

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