#3F17A1#3F17A1

#3F17A1 is a dark, vivid violet. Relative luminance 0.042; OKLCH L 37.3% C 0.197 H 284.8°. Best body text is #FFFFFF at 11.36:1 contrast (WCAG AA passes).

Color values

HEX#3F17A1
RGBrgb(63, 23, 161)
HSLhsl(257, 75%, 36%)
HSVhsv(257, 86%, 63%)
CMYKcmyk(60.9%, 85.7%, 0%, 36.9%)
CIE-LABlab(24.46, 51.71, -66.02)
CIE-LCHlch(24.46, 83.86, 308.07°)
OKLaboklab(37.26% 0.0503 -0.1903)
OKLCHoklch(37.26% 0.197 284.8)
XYZxyz(8.7873, 4.2422, 34.0671)
Luminance0.0424 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F17A1 #79A117
analogous
#1734A1 #3F17A1 #8417A1
triadic
#3F17A1 #A13F17 #17A13F
tetradic
#3F17A1 #A11734 #79A117 #17A184
square
#3F17A1 #A11734 #79A117 #17A184
split-complementary
#3F17A1 #A18417 #34A117
monochromatic
#150836 #2A0F6B #3F17A1 #541FD7 #794DE6

Accessibility & contrast

On white

11.36
#3F17A1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.85
#3F17A1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F17A1
11.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F17A1#FFFFFF#000000##FFFFFF
##3F17A11.0011.361.8511.36
#FFFFFF11.361.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.361.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #3f17a1;
/* rgb */ color: rgb(63, 23, 161);
/* oklch */ color: oklch(37.3% 0.197 284.8);
Tailwind
colors: {
  custom: {
    50: '#815cbe',
    500: '#3f17a1',
    950: '#000000',
  },
}
SCSS
$custom: #3f17a1;
$custom-light: #815cbe;
$custom-dark: #000000;
JSON
{
  "hex": "#3f17a1",
  "rgb": {
    "r": 63,
    "g": 23,
    "b": 161
  },
  "hsl": {
    "h": 257.391,
    "s": 75,
    "l": 36.078
  },
  "oklch": {
    "l": 0.37262,
    "c": 0.19681,
    "h": 284.8
  },
  "luminance": 0.04243
}

Semantic roles & 50–950 ramp

primary
#3F17A1
secondary
#A4C74C
accent
#F236BB
background
#F8F5FB
surface
#F0E9F7
border
#CBC5D0
text
#0C0412
muted
#7D7981

Preview Lab

Preview with #3F17A1

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

Preview Lab → · Contrast checker → · Palette generator →

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