#3F1B72#3F1B72

#3F1B72 is a dark, vivid violet. Relative luminance 0.031; OKLCH L 32.9% C 0.139 H 296.8°. Best body text is #FFFFFF at 13.03:1 contrast (WCAG AA passes).

Color values

HEX#3F1B72
RGBrgb(63, 27, 114)
HSLhsl(265, 62%, 28%)
HSVhsv(265, 76%, 45%)
CMYKcmyk(44.7%, 76.3%, 0%, 55.3%)
CIE-LABlab(20.26, 36.83, -43.49)
CIE-LCHlch(20.26, 56.99, 310.26°)
OKLaboklab(32.91% 0.0629 -0.1244)
OKLCHoklch(32.91% 0.139 296.8)
XYZxyz(5.4783, 3.0554, 16.2174)
Luminance0.0306 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F1B72 #4E721B
analogous
#1B2272 #3F1B72 #6B1B72
triadic
#3F1B72 #723F1B #1B723F
tetradic
#3F1B72 #721B22 #4E721B #1B726B
square
#3F1B72 #721B22 #4E721B #1B726B
split-complementary
#3F1B72 #726B1B #22721B
monochromatic
#0E0619 #240F41 #3F1B72 #5A27A3 #7738D0

Accessibility & contrast

On white

13.03
#3F1B72 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.61
#3F1B72 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F1B72
13.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F1B72#FFFFFF#000000##FFFFFF
##3F1B721.0013.031.6113.03
#FFFFFF13.031.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003175
Deuteranopia (green-blind)
#003070
Tritanopia (blue-blind)
#323145
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #3f1b72;
/* rgb */ color: rgb(63, 27, 114);
/* oklch */ color: oklch(32.9% 0.139 296.8);
Tailwind
colors: {
  custom: {
    50: '#795b9b',
    500: '#3f1b72',
    950: '#000000',
  },
}
SCSS
$custom: #3f1b72;
$custom-light: #795b9b;
$custom-dark: #000000;
JSON
{
  "hex": "#3f1b72",
  "rgb": {
    "r": 63,
    "g": 27,
    "b": 114
  },
  "hsl": {
    "h": 264.828,
    "s": 61.702,
    "l": 27.647
  },
  "oklch": {
    "l": 0.32909,
    "c": 0.13943,
    "h": 296.8
  },
  "luminance": 0.03056
}

Semantic roles & 50–950 ramp

primary
#3F1B72
secondary
#7DA742
accent
#E543A2
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#0A040E
muted
#7C797E

Preview Lab

Preview with #3F1B72

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

Preview Lab → · Contrast checker → · Palette generator →

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