#3F1174#3F1174

#3F1174 is a dark, vivid violet. Relative luminance 0.027; OKLCH L 32.0% C 0.152 H 297.8°. Best body text is #FFFFFF at 13.60:1 contrast (WCAG AA passes).

Color values

HEX#3F1174
RGBrgb(63, 17, 116)
HSLhsl(268, 74%, 26%)
HSVhsv(268, 85%, 45%)
CMYKcmyk(45.7%, 85.3%, 0%, 54.5%)
CIE-LABlab(18.88, 41.90, -47.05)
CIE-LCHlch(18.88, 63.00, 311.69°)
OKLaboklab(32% 0.0711 -0.1348)
OKLCHoklch(32% 0.152 297.8)
XYZxyz(5.4019, 2.7185, 16.7597)
Luminance0.0272 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F1174 #467411
analogous
#111474 #3F1174 #701174
triadic
#3F1174 #743F11 #11743F
tetradic
#3F1174 #741114 #467411 #117470
square
#3F1174 #741114 #467411 #117470
split-complementary
#3F1174 #747011 #147411
monochromatic
#0E041B #22093F #3F1174 #5C19A9 #7921DE

Accessibility & contrast

On white

13.60
#3F1174 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3F1174
13.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F1174#FFFFFF#000000##FFFFFF
##3F11741.0013.601.5413.60
#FFFFFF13.601.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E77
Deuteranopia (green-blind)
#002D72
Tritanopia (blue-blind)
#312E44
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #3f1174;
/* rgb */ color: rgb(63, 17, 116);
/* oklch */ color: oklch(32.0% 0.152 297.8);
Tailwind
colors: {
  custom: {
    50: '#7a569d',
    500: '#3f1174',
    950: '#000000',
  },
}
SCSS
$custom: #3f1174;
$custom-light: #7a569d;
$custom-dark: #000000;
JSON
{
  "hex": "#3f1174",
  "rgb": {
    "r": 63,
    "g": 17,
    "b": 116
  },
  "hsl": {
    "h": 267.879,
    "s": 74.436,
    "l": 26.078
  },
  "oklch": {
    "l": 0.31999,
    "c": 0.15235,
    "h": 297.8
  },
  "luminance": 0.02719
}

Semantic roles & 50–950 ramp

primary
#3F1174
secondary
#75AB36
accent
#F1379A
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#0A030E
muted
#7C787E

Preview Lab

Preview with #3F1174

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

Preview Lab → · Contrast checker → · Palette generator →

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