#3F1FB2#3F1FB2

#3F1FB2 is a dark, highly saturated violet. Relative luminance 0.053; OKLCH L 39.9% C 0.210 H 281.1°. Best body text is #FFFFFF at 10.24:1 contrast (WCAG AA passes).

Color values

HEX#3F1FB2
RGBrgb(63, 31, 178)
HSLhsl(253, 70%, 41%)
HSVhsv(253, 83%, 70%)
CMYKcmyk(64.6%, 82.6%, 0%, 30.2%)
CIE-LABlab(27.44, 53.24, -71.35)
CIE-LCHlch(27.44, 89.03, 306.73°)
OKLaboklab(39.86% 0.0404 -0.2059)
OKLCHoklch(39.86% 0.21 281.1)
XYZxyz(10.5732, 5.2503, 42.5671)
Luminance0.0525 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F1FB2 #92B21F
analogous
#1F48B2 #3F1FB2 #881FB2
triadic
#3F1FB2 #B23F1F #1FB23F
tetradic
#3F1FB2 #B21F48 #92B21F #1FB288
square
#3F1FB2 #B21F48 #92B21F #1FB288
split-complementary
#3F1FB2 #B2881F #48B21F
monochromatic
#1A0D4A #2D167E #3F1FB2 #5733DB #8267E5

Accessibility & contrast

On white

10.24
#3F1FB2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.05
#3F1FB2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F1FB2
10.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F1FB2#FFFFFF#000000##FFFFFF
##3F1FB21.0010.242.0510.24
#FFFFFF10.241.0021.001.00
#0000002.0521.001.0021.00
##FFFFFF10.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0046B6
Deuteranopia (green-blind)
#003BAF
Tritanopia (blue-blind)
#004D6A
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #3f1fb2;
/* rgb */ color: rgb(63, 31, 178);
/* oklch */ color: oklch(39.9% 0.210 281.1);
Tailwind
colors: {
  custom: {
    50: '#8461ca',
    500: '#3f1fb2',
    950: '#000000',
  },
}
SCSS
$custom: #3f1fb2;
$custom-light: #8461ca;
$custom-dark: #000000;
JSON
{
  "hex": "#3f1fb2",
  "rgb": {
    "r": 63,
    "g": 31,
    "b": 178
  },
  "hsl": {
    "h": 253.061,
    "s": 70.335,
    "l": 40.98
  },
  "oklch": {
    "l": 0.39863,
    "c": 0.20983,
    "h": 281.1
  },
  "luminance": 0.05251
}

Semantic roles & 50–950 ramp

primary
#3F1FB2
secondary
#B3CA63
accent
#ED3BC6
background
#F8F6FC
surface
#F0EBF9
border
#CBC6D2
text
#0C0513
muted
#7D7A82

Preview Lab

Preview with #3F1FB2

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

Preview Lab → · Contrast checker → · Palette generator →

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