#3F1F8B#3F1F8B

#3F1F8B is a dark, vivid violet. Relative luminance 0.039; OKLCH L 35.8% C 0.165 H 288.7°. Best body text is #FFFFFF at 11.80:1 contrast (WCAG AA passes).

Color values

HEX#3F1F8B
RGBrgb(63, 31, 139)
HSLhsl(258, 64%, 33%)
HSVhsv(258, 78%, 55%)
CMYKcmyk(54.7%, 77.7%, 0%, 45.5%)
CIE-LABlab(23.34, 41.98, -54.30)
CIE-LCHlch(23.34, 68.64, 307.71°)
OKLaboklab(35.8% 0.0527 -0.1562)
OKLCHoklch(35.8% 0.165 288.7)
XYZxyz(7.1987, 3.9005, 24.7946)
Luminance0.0390 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F1F8B #6B8B1F
analogous
#1F358B #3F1F8B #751F8B
triadic
#3F1F8B #8B3F1F #1F8B3F
tetradic
#3F1F8B #8B1F35 #6B8B1F #1F8B75
square
#3F1F8B #8B1F35 #6B8B1F #1F8B75
split-complementary
#3F1F8B #8B751F #358B1F
monochromatic
#120927 #281459 #3F1F8B #562ABD #764DD7

Accessibility & contrast

On white

11.80
#3F1F8B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.78
#3F1F8B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F1F8B
11.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F1F8B#FFFFFF#000000##FFFFFF
##3F1F8B1.0011.801.7811.80
#FFFFFF11.801.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A8E
Deuteranopia (green-blind)
#003589
Tritanopia (blue-blind)
#213D54
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #3f1f8b;
/* rgb */ color: rgb(63, 31, 139);
/* oklch */ color: oklch(35.8% 0.165 288.7);
Tailwind
colors: {
  custom: {
    50: '#7d5fae',
    500: '#3f1f8b',
    950: '#000000',
  },
}
SCSS
$custom: #3f1f8b;
$custom-light: #7d5fae;
$custom-dark: #000000;
JSON
{
  "hex": "#3f1f8b",
  "rgb": {
    "r": 63,
    "g": 31,
    "b": 139
  },
  "hsl": {
    "h": 257.778,
    "s": 63.529,
    "l": 33.333
  },
  "oklch": {
    "l": 0.35797,
    "c": 0.16482,
    "h": 288.7
  },
  "luminance": 0.03901
}

Semantic roles & 50–950 ramp

primary
#3F1F8B
secondary
#99BA4C
accent
#E741B6
background
#F8F5FA
surface
#EFE9F4
border
#CAC5CE
text
#0B0510
muted
#7C797F

Preview Lab

Preview with #3F1F8B

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

Preview Lab → · Contrast checker → · Palette generator →

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