#3F1FAB#3F1FAB

#3F1FAB is a dark, highly saturated violet. Relative luminance 0.050; OKLCH L 39.1% C 0.202 H 282.2°. Best body text is #FFFFFF at 10.52:1 contrast (WCAG AA passes).

Color values

HEX#3F1FAB
RGBrgb(63, 31, 171)
HSLhsl(254, 69%, 40%)
HSVhsv(254, 82%, 67%)
CMYKcmyk(63.2%, 81.9%, 0%, 32.9%)
CIE-LABlab(26.67, 51.25, -68.42)
CIE-LCHlch(26.67, 85.49, 306.83°)
OKLaboklab(39.11% 0.0427 -0.1974)
OKLCHoklch(39.11% 0.202 282.2)
XYZxyz(9.8883, 4.9763, 38.9596)
Luminance0.0498 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F1FAB #8BAB1F
analogous
#1F45AB #3F1FAB #851FAB
triadic
#3F1FAB #AB3F1F #1FAB3F
tetradic
#3F1FAB #AB1F45 #8BAB1F #1FAB85
square
#3F1FAB #AB1F45 #8BAB1F #1FAB85
split-complementary
#3F1FAB #AB851F #45AB1F
monochromatic
#190C43 #2C1677 #3F1FAB #552ED9 #7F62E3

Accessibility & contrast

On white

10.52
#3F1FAB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.00
#3F1FAB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F1FAB
10.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F1FAB#FFFFFF#000000##FFFFFF
##3F1FAB1.0010.522.0010.52
#FFFFFF10.521.0021.001.00
#0000002.0021.001.0021.00
##FFFFFF10.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0043AF
Deuteranopia (green-blind)
#003AA9
Tritanopia (blue-blind)
#004A66
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #3f1fab;
/* rgb */ color: rgb(63, 31, 171);
/* oklch */ color: oklch(39.1% 0.202 282.2);
Tailwind
colors: {
  custom: {
    50: '#8361c5',
    500: '#3f1fab',
    950: '#000000',
  },
}
SCSS
$custom: #3f1fab;
$custom-light: #8361c5;
$custom-dark: #000000;
JSON
{
  "hex": "#3f1fab",
  "rgb": {
    "r": 63,
    "g": 31,
    "b": 171
  },
  "hsl": {
    "h": 253.714,
    "s": 69.307,
    "l": 39.608
  },
  "oklch": {
    "l": 0.39106,
    "c": 0.20195,
    "h": 282.2
  },
  "luminance": 0.04977
}

Semantic roles & 50–950 ramp

primary
#3F1FAB
secondary
#AFC75E
accent
#EC3CC4
background
#F8F5FC
surface
#F0EAF8
border
#CBC6D1
text
#0C0513
muted
#7D7982

Preview Lab

Preview with #3F1FAB

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

Preview Lab → · Contrast checker → · Palette generator →

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