#3F1173#3F1173

#3F1173 is a dark, vivid violet. Relative luminance 0.027; OKLCH L 31.9% C 0.151 H 298.2°. Best body text is #FFFFFF at 13.65:1 contrast (WCAG AA passes).

Color values

HEX#3F1173
RGBrgb(63, 17, 115)
HSLhsl(268, 74%, 26%)
HSVhsv(268, 85%, 45%)
CMYKcmyk(45.2%, 85.2%, 0%, 54.9%)
CIE-LABlab(18.78, 41.64, -46.57)
CIE-LCHlch(18.78, 62.46, 311.80°)
OKLaboklab(31.9% 0.0714 -0.1334)
OKLCHoklch(31.9% 0.151 298.2)
XYZxyz(5.3441, 2.6954, 16.4550)
Luminance0.0270 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F1173 #457311
analogous
#111473 #3F1173 #701173
triadic
#3F1173 #733F11 #11733F
tetradic
#3F1173 #731114 #457311 #117370
square
#3F1173 #731114 #457311 #117370
split-complementary
#3F1173 #737011 #147311
monochromatic
#0F041B #22093E #3F1173 #5C19A8 #7921DE

Accessibility & contrast

On white

13.65
#3F1173 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.54
#3F1173 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F1173
13.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F1173#FFFFFF#000000##FFFFFF
##3F11731.0013.651.5413.65
#FFFFFF13.651.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E76
Deuteranopia (green-blind)
#002D71
Tritanopia (blue-blind)
#322D43
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #3f1173;
/* rgb */ color: rgb(63, 17, 115);
/* oklch */ color: oklch(31.9% 0.151 298.2);
Tailwind
colors: {
  custom: {
    50: '#7a569c',
    500: '#3f1173',
    950: '#000000',
  },
}
SCSS
$custom: #3f1173;
$custom-light: #7a569c;
$custom-dark: #000000;
JSON
{
  "hex": "#3f1173",
  "rgb": {
    "r": 63,
    "g": 17,
    "b": 115
  },
  "hsl": {
    "h": 268.163,
    "s": 74.242,
    "l": 25.882
  },
  "oklch": {
    "l": 0.319,
    "c": 0.15128,
    "h": 298.2
  },
  "luminance": 0.02695
}

Semantic roles & 50–950 ramp

primary
#3F1173
secondary
#73AA36
accent
#F1379A
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#0A030E
muted
#7C787E

Preview Lab

Preview with #3F1173

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

Preview Lab → · Contrast checker → · Palette generator →

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