#3F115C#3F115C

#3F115C is a dark, vivid violet. Relative luminance 0.022; OKLCH L 29.8% C 0.126 H 308.3°. Best body text is #FFFFFF at 14.52:1 contrast (WCAG AA passes).

Color values

HEX#3F115C
RGBrgb(63, 17, 92)
HSLhsl(277, 69%, 21%)
HSVhsv(277, 82%, 36%)
CMYKcmyk(31.5%, 81.5%, 0%, 63.9%)
CIE-LABlab(16.65, 35.77, -34.93)
CIE-LCHlch(16.65, 49.99, 315.68°)
OKLaboklab(29.76% 0.0784 -0.0992)
OKLCHoklch(29.76% 0.126 308.3)
XYZxyz(4.1817, 2.2304, 10.3334)
Luminance0.0223 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F115C #2E5C11
analogous
#1A115C #3F115C #5C1154
triadic
#3F115C #5C3F11 #115C3F
tetradic
#3F115C #5C1A11 #2E5C11 #11545C
square
#3F115C #5C1A11 #2E5C11 #11545C
split-complementary
#3F115C #545C11 #115C1A
monochromatic
#12051A #1C0728 #3F115C #621B90 #8624C3

Accessibility & contrast

On white

14.52
#3F115C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.45
#3F115C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F115C
14.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F115C#FFFFFF#000000##FFFFFF
##3F115C1.0014.521.4514.52
#FFFFFF14.521.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00275E
Deuteranopia (green-blind)
#002A5A
Tritanopia (blue-blind)
#3A2336
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #3f115c;
/* rgb */ color: rgb(63, 17, 92);
/* oklch */ color: oklch(29.8% 0.126 308.3);
Tailwind
colors: {
  custom: {
    50: '#78558b',
    500: '#3f115c',
    950: '#000000',
  },
}
SCSS
$custom: #3f115c;
$custom-light: #78558b;
$custom-dark: #000000;
JSON
{
  "hex": "#3f115c",
  "rgb": {
    "r": 63,
    "g": 17,
    "b": 92
  },
  "hsl": {
    "h": 276.8,
    "s": 68.807,
    "l": 21.373
  },
  "oklch": {
    "l": 0.29759,
    "c": 0.12641,
    "h": 308.3
  },
  "luminance": 0.0223
}

Semantic roles & 50–950 ramp

primary
#3F115C
secondary
#599534
accent
#EC3C80
background
#F7F5F8
surface
#EDE9F0
border
#C8C5CB
text
#09030C
muted
#7B787D

Preview Lab

Preview with #3F115C

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

Preview Lab → · Contrast checker → · Palette generator →

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