#3F1EA8#3F1EA8

#3F1EA8 is a dark, vivid violet. Relative luminance 0.048; OKLCH L 38.7% C 0.199 H 282.8°. Best body text is #FFFFFF at 10.70:1 contrast (WCAG AA passes).

Color values

HEX#3F1EA8
RGBrgb(63, 30, 168)
HSLhsl(254, 70%, 39%)
HSVhsv(254, 82%, 66%)
CMYKcmyk(62.5%, 82.1%, 0%, 34.1%)
CIE-LABlab(26.19, 50.83, -67.40)
CIE-LCHlch(26.19, 84.42, 307.02°)
OKLaboklab(38.68% 0.0443 -0.1944)
OKLCHoklch(38.68% 0.199 282.8)
XYZxyz(9.5799, 4.8118, 37.4621)
Luminance0.0481 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F1EA8 #87A81E
analogous
#1E42A8 #3F1EA8 #841EA8
triadic
#3F1EA8 #A83F1E #1EA83F
tetradic
#3F1EA8 #A81E42 #87A81E #1EA884
square
#3F1EA8 #A81E42 #87A81E #1EA884
split-complementary
#3F1EA8 #A8841E #42A81E
monochromatic
#180B40 #2C1574 #3F1EA8 #542AD9 #7E5EE2

Accessibility & contrast

On white

10.70
#3F1EA8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3F1EA8
10.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F1EA8#FFFFFF#000000##FFFFFF
##3F1EA81.0010.701.9610.70
#FFFFFF10.701.0021.001.00
#0000001.9621.001.0021.00
##FFFFFF10.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0042AC
Deuteranopia (green-blind)
#0039A6
Tritanopia (blue-blind)
#004964
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #3f1ea8;
/* rgb */ color: rgb(63, 30, 168);
/* oklch */ color: oklch(38.7% 0.199 282.8);
Tailwind
colors: {
  custom: {
    50: '#8260c3',
    500: '#3f1ea8',
    950: '#000000',
  },
}
SCSS
$custom: #3f1ea8;
$custom-light: #8260c3;
$custom-dark: #000000;
JSON
{
  "hex": "#3f1ea8",
  "rgb": {
    "r": 63,
    "g": 30,
    "b": 168
  },
  "hsl": {
    "h": 254.348,
    "s": 69.697,
    "l": 38.824
  },
  "oklch": {
    "l": 0.38682,
    "c": 0.19936,
    "h": 282.8
  },
  "luminance": 0.04812
}

Semantic roles & 50–950 ramp

primary
#3F1EA8
secondary
#ADC75B
accent
#ED3BC2
background
#F8F5FC
surface
#F0EAF8
border
#CBC6D1
text
#0C0513
muted
#7D7982

Preview Lab

Preview with #3F1EA8

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

Preview Lab → · Contrast checker → · Palette generator →

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