#3F1F98#3F1F98

#3F1F98 is a dark, vivid violet. Relative luminance 0.043; OKLCH L 37.1% C 0.180 H 285.7°. Best body text is #FFFFFF at 11.29:1 contrast (WCAG AA passes).

Color values

HEX#3F1F98
RGBrgb(63, 31, 152)
HSLhsl(256, 66%, 36%)
HSVhsv(256, 80%, 60%)
CMYKcmyk(58.6%, 79.6%, 0%, 40.4%)
CIE-LABlab(24.65, 45.77, -60.20)
CIE-LCHlch(24.65, 75.62, 307.25°)
OKLaboklab(37.11% 0.0488 -0.1734)
OKLCHoklch(37.11% 0.18 285.7)
XYZxyz(8.2057, 4.3032, 30.0979)
Luminance0.0430 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F1F98 #78981F
analogous
#1F3B98 #3F1F98 #7B1F98
triadic
#3F1F98 #983F1F #1F983F
tetradic
#3F1F98 #981F3B #78981F #1F987B
square
#3F1F98 #981F3B #78981F #1F987B
split-complementary
#3F1F98 #987B1F #3B981F
monochromatic
#150A32 #2A1565 #3F1F98 #5429CB #7955DC

Accessibility & contrast

On white

11.29
#3F1F98 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.86
#3F1F98 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F1F98
11.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F1F98#FFFFFF#000000##FFFFFF
##3F1F981.0011.291.8611.29
#FFFFFF11.291.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E9B
Deuteranopia (green-blind)
#003796
Tritanopia (blue-blind)
#10425B
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #3f1f98;
/* rgb */ color: rgb(63, 31, 152);
/* oklch */ color: oklch(37.1% 0.180 285.7);
Tailwind
colors: {
  custom: {
    50: '#7f5fb7',
    500: '#3f1f98',
    950: '#000000',
  },
}
SCSS
$custom: #3f1f98;
$custom-light: #7f5fb7;
$custom-dark: #000000;
JSON
{
  "hex": "#3f1f98",
  "rgb": {
    "r": 63,
    "g": 31,
    "b": 152
  },
  "hsl": {
    "h": 255.868,
    "s": 66.12,
    "l": 35.882
  },
  "oklch": {
    "l": 0.37108,
    "c": 0.18013,
    "h": 285.7
  },
  "luminance": 0.04304
}

Semantic roles & 50–950 ramp

primary
#3F1F98
secondary
#A3C053
accent
#E93FBC
background
#F8F5FB
surface
#EFEAF6
border
#CAC6D0
text
#0B0511
muted
#7C7980

Preview Lab

Preview with #3F1F98

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

Preview Lab → · Contrast checker → · Palette generator →

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