#3F157C#3F157C

#3F157C is a dark, vivid violet. Relative luminance 0.030; OKLCH L 33.2% C 0.157 H 294.5°. Best body text is #FFFFFF at 13.05:1 contrast (WCAG AA passes).

Color values

HEX#3F157C
RGBrgb(63, 21, 124)
HSLhsl(264, 71%, 28%)
HSVhsv(264, 83%, 49%)
CMYKcmyk(49.2%, 83.1%, 0%, 51.4%)
CIE-LABlab(20.24, 42.40, -49.95)
CIE-LCHlch(20.24, 65.52, 310.33°)
OKLaboklab(33.18% 0.0652 -0.1433)
OKLCHoklch(33.18% 0.157 294.5)
XYZxyz(5.9552, 3.0482, 19.3395)
Luminance0.0305 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F157C #527C15
analogous
#151E7C #3F157C #72157C
triadic
#3F157C #7C3F15 #157C3F
tetradic
#3F157C #7C151E #527C15 #157C72
square
#3F157C #7C151E #527C15 #157C72
split-complementary
#3F157C #7C7215 #1E7C15
monochromatic
#0D041A #240C48 #3F157C #5A1EB0 #7630DC

Accessibility & contrast

On white

13.05
#3F157C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.61
#3F157C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F157C
13.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F157C#FFFFFF#000000##FFFFFF
##3F157C1.0013.051.6113.05
#FFFFFF13.051.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00327F
Deuteranopia (green-blind)
#002F7A
Tritanopia (blue-blind)
#2D3349
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #3f157c;
/* rgb */ color: rgb(63, 21, 124);
/* oklch */ color: oklch(33.2% 0.157 294.5);
Tailwind
colors: {
  custom: {
    50: '#7b59a3',
    500: '#3f157c',
    950: '#000000',
  },
}
SCSS
$custom: #3f157c;
$custom-light: #7b59a3;
$custom-dark: #000000;
JSON
{
  "hex": "#3f157c",
  "rgb": {
    "r": 63,
    "g": 21,
    "b": 124
  },
  "hsl": {
    "h": 264.466,
    "s": 71.034,
    "l": 28.431
  },
  "oklch": {
    "l": 0.33181,
    "c": 0.15746,
    "h": 294.5
  },
  "luminance": 0.03048
}

Semantic roles & 50–950 ramp

primary
#3F157C
secondary
#81B13C
accent
#EE3AA4
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A040F
muted
#7C797F

Preview Lab

Preview with #3F157C

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

Preview Lab → · Contrast checker → · Palette generator →

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