#3F1E8A#3F1E8A

#3F1E8A is a dark, vivid violet. Relative luminance 0.038; OKLCH L 35.6% C 0.165 H 289.1°. Best body text is #FFFFFF at 11.90:1 contrast (WCAG AA passes).

Color values

HEX#3F1E8A
RGBrgb(63, 30, 138)
HSLhsl(258, 64%, 33%)
HSVhsv(258, 78%, 54%)
CMYKcmyk(54.3%, 78.3%, 0%, 45.9%)
CIE-LABlab(23.07, 42.19, -54.13)
CIE-LCHlch(23.07, 68.63, 307.93°)
OKLaboklab(35.58% 0.0538 -0.1556)
OKLCHoklch(35.58% 0.165 289.1)
XYZxyz(7.1003, 3.8200, 24.4030)
Luminance0.0382 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F1E8A #698A1E
analogous
#1E338A #3F1E8A #751E8A
triadic
#3F1E8A #8A3F1E #1E8A3F
tetradic
#3F1E8A #8A1E33 #698A1E #1E8A75
square
#3F1E8A #8A1E33 #698A1E #1E8A75
split-complementary
#3F1E8A #8A751E #338A1E
monochromatic
#110825 #281358 #3F1E8A #5629BC #764BD8

Accessibility & contrast

On white

11.90
#3F1E8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.76
#3F1E8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F1E8A
11.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F1E8A#FFFFFF#000000##FFFFFF
##3F1E8A1.0011.901.7611.90
#FFFFFF11.901.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00398D
Deuteranopia (green-blind)
#003488
Tritanopia (blue-blind)
#223C53
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #3f1e8a;
/* rgb */ color: rgb(63, 30, 138);
/* oklch */ color: oklch(35.6% 0.165 289.1);
Tailwind
colors: {
  custom: {
    50: '#7d5ead',
    500: '#3f1e8a',
    950: '#000000',
  },
}
SCSS
$custom: #3f1e8a;
$custom-light: #7d5ead;
$custom-dark: #000000;
JSON
{
  "hex": "#3f1e8a",
  "rgb": {
    "r": 63,
    "g": 30,
    "b": 138
  },
  "hsl": {
    "h": 258.333,
    "s": 64.286,
    "l": 32.941
  },
  "oklch": {
    "l": 0.35576,
    "c": 0.16467,
    "h": 289.1
  },
  "luminance": 0.0382
}

Semantic roles & 50–950 ramp

primary
#3F1E8A
secondary
#98BA4A
accent
#E741B4
background
#F8F5FA
surface
#EFE9F4
border
#CAC5CE
text
#0B0510
muted
#7C797F

Preview Lab

Preview with #3F1E8A

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

Preview Lab → · Contrast checker → · Palette generator →

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