#3F135C#3F135C

#3F135C is a dark, vivid violet. Relative luminance 0.023; OKLCH L 30.0% C 0.124 H 308.0°. Best body text is #FFFFFF at 14.39:1 contrast (WCAG AA passes).

Color values

HEX#3F135C
RGBrgb(63, 19, 92)
HSLhsl(276, 66%, 22%)
HSVhsv(276, 79%, 36%)
CMYKcmyk(31.5%, 79.3%, 0%, 63.9%)
CIE-LABlab(16.97, 34.87, -34.42)
CIE-LCHlch(16.97, 49.00, 315.37°)
OKLaboklab(29.98% 0.0763 -0.0977)
OKLCHoklch(29.98% 0.124 308)
XYZxyz(4.2141, 2.2953, 10.3442)
Luminance0.0230 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F135C #305C13
analogous
#1A135C #3F135C #5C1355
triadic
#3F135C #5C3F13 #135C3F
tetradic
#3F135C #5C1A13 #305C13 #13555C
square
#3F135C #5C1A13 #305C13 #13555C
split-complementary
#3F135C #555C13 #135C1A
monochromatic
#110519 #1C0929 #3F135C #621D8F #8428C1

Accessibility & contrast

On white

14.39
#3F135C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3F135C
14.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F135C#FFFFFF#000000##FFFFFF
##3F135C1.0014.391.4614.39
#FFFFFF14.391.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00285E
Deuteranopia (green-blind)
#002A5A
Tritanopia (blue-blind)
#3A2436
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #3f135c;
/* rgb */ color: rgb(63, 19, 92);
/* oklch */ color: oklch(30.0% 0.124 308.0);
Tailwind
colors: {
  custom: {
    50: '#78568b',
    500: '#3f135c',
    950: '#000000',
  },
}
SCSS
$custom: #3f135c;
$custom-light: #78568b;
$custom-dark: #000000;
JSON
{
  "hex": "#3f135c",
  "rgb": {
    "r": 63,
    "g": 19,
    "b": 92
  },
  "hsl": {
    "h": 276.164,
    "s": 65.766,
    "l": 21.765
  },
  "oklch": {
    "l": 0.2998,
    "c": 0.12397,
    "h": 308
  },
  "luminance": 0.02295
}

Semantic roles & 50–950 ramp

primary
#3F135C
secondary
#5C9437
accent
#E93F82
background
#F7F5F8
surface
#EDE9F0
border
#C8C5CB
text
#09030C
muted
#7B787D

Preview Lab

Preview with #3F135C

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

Preview Lab → · Contrast checker → · Palette generator →

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