#3F1161#3F1161

#3F1161 is a dark, vivid violet. Relative luminance 0.023; OKLCH L 30.2% C 0.132 H 305.8°. Best body text is #FFFFFF at 14.34:1 contrast (WCAG AA passes).

Color values

HEX#3F1161
RGBrgb(63, 17, 97)
HSLhsl(275, 70%, 22%)
HSVhsv(275, 82%, 38%)
CMYKcmyk(35.1%, 82.5%, 0%, 62%)
CIE-LABlab(17.09, 37.01, -37.55)
CIE-LCHlch(17.09, 52.73, 314.59°)
OKLaboklab(30.2% 0.0771 -0.1069)
OKLCHoklch(30.2% 0.132 305.8)
XYZxyz(4.4075, 2.3208, 11.5227)
Luminance0.0232 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F1161 #336111
analogous
#171161 #3F1161 #61115B
triadic
#3F1161 #613F11 #11613F
tetradic
#3F1161 #611711 #336111 #115B61
square
#3F1161 #611711 #336111 #115B61
split-complementary
#3F1161 #5B6111 #116117
monochromatic
#11051A #1D082D #3F1161 #611A95 #8323C9

Accessibility & contrast

On white

14.34
#3F1161 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.46
#3F1161 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F1161
14.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F1161#FFFFFF#000000##FFFFFF
##3F11611.0014.341.4614.34
#FFFFFF14.341.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002963
Deuteranopia (green-blind)
#002A5F
Tritanopia (blue-blind)
#392639
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #3f1161;
/* rgb */ color: rgb(63, 17, 97);
/* oklch */ color: oklch(30.2% 0.132 305.8);
Tailwind
colors: {
  custom: {
    50: '#78558f',
    500: '#3f1161',
    950: '#000000',
  },
}
SCSS
$custom: #3f1161;
$custom-light: #78558f;
$custom-dark: #000000;
JSON
{
  "hex": "#3f1161",
  "rgb": {
    "r": 63,
    "g": 17,
    "b": 97
  },
  "hsl": {
    "h": 274.5,
    "s": 70.175,
    "l": 22.353
  },
  "oklch": {
    "l": 0.302,
    "c": 0.13181,
    "h": 305.8
  },
  "luminance": 0.02321
}

Semantic roles & 50–950 ramp

primary
#3F1161
secondary
#5F9934
accent
#ED3B87
background
#F7F5F8
surface
#EEE9F0
border
#C9C5CB
text
#09030C
muted
#7B787D

Preview Lab

Preview with #3F1161

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

Preview Lab → · Contrast checker → · Palette generator →

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