#3F115B#3F115B

#3F115B is a dark, vivid violet. Relative luminance 0.022; OKLCH L 29.7% C 0.125 H 308.8°. Best body text is #FFFFFF at 14.56:1 contrast (WCAG AA passes).

Color values

HEX#3F115B
RGBrgb(63, 17, 91)
HSLhsl(277, 69%, 21%)
HSVhsv(277, 81%, 36%)
CMYKcmyk(30.8%, 81.3%, 0%, 64.3%)
CIE-LABlab(16.57, 35.52, -34.40)
CIE-LCHlch(16.57, 49.45, 315.92°)
OKLaboklab(29.67% 0.0786 -0.0976)
OKLCHoklch(29.67% 0.125 308.8)
XYZxyz(4.1383, 2.2131, 10.1047)
Luminance0.0221 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F115B #2D5B11
analogous
#1A115B #3F115B #5B1152
triadic
#3F115B #5B3F11 #115B3F
tetradic
#3F115B #5B1A11 #2D5B11 #11525B
square
#3F115B #5B1A11 #2D5B11 #11525B
split-complementary
#3F115B #525B11 #115B1A
monochromatic
#12051A #1B0727 #3F115B #631B8F #8624C2

Accessibility & contrast

On white

14.56
#3F115B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.44
#3F115B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F115B
14.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F115B#FFFFFF#000000##FFFFFF
##3F115B1.0014.561.4414.56
#FFFFFF14.561.0021.001.00
#0000001.4421.001.0021.00
##FFFFFF14.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00275D
Deuteranopia (green-blind)
#002959
Tritanopia (blue-blind)
#3B2335
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #3f115b;
/* rgb */ color: rgb(63, 17, 91);
/* oklch */ color: oklch(29.7% 0.125 308.8);
Tailwind
colors: {
  custom: {
    50: '#78558a',
    500: '#3f115b',
    950: '#000000',
  },
}
SCSS
$custom: #3f115b;
$custom-light: #78558a;
$custom-dark: #000000;
JSON
{
  "hex": "#3f115b",
  "rgb": {
    "r": 63,
    "g": 17,
    "b": 91
  },
  "hsl": {
    "h": 277.297,
    "s": 68.519,
    "l": 21.176
  },
  "oklch": {
    "l": 0.29672,
    "c": 0.12533,
    "h": 308.8
  },
  "luminance": 0.02213
}

Semantic roles & 50–950 ramp

primary
#3F115B
secondary
#589434
accent
#EB3C7F
background
#F7F5F8
surface
#EDE9F0
border
#C8C5CB
text
#09030C
muted
#7B787D

Preview Lab

Preview with #3F115B

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

Preview Lab → · Contrast checker → · Palette generator →

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