#3F135B#3F135B

#3F135B is a dark, vivid violet. Relative luminance 0.023; OKLCH L 29.9% C 0.123 H 308.5°. Best body text is #FFFFFF at 14.43:1 contrast (WCAG AA passes).

Color values

HEX#3F135B
RGBrgb(63, 19, 91)
HSLhsl(277, 65%, 22%)
HSVhsv(277, 79%, 36%)
CMYKcmyk(30.8%, 79.1%, 0%, 64.3%)
CIE-LABlab(16.88, 34.62, -33.89)
CIE-LCHlch(16.88, 48.45, 315.61°)
OKLaboklab(29.9% 0.0765 -0.0961)
OKLCHoklch(29.9% 0.123 308.5)
XYZxyz(4.1707, 2.2779, 10.1155)
Luminance0.0228 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F135B #2F5B13
analogous
#1B135B #3F135B #5B1353
triadic
#3F135B #5B3F13 #135B3F
tetradic
#3F135B #5B1B13 #2F5B13 #13535B
square
#3F135B #5B1B13 #2F5B13 #13535B
split-complementary
#3F135B #535B13 #135B1B
monochromatic
#120519 #1C0828 #3F135B #621E8E #8528C0

Accessibility & contrast

On white

14.43
#3F135B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3F135B
14.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F135B#FFFFFF#000000##FFFFFF
##3F135B1.0014.431.4614.43
#FFFFFF14.431.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00285D
Deuteranopia (green-blind)
#002A59
Tritanopia (blue-blind)
#3B2436
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #3f135b;
/* rgb */ color: rgb(63, 19, 91);
/* oklch */ color: oklch(29.9% 0.123 308.5);
Tailwind
colors: {
  custom: {
    50: '#77568a',
    500: '#3f135b',
    950: '#000000',
  },
}
SCSS
$custom: #3f135b;
$custom-light: #77568a;
$custom-dark: #000000;
JSON
{
  "hex": "#3f135b",
  "rgb": {
    "r": 63,
    "g": 19,
    "b": 91
  },
  "hsl": {
    "h": 276.667,
    "s": 65.455,
    "l": 21.569
  },
  "oklch": {
    "l": 0.29895,
    "c": 0.12286,
    "h": 308.5
  },
  "luminance": 0.02278
}

Semantic roles & 50–950 ramp

primary
#3F135B
secondary
#5B9337
accent
#E83F81
background
#F7F5F8
surface
#EDE9F0
border
#C8C5CB
text
#09030C
muted
#7B787D

Preview Lab

Preview with #3F135B

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

Preview Lab → · Contrast checker → · Palette generator →

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