#3F22A0#3F22A0

#3F22A0 is a dark, vivid violet. Relative luminance 0.047; OKLCH L 38.3% C 0.187 H 283.8°. Best body text is #FFFFFF at 10.78:1 contrast (WCAG AA passes).

Color values

HEX#3F22A0
RGBrgb(63, 34, 160)
HSLhsl(254, 65%, 38%)
HSVhsv(254, 79%, 63%)
CMYKcmyk(60.6%, 78.8%, 0%, 37.3%)
CIE-LABlab(25.98, 46.67, -62.90)
CIE-LCHlch(25.98, 78.33, 306.57°)
OKLaboklab(38.28% 0.0444 -0.1813)
OKLCHoklch(38.28% 0.187 283.8)
XYZxyz(8.9651, 4.7383, 33.6931)
Luminance0.0474 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F22A0 #83A022
analogous
#2244A0 #3F22A0 #7E22A0
triadic
#3F22A0 #A03F22 #22A03F
tetradic
#3F22A0 #A02244 #83A022 #22A07E
square
#3F22A0 #A02244 #83A022 #22A07E
split-complementary
#3F22A0 #A07E22 #44A022
monochromatic
#170D3B #2B176E #3F22A0 #532DD2 #7C5FDD

Accessibility & contrast

On white

10.78
#3F22A0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.95
#3F22A0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F22A0
10.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F22A0#FFFFFF#000000##FFFFFF
##3F22A01.0010.781.9510.78
#FFFFFF10.781.0021.001.00
#0000001.9521.001.0021.00
##FFFFFF10.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0041A4
Deuteranopia (green-blind)
#00399E
Tritanopia (blue-blind)
#004760
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #3f22a0;
/* rgb */ color: rgb(63, 34, 160);
/* oklch */ color: oklch(38.3% 0.187 283.8);
Tailwind
colors: {
  custom: {
    50: '#8061bd',
    500: '#3f22a0',
    950: '#000000',
  },
}
SCSS
$custom: #3f22a0;
$custom-light: #8061bd;
$custom-dark: #000000;
JSON
{
  "hex": "#3f22a0",
  "rgb": {
    "r": 63,
    "g": 34,
    "b": 160
  },
  "hsl": {
    "h": 253.81,
    "s": 64.948,
    "l": 38.039
  },
  "oklch": {
    "l": 0.3828,
    "c": 0.1867,
    "h": 283.8
  },
  "luminance": 0.04739
}

Semantic roles & 50–950 ramp

primary
#3F22A0
secondary
#AAC25C
accent
#E840C1
background
#F8F5FB
surface
#F0EAF7
border
#CBC6D0
text
#0B0512
muted
#7C7981

Preview Lab

Preview with #3F22A0

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

Preview Lab → · Contrast checker → · Palette generator →

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