#3F1DBB#3F1DBB

#3F1DBB is a dark, highly saturated violet. Relative luminance 0.055; OKLCH L 40.7% C 0.221 H 280.0°. Best body text is #FFFFFF at 9.98:1 contrast (WCAG AA passes).

Color values

HEX#3F1DBB
RGBrgb(63, 29, 187)
HSLhsl(253, 73%, 42%)
HSVhsv(253, 84%, 73%)
CMYKcmyk(66.3%, 84.5%, 0%, 26.7%)
CIE-LABlab(28.17, 56.58, -75.49)
CIE-LCHlch(28.17, 94.34, 306.85°)
OKLaboklab(40.67% 0.0383 -0.2179)
OKLCHoklch(40.67% 0.221 280)
XYZxyz(11.4560, 5.5224, 47.4663)
Luminance0.0552 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F1DBB #99BB1D
analogous
#1D4ABB #3F1DBB #8E1DBB
triadic
#3F1DBB #BB3F1D #1DBB3F
tetradic
#3F1DBB #BB1D4A #99BB1D #1DBB8E
square
#3F1DBB #BB1D4A #99BB1D #1DBB8E
split-complementary
#3F1DBB #BB8E1D #4ABB1D
monochromatic
#1B0D51 #2D1586 #3F1DBB #5A35E0 #856AE8

Accessibility & contrast

On white

9.98
#3F1DBB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.10
#3F1DBB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F1DBB
9.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F1DBB#FFFFFF#000000##FFFFFF
##3F1DBB1.009.982.109.98
#FFFFFF9.981.0021.001.00
#0000002.1021.001.0021.00
##FFFFFF9.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0048BF
Deuteranopia (green-blind)
#003CB8
Tritanopia (blue-blind)
#00506F
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #3f1dbb;
/* rgb */ color: rgb(63, 29, 187);
/* oklch */ color: oklch(40.7% 0.221 280.0);
Tailwind
colors: {
  custom: {
    50: '#8661d1',
    500: '#3f1dbb',
    950: '#000000',
  },
}
SCSS
$custom: #3f1dbb;
$custom-light: #8661d1;
$custom-dark: #000000;
JSON
{
  "hex": "#3f1dbb",
  "rgb": {
    "r": 63,
    "g": 29,
    "b": 187
  },
  "hsl": {
    "h": 252.911,
    "s": 73.148,
    "l": 42.353
  },
  "oklch": {
    "l": 0.40665,
    "c": 0.22122,
    "h": 280
  },
  "luminance": 0.05523
}

Semantic roles & 50–950 ramp

primary
#3F1DBB
secondary
#B7CE66
accent
#F038C8
background
#F9F6FD
surface
#F1EBFA
border
#CBC6D3
text
#0D0514
muted
#7E7A83

Preview Lab

Preview with #3F1DBB

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

Preview Lab → · Contrast checker → · Palette generator →

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