#3F1EA7#3F1EA7

#3F1EA7 is a dark, vivid violet. Relative luminance 0.048; OKLCH L 38.6% C 0.198 H 283.0°. Best body text is #FFFFFF at 10.74:1 contrast (WCAG AA passes).

Color values

HEX#3F1EA7
RGBrgb(63, 30, 167)
HSLhsl(254, 70%, 39%)
HSVhsv(254, 82%, 65%)
CMYKcmyk(62.3%, 82%, 0%, 34.5%)
CIE-LABlab(26.08, 50.54, -66.97)
CIE-LCHlch(26.08, 83.91, 307.04°)
OKLaboklab(38.57% 0.0446 -0.1931)
OKLCHoklch(38.57% 0.198 283)
XYZxyz(9.4871, 4.7747, 36.9734)
Luminance0.0478 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F1EA7 #86A71E
analogous
#1E41A7 #3F1EA7 #831EA7
triadic
#3F1EA7 #A73F1E #1EA73F
tetradic
#3F1EA7 #A71E41 #86A71E #1EA783
square
#3F1EA7 #A71E41 #86A71E #1EA783
split-complementary
#3F1EA7 #A7831E #41A71E
monochromatic
#180B3F #2B1573 #3F1EA7 #542AD9 #7D5DE2

Accessibility & contrast

On white

10.74
#3F1EA7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.96
#3F1EA7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F1EA7
10.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F1EA7#FFFFFF#000000##FFFFFF
##3F1EA71.0010.741.9610.74
#FFFFFF10.741.0021.001.00
#0000001.9621.001.0021.00
##FFFFFF10.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0042AB
Deuteranopia (green-blind)
#0039A5
Tritanopia (blue-blind)
#004864
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #3f1ea7;
/* rgb */ color: rgb(63, 30, 167);
/* oklch */ color: oklch(38.6% 0.198 283.0);
Tailwind
colors: {
  custom: {
    50: '#8260c2',
    500: '#3f1ea7',
    950: '#000000',
  },
}
SCSS
$custom: #3f1ea7;
$custom-light: #8260c2;
$custom-dark: #000000;
JSON
{
  "hex": "#3f1ea7",
  "rgb": {
    "r": 63,
    "g": 30,
    "b": 167
  },
  "hsl": {
    "h": 254.453,
    "s": 69.543,
    "l": 38.627
  },
  "oklch": {
    "l": 0.38575,
    "c": 0.19823,
    "h": 283
  },
  "luminance": 0.04775
}

Semantic roles & 50–950 ramp

primary
#3F1EA7
secondary
#ACC65B
accent
#EC3BC2
background
#F8F5FC
surface
#F0EAF8
border
#CBC6D1
text
#0C0513
muted
#7D7982

Preview Lab

Preview with #3F1EA7

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

Preview Lab → · Contrast checker → · Palette generator →

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