#3F1A72#3F1A72

#3F1A72 is a dark, vivid violet. Relative luminance 0.030; OKLCH L 32.8% C 0.141 H 297.0°. Best body text is #FFFFFF at 13.11:1 contrast (WCAG AA passes).

Color values

HEX#3F1A72
RGBrgb(63, 26, 114)
HSLhsl(265, 63%, 27%)
HSVhsv(265, 77%, 45%)
CMYKcmyk(44.7%, 77.2%, 0%, 55.3%)
CIE-LABlab(20.09, 37.34, -43.78)
CIE-LCHlch(20.09, 57.54, 310.46°)
OKLaboklab(32.78% 0.0639 -0.1253)
OKLCHoklch(32.78% 0.141 297)
XYZxyz(5.4558, 3.0103, 16.2099)
Luminance0.0301 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F1A72 #4D721A
analogous
#1A2172 #3F1A72 #6B1A72
triadic
#3F1A72 #723F1A #1A723F
tetradic
#3F1A72 #721A21 #4D721A #1A726B
square
#3F1A72 #721A21 #4D721A #1A726B
split-complementary
#3F1A72 #726B1A #21721A
monochromatic
#0E0619 #230F40 #3F1A72 #5B25A4 #7735D1

Accessibility & contrast

On white

13.11
#3F1A72 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.60
#3F1A72 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F1A72
13.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F1A72#FFFFFF#000000##FFFFFF
##3F1A721.0013.111.6013.11
#FFFFFF13.111.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003175
Deuteranopia (green-blind)
#002F70
Tritanopia (blue-blind)
#323144
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #3f1a72;
/* rgb */ color: rgb(63, 26, 114);
/* oklch */ color: oklch(32.8% 0.141 297.0);
Tailwind
colors: {
  custom: {
    50: '#7a5a9b',
    500: '#3f1a72',
    950: '#000000',
  },
}
SCSS
$custom: #3f1a72;
$custom-light: #7a5a9b;
$custom-dark: #000000;
JSON
{
  "hex": "#3f1a72",
  "rgb": {
    "r": 63,
    "g": 26,
    "b": 114
  },
  "hsl": {
    "h": 265.227,
    "s": 62.857,
    "l": 27.451
  },
  "oklch": {
    "l": 0.32783,
    "c": 0.14064,
    "h": 297
  },
  "luminance": 0.0301
}

Semantic roles & 50–950 ramp

primary
#3F1A72
secondary
#7CA741
accent
#E642A1
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#0A040E
muted
#7C797E

Preview Lab

Preview with #3F1A72

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

Preview Lab → · Contrast checker → · Palette generator →

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