#3F1F9B#3F1F9B

#3F1F9B is a dark, vivid violet. Relative luminance 0.044; OKLCH L 37.4% C 0.184 H 285.1°. Best body text is #FFFFFF at 11.17:1 contrast (WCAG AA passes).

Color values

HEX#3F1F9B
RGBrgb(63, 31, 155)
HSLhsl(255, 67%, 36%)
HSVhsv(255, 80%, 61%)
CMYKcmyk(59.4%, 80%, 0%, 39.2%)
CIE-LABlab(24.96, 46.64, -61.53)
CIE-LCHlch(24.96, 77.21, 307.17°)
OKLaboklab(37.42% 0.0479 -0.1773)
OKLCHoklch(37.42% 0.184 285.1)
XYZxyz(8.4545, 4.4028, 31.4083)
Luminance0.0440 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F1F9B #7B9B1F
analogous
#1F3D9B #3F1F9B #7D1F9B
triadic
#3F1F9B #9B3F1F #1F9B3F
tetradic
#3F1F9B #9B1F3D #7B9B1F #1F9B7D
square
#3F1F9B #9B1F3D #7B9B1F #1F9B7D
split-complementary
#3F1F9B #9B7D1F #3D9B1F
monochromatic
#160B35 #2A1568 #3F1F9B #5429CE #7A57DD

Accessibility & contrast

On white

11.17
#3F1F9B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.88
#3F1F9B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F1F9B
11.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F1F9B#FFFFFF#000000##FFFFFF
##3F1F9B1.0011.171.8811.17
#FFFFFF11.171.0021.001.00
#0000001.8821.001.0021.00
##FFFFFF11.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F9E
Deuteranopia (green-blind)
#003799
Tritanopia (blue-blind)
#09445D
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #3f1f9b;
/* rgb */ color: rgb(63, 31, 155);
/* oklch */ color: oklch(37.4% 0.184 285.1);
Tailwind
colors: {
  custom: {
    50: '#8060ba',
    500: '#3f1f9b',
    950: '#000000',
  },
}
SCSS
$custom: #3f1f9b;
$custom-light: #8060ba;
$custom-dark: #000000;
JSON
{
  "hex": "#3f1f9b",
  "rgb": {
    "r": 63,
    "g": 31,
    "b": 155
  },
  "hsl": {
    "h": 255.484,
    "s": 66.667,
    "l": 36.471
  },
  "oklch": {
    "l": 0.37418,
    "c": 0.18363,
    "h": 285.1
  },
  "luminance": 0.04403
}

Semantic roles & 50–950 ramp

primary
#3F1F9B
secondary
#A5C155
accent
#EA3EBD
background
#F8F5FB
surface
#EFEAF6
border
#CAC6D0
text
#0B0512
muted
#7C7981

Preview Lab

Preview with #3F1F9B

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

Preview Lab → · Contrast checker → · Palette generator →

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