#3F1172#3F1172

#3F1172 is a dark, vivid violet. Relative luminance 0.027; OKLCH L 31.8% C 0.150 H 298.5°. Best body text is #FFFFFF at 13.68:1 contrast (WCAG AA passes).

Color values

HEX#3F1172
RGBrgb(63, 17, 114)
HSLhsl(268, 74%, 26%)
HSVhsv(268, 85%, 45%)
CMYKcmyk(44.7%, 85.1%, 0%, 55.3%)
CIE-LABlab(18.68, 41.37, -46.08)
CIE-LCHlch(18.68, 61.93, 311.92°)
OKLaboklab(31.8% 0.0718 -0.1319)
OKLCHoklch(31.8% 0.15 298.5)
XYZxyz(5.2868, 2.6725, 16.1536)
Luminance0.0267 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F1172 #447211
analogous
#111372 #3F1172 #6F1172
triadic
#3F1172 #723F11 #11723F
tetradic
#3F1172 #721113 #447211 #11726F
square
#3F1172 #721113 #447211 #11726F
split-complementary
#3F1172 #726F11 #137211
monochromatic
#0F041B #22093D #3F1172 #5C19A7 #7A21DD

Accessibility & contrast

On white

13.68
#3F1172 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.53
#3F1172 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F1172
13.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F1172#FFFFFF#000000##FFFFFF
##3F11721.0013.681.5313.68
#FFFFFF13.681.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E75
Deuteranopia (green-blind)
#002C70
Tritanopia (blue-blind)
#322D42
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #3f1172;
/* rgb */ color: rgb(63, 17, 114);
/* oklch */ color: oklch(31.8% 0.150 298.5);
Tailwind
colors: {
  custom: {
    50: '#7a569b',
    500: '#3f1172',
    950: '#000000',
  },
}
SCSS
$custom: #3f1172;
$custom-light: #7a569b;
$custom-dark: #000000;
JSON
{
  "hex": "#3f1172",
  "rgb": {
    "r": 63,
    "g": 17,
    "b": 114
  },
  "hsl": {
    "h": 268.454,
    "s": 74.046,
    "l": 25.686
  },
  "oklch": {
    "l": 0.31801,
    "c": 0.1502,
    "h": 298.5
  },
  "luminance": 0.02673
}

Semantic roles & 50–950 ramp

primary
#3F1172
secondary
#72A936
accent
#F13799
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#0A030E
muted
#7C787E

Preview Lab

Preview with #3F1172

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

Preview Lab → · Contrast checker → · Palette generator →

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