#3F1EA6#3F1EA6

#3F1EA6 is a dark, vivid violet. Relative luminance 0.047; OKLCH L 38.5% C 0.197 H 283.2°. Best body text is #FFFFFF at 10.78:1 contrast (WCAG AA passes).

Color values

HEX#3F1EA6
RGBrgb(63, 30, 166)
HSLhsl(255, 69%, 38%)
HSVhsv(255, 82%, 65%)
CMYKcmyk(62%, 81.9%, 0%, 34.9%)
CIE-LABlab(25.97, 50.26, -66.55)
CIE-LCHlch(25.97, 83.40, 307.06°)
OKLaboklab(38.47% 0.0449 -0.1919)
OKLCHoklch(38.47% 0.197 283.2)
XYZxyz(9.3950, 4.7378, 36.4884)
Luminance0.0474 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F1EA6 #85A61E
analogous
#1E41A6 #3F1EA6 #831EA6
triadic
#3F1EA6 #A63F1E #1EA63F
tetradic
#3F1EA6 #A61E41 #85A61E #1EA683
square
#3F1EA6 #A61E41 #85A61E #1EA683
split-complementary
#3F1EA6 #A6831E #41A61E
monochromatic
#180B3E #2B1572 #3F1EA6 #5329D8 #7D5DE2

Accessibility & contrast

On white

10.78
#3F1EA6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.95
#3F1EA6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F1EA6
10.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F1EA6#FFFFFF#000000##FFFFFF
##3F1EA61.0010.781.9510.78
#FFFFFF10.781.0021.001.00
#0000001.9521.001.0021.00
##FFFFFF10.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0042AA
Deuteranopia (green-blind)
#0039A4
Tritanopia (blue-blind)
#004863
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #3f1ea6;
/* rgb */ color: rgb(63, 30, 166);
/* oklch */ color: oklch(38.5% 0.197 283.2);
Tailwind
colors: {
  custom: {
    50: '#8260c2',
    500: '#3f1ea6',
    950: '#000000',
  },
}
SCSS
$custom: #3f1ea6;
$custom-light: #8260c2;
$custom-dark: #000000;
JSON
{
  "hex": "#3f1ea6",
  "rgb": {
    "r": 63,
    "g": 30,
    "b": 166
  },
  "hsl": {
    "h": 254.559,
    "s": 69.388,
    "l": 38.431
  },
  "oklch": {
    "l": 0.38468,
    "c": 0.1971,
    "h": 283.2
  },
  "luminance": 0.04738
}

Semantic roles & 50–950 ramp

primary
#3F1EA6
secondary
#ACC65A
accent
#EC3CC1
background
#F8F5FC
surface
#F0EAF8
border
#CBC6D1
text
#0C0513
muted
#7D7982

Preview Lab

Preview with #3F1EA6

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

Preview Lab → · Contrast checker → · Palette generator →

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