#3F1F7D#3F1F7D

#3F1F7D is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.4% C 0.148 H 292.4°. Best body text is #FFFFFF at 12.33:1 contrast (WCAG AA passes).

Color values

HEX#3F1F7D
RGBrgb(63, 31, 125)
HSLhsl(260, 60%, 31%)
HSVhsv(260, 75%, 49%)
CMYKcmyk(49.6%, 75.2%, 0%, 51%)
CIE-LABlab(22.01, 37.89, -47.68)
CIE-LCHlch(22.01, 60.90, 308.47°)
OKLaboklab(34.45% 0.0564 -0.1367)
OKLCHoklch(34.45% 0.148 292.4)
XYZxyz(6.2405, 3.5172, 19.7481)
Luminance0.0352 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F1F7D #5D7D1F
analogous
#1F2E7D #3F1F7D #6E1F7D
triadic
#3F1F7D #7D3F1F #1F7D3F
tetradic
#3F1F7D #7D1F2E #5D7D1F #1F7D6E
square
#3F1F7D #7D1F2E #5D7D1F #1F7D6E
split-complementary
#3F1F7D #7D6E1F #2E7D1F
monochromatic
#0E071B #26134C #3F1F7D #582BAE #7545D1

Accessibility & contrast

On white

12.33
#3F1F7D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#3F1F7D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F1F7D
12.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F1F7D#FFFFFF#000000##FFFFFF
##3F1F7D1.0012.331.7012.33
#FFFFFF12.331.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003680
Deuteranopia (green-blind)
#00337B
Tritanopia (blue-blind)
#2C384C
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #3f1f7d;
/* rgb */ color: rgb(63, 31, 125);
/* oklch */ color: oklch(34.4% 0.148 292.4);
Tailwind
colors: {
  custom: {
    50: '#7b5ea3',
    500: '#3f1f7d',
    950: '#000000',
  },
}
SCSS
$custom: #3f1f7d;
$custom-light: #7b5ea3;
$custom-dark: #000000;
JSON
{
  "hex": "#3f1f7d",
  "rgb": {
    "r": 63,
    "g": 31,
    "b": 125
  },
  "hsl": {
    "h": 260.426,
    "s": 60.256,
    "l": 30.588
  },
  "oklch": {
    "l": 0.3445,
    "c": 0.14792,
    "h": 292.4
  },
  "luminance": 0.03517
}

Semantic roles & 50–950 ramp

primary
#3F1F7D
secondary
#8DB048
accent
#E344AD
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A040F
muted
#7C797F

Preview Lab

Preview with #3F1F7D

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

Preview Lab → · Contrast checker → · Palette generator →

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