#3F1168#3F1168

#3F1168 is a dark, vivid violet. Relative luminance 0.025; OKLCH L 30.8% C 0.139 H 302.6°. Best body text is #FFFFFF at 14.08:1 contrast (WCAG AA passes).

Color values

HEX#3F1168
RGBrgb(63, 17, 104)
HSLhsl(272, 72%, 24%)
HSVhsv(272, 84%, 41%)
CMYKcmyk(39.4%, 83.7%, 0%, 59.2%)
CIE-LABlab(17.72, 38.79, -41.14)
CIE-LCHlch(17.72, 56.54, 313.32°)
OKLaboklab(30.84% 0.0751 -0.1174)
OKLCHoklch(30.84% 0.139 302.6)
XYZxyz(4.7484, 2.4571, 13.3181)
Luminance0.0246 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F1168 #3A6811
analogous
#131168 #3F1168 #681165
triadic
#3F1168 #683F11 #11683F
tetradic
#3F1168 #681311 #3A6811 #116568
square
#3F1168 #681311 #3A6811 #116568
split-complementary
#3F1168 #656811 #116813
monochromatic
#10041A #1F0833 #3F1168 #5F1A9D #7F22D1

Accessibility & contrast

On white

14.08
#3F1168 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.49
#3F1168 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F1168
14.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F1168#FFFFFF#000000##FFFFFF
##3F11681.0014.081.4914.08
#FFFFFF14.081.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B6A
Deuteranopia (green-blind)
#002B66
Tritanopia (blue-blind)
#36293D
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #3f1168;
/* rgb */ color: rgb(63, 17, 104);
/* oklch */ color: oklch(30.8% 0.139 302.6);
Tailwind
colors: {
  custom: {
    50: '#795594',
    500: '#3f1168',
    950: '#000000',
  },
}
SCSS
$custom: #3f1168;
$custom-light: #795594;
$custom-dark: #000000;
JSON
{
  "hex": "#3f1168",
  "rgb": {
    "r": 63,
    "g": 17,
    "b": 104
  },
  "hsl": {
    "h": 271.724,
    "s": 71.901,
    "l": 23.725
  },
  "oklch": {
    "l": 0.30842,
    "c": 0.13938,
    "h": 302.6
  },
  "luminance": 0.02457
}

Semantic roles & 50–950 ramp

primary
#3F1168
secondary
#67A035
accent
#EF398F
background
#F7F5F9
surface
#EEE9F1
border
#C9C5CB
text
#09030D
muted
#7B787E

Preview Lab

Preview with #3F1168

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

Preview Lab → · Contrast checker → · Palette generator →

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