#3F157B#3F157B

#3F157B is a dark, vivid violet. Relative luminance 0.030; OKLCH L 33.1% C 0.156 H 294.8°. Best body text is #FFFFFF at 13.09:1 contrast (WCAG AA passes).

Color values

HEX#3F157B
RGBrgb(63, 21, 123)
HSLhsl(265, 71%, 28%)
HSVhsv(265, 83%, 48%)
CMYKcmyk(48.8%, 82.9%, 0%, 51.8%)
CIE-LABlab(20.14, 42.13, -49.47)
CIE-LCHlch(20.14, 64.98, 310.42°)
OKLaboklab(33.08% 0.0656 -0.1419)
OKLCHoklch(33.08% 0.156 294.8)
XYZxyz(5.8922, 3.0230, 19.0081)
Luminance0.0302 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F157B #517B15
analogous
#151E7B #3F157B #72157B
triadic
#3F157B #7B3F15 #157B3F
tetradic
#3F157B #7B151E #517B15 #157B72
square
#3F157B #7B151E #517B15 #157B72
split-complementary
#3F157B #7B7215 #1E7B15
monochromatic
#0D041A #240C47 #3F157B #5A1EAF #762FDB

Accessibility & contrast

On white

13.09
#3F157B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.60
#3F157B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F157B
13.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F157B#FFFFFF#000000##FFFFFF
##3F157B1.0013.091.6013.09
#FFFFFF13.091.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00317E
Deuteranopia (green-blind)
#002F79
Tritanopia (blue-blind)
#2D3248
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #3f157b;
/* rgb */ color: rgb(63, 21, 123);
/* oklch */ color: oklch(33.1% 0.156 294.8);
Tailwind
colors: {
  custom: {
    50: '#7b59a2',
    500: '#3f157b',
    950: '#000000',
  },
}
SCSS
$custom: #3f157b;
$custom-light: #7b59a2;
$custom-dark: #000000;
JSON
{
  "hex": "#3f157b",
  "rgb": {
    "r": 63,
    "g": 21,
    "b": 123
  },
  "hsl": {
    "h": 264.706,
    "s": 70.833,
    "l": 28.235
  },
  "oklch": {
    "l": 0.33081,
    "c": 0.15635,
    "h": 294.8
  },
  "luminance": 0.03023
}

Semantic roles & 50–950 ramp

primary
#3F157B
secondary
#80B03B
accent
#EE3AA4
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A040F
muted
#7C797F

Preview Lab

Preview with #3F157B

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

Preview Lab → · Contrast checker → · Palette generator →

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