#3F17A0#3F17A0

#3F17A0 is a dark, vivid violet. Relative luminance 0.042; OKLCH L 37.2% C 0.196 H 285.0°. Best body text is #FFFFFF at 11.40:1 contrast (WCAG AA passes).

Color values

HEX#3F17A0
RGBrgb(63, 23, 160)
HSLhsl(258, 75%, 36%)
HSVhsv(258, 86%, 63%)
CMYKcmyk(60.6%, 85.6%, 0%, 37.3%)
CIE-LABlab(24.34, 51.43, -65.60)
CIE-LCHlch(24.34, 83.36, 308.10°)
OKLaboklab(37.15% 0.0506 -0.189)
OKLCHoklch(37.15% 0.196 285)
XYZxyz(8.6995, 4.2071, 33.6045)
Luminance0.0421 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F17A0 #78A017
analogous
#1734A0 #3F17A0 #8317A0
triadic
#3F17A0 #A03F17 #17A03F
tetradic
#3F17A0 #A01734 #78A017 #17A083
square
#3F17A0 #A01734 #78A017 #17A083
split-complementary
#3F17A0 #A08317 #34A017
monochromatic
#150835 #2A0F6A #3F17A0 #541FD6 #794CE5

Accessibility & contrast

On white

11.40
#3F17A0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.84
#3F17A0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F17A0
11.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F17A0#FFFFFF#000000##FFFFFF
##3F17A01.0011.401.8411.40
#FFFFFF11.401.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003DA4
Deuteranopia (green-blind)
#00369E
Tritanopia (blue-blind)
#00435E
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #3f17a0;
/* rgb */ color: rgb(63, 23, 160);
/* oklch */ color: oklch(37.2% 0.196 285.0);
Tailwind
colors: {
  custom: {
    50: '#815cbd',
    500: '#3f17a0',
    950: '#000000',
  },
}
SCSS
$custom: #3f17a0;
$custom-light: #815cbd;
$custom-dark: #000000;
JSON
{
  "hex": "#3f17a0",
  "rgb": {
    "r": 63,
    "g": 23,
    "b": 160
  },
  "hsl": {
    "h": 257.518,
    "s": 74.863,
    "l": 35.882
  },
  "oklch": {
    "l": 0.37153,
    "c": 0.19571,
    "h": 285
  },
  "luminance": 0.04208
}

Semantic roles & 50–950 ramp

primary
#3F17A0
secondary
#A3C74C
accent
#F136BB
background
#F8F5FB
surface
#F0E9F7
border
#CBC5D0
text
#0C0412
muted
#7D7981

Preview Lab

Preview with #3F17A0

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

Preview Lab → · Contrast checker → · Palette generator →

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