#3F1773#3F1773

#3F1773 is a dark, vivid violet. Relative luminance 0.029; OKLCH L 32.5% C 0.145 H 297.2°. Best body text is #FFFFFF at 13.28:1 contrast (WCAG AA passes).

Color values

HEX#3F1773
RGBrgb(63, 23, 115)
HSLhsl(266, 67%, 27%)
HSVhsv(266, 80%, 45%)
CMYKcmyk(45.2%, 80%, 0%, 54.9%)
CIE-LABlab(19.67, 39.06, -45.11)
CIE-LCHlch(19.67, 59.67, 310.89°)
OKLaboklab(32.52% 0.0665 -0.1291)
OKLCHoklch(32.52% 0.145 297.2)
XYZxyz(5.4500, 2.9073, 16.4903)
Luminance0.0291 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F1773 #4B7317
analogous
#171D73 #3F1773 #6D1773
triadic
#3F1773 #733F17 #17733F
tetradic
#3F1773 #73171D #4B7317 #17736D
square
#3F1773 #73171D #4B7317 #17736D
split-complementary
#3F1773 #736D17 #1D7317
monochromatic
#0E051A #230D40 #3F1773 #5B21A6 #772FD5

Accessibility & contrast

On white

13.28
#3F1773 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.58
#3F1773 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F1773
13.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F1773#FFFFFF#000000##FFFFFF
##3F17731.0013.281.5813.28
#FFFFFF13.281.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003076
Deuteranopia (green-blind)
#002E71
Tritanopia (blue-blind)
#313044
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #3f1773;
/* rgb */ color: rgb(63, 23, 115);
/* oklch */ color: oklch(32.5% 0.145 297.2);
Tailwind
colors: {
  custom: {
    50: '#7a599c',
    500: '#3f1773',
    950: '#000000',
  },
}
SCSS
$custom: #3f1773;
$custom-light: #7a599c;
$custom-dark: #000000;
JSON
{
  "hex": "#3f1773",
  "rgb": {
    "r": 63,
    "g": 23,
    "b": 115
  },
  "hsl": {
    "h": 266.087,
    "s": 66.667,
    "l": 27.059
  },
  "oklch": {
    "l": 0.32518,
    "c": 0.14525,
    "h": 297.2
  },
  "luminance": 0.02907
}

Semantic roles & 50–950 ramp

primary
#3F1773
secondary
#7AA93D
accent
#EA3E9F
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#0A040E
muted
#7C797E

Preview Lab

Preview with #3F1773

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

Preview Lab → · Contrast checker → · Palette generator →

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