#3F1EA1#3F1EA1

#3F1EA1 is a dark, vivid violet. Relative luminance 0.046; OKLCH L 37.9% C 0.191 H 284.1°. Best body text is #FFFFFF at 10.98:1 contrast (WCAG AA passes).

Color values

HEX#3F1EA1
RGBrgb(63, 30, 161)
HSLhsl(255, 69%, 37%)
HSVhsv(255, 81%, 63%)
CMYKcmyk(60.9%, 81.4%, 0%, 36.9%)
CIE-LABlab(25.44, 48.83, -64.40)
CIE-LCHlch(25.44, 80.82, 307.17°)
OKLaboklab(37.94% 0.0466 -0.1857)
OKLCHoklch(37.94% 0.191 284.1)
XYZxyz(8.9452, 4.5579, 34.1197)
Luminance0.0456 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F1EA1 #80A11E
analogous
#1E3EA1 #3F1EA1 #811EA1
triadic
#3F1EA1 #A13F1E #1EA13F
tetradic
#3F1EA1 #A11E3E #80A11E #1EA181
square
#3F1EA1 #A11E3E #80A11E #1EA181
split-complementary
#3F1EA1 #A1811E #3EA11E
monochromatic
#170B3A #2B146D #3F1EA1 #5328D5 #7B59E0

Accessibility & contrast

On white

10.98
#3F1EA1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.91
#3F1EA1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F1EA1
10.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F1EA1#FFFFFF#000000##FFFFFF
##3F1EA11.0010.981.9110.98
#FFFFFF10.981.0021.001.00
#0000001.9121.001.0021.00
##FFFFFF10.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0040A5
Deuteranopia (green-blind)
#00389F
Tritanopia (blue-blind)
#004660
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #3f1ea1;
/* rgb */ color: rgb(63, 30, 161);
/* oklch */ color: oklch(37.9% 0.191 284.1);
Tailwind
colors: {
  custom: {
    50: '#815fbe',
    500: '#3f1ea1',
    950: '#000000',
  },
}
SCSS
$custom: #3f1ea1;
$custom-light: #815fbe;
$custom-dark: #000000;
JSON
{
  "hex": "#3f1ea1",
  "rgb": {
    "r": 63,
    "g": 30,
    "b": 161
  },
  "hsl": {
    "h": 255.115,
    "s": 68.586,
    "l": 37.451
  },
  "oklch": {
    "l": 0.37936,
    "c": 0.19141,
    "h": 284.1
  },
  "luminance": 0.04559
}

Semantic roles & 50–950 ramp

primary
#3F1EA1
secondary
#A8C457
accent
#EB3CBF
background
#F8F5FB
surface
#F0EAF7
border
#CBC6D0
text
#0C0512
muted
#7D7981

Preview Lab

Preview with #3F1EA1

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

Preview Lab → · Contrast checker → · Palette generator →

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