#3F158E#3F158E

#3F158E is a dark, vivid violet. Relative luminance 0.035; OKLCH L 35.0% C 0.177 H 289.3°. Best body text is #FFFFFF at 12.29:1 contrast (WCAG AA passes).

Color values

HEX#3F158E
RGBrgb(63, 21, 142)
HSLhsl(261, 74%, 32%)
HSVhsv(261, 85%, 56%)
CMYKcmyk(55.6%, 85.2%, 0%, 44.3%)
CIE-LABlab(22.11, 47.29, -58.20)
CIE-LCHlch(22.11, 74.99, 309.09°)
OKLaboklab(35.04% 0.0586 -0.1674)
OKLCHoklch(35.04% 0.177 289.3)
XYZxyz(7.1991, 3.5457, 25.8910)
Luminance0.0355 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F158E #648E15
analogous
#15288E #3F158E #7B158E
triadic
#3F158E #8E3F15 #158E3F
tetradic
#3F158E #8E1528 #648E15 #158E7B
square
#3F158E #8E1528 #648E15 #158E7B
split-complementary
#3F158E #8E7B15 #288E15
monochromatic
#100523 #270D59 #3F158E #571DC3 #753BE2

Accessibility & contrast

On white

12.29
#3F158E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#3F158E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F158E
12.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F158E#FFFFFF#000000##FFFFFF
##3F158E1.0012.291.7112.29
#FFFFFF12.291.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003791
Deuteranopia (green-blind)
#00328C
Tritanopia (blue-blind)
#1F3A54
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #3f158e;
/* rgb */ color: rgb(63, 21, 142);
/* oklch */ color: oklch(35.0% 0.177 289.3);
Tailwind
colors: {
  custom: {
    50: '#7e5ab0',
    500: '#3f158e',
    950: '#000000',
  },
}
SCSS
$custom: #3f158e;
$custom-light: #7e5ab0;
$custom-dark: #000000;
JSON
{
  "hex": "#3f158e",
  "rgb": {
    "r": 63,
    "g": 21,
    "b": 142
  },
  "hsl": {
    "h": 260.826,
    "s": 74.233,
    "l": 31.961
  },
  "oklch": {
    "l": 0.35036,
    "c": 0.17741,
    "h": 289.3
  },
  "luminance": 0.03546
}

Semantic roles & 50–950 ramp

primary
#3F158E
secondary
#94C23D
accent
#F137B0
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0411
muted
#7C7980

Preview Lab

Preview with #3F158E

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

Preview Lab → · Contrast checker → · Palette generator →

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