#3F156A#3F156A

#3F156A is a dark, vivid violet. Relative luminance 0.026; OKLCH L 31.5% C 0.137 H 301.1°. Best body text is #FFFFFF at 13.75:1 contrast (WCAG AA passes).

Color values

HEX#3F156A
RGBrgb(63, 21, 106)
HSLhsl(270, 67%, 25%)
HSVhsv(270, 80%, 42%)
CMYKcmyk(40.6%, 80.2%, 0%, 58.4%)
CIE-LABlab(18.51, 37.57, -41.16)
CIE-LCHlch(18.51, 55.72, 312.39°)
OKLaboklab(31.45% 0.0709 -0.1175)
OKLCHoklch(31.45% 0.137 301.1)
XYZxyz(4.9189, 2.6337, 13.8821)
Luminance0.0263 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F156A #406A15
analogous
#15166A #3F156A #69156A
triadic
#3F156A #6A3F15 #156A3F
tetradic
#3F156A #6A1516 #406A15 #156A69
square
#3F156A #6A1516 #406A15 #156A69
split-complementary
#3F156A #6A6915 #166A15
monochromatic
#0F051A #210B37 #3F156A #5D1F9D #7C29D0

Accessibility & contrast

On white

13.75
#3F156A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.53
#3F156A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F156A
13.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F156A#FFFFFF#000000##FFFFFF
##3F156A1.0013.751.5313.75
#FFFFFF13.751.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D6C
Deuteranopia (green-blind)
#002D68
Tritanopia (blue-blind)
#352B3F
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #3f156a;
/* rgb */ color: rgb(63, 21, 106);
/* oklch */ color: oklch(31.5% 0.137 301.1);
Tailwind
colors: {
  custom: {
    50: '#795795',
    500: '#3f156a',
    950: '#000000',
  },
}
SCSS
$custom: #3f156a;
$custom-light: #795795;
$custom-dark: #000000;
JSON
{
  "hex": "#3f156a",
  "rgb": {
    "r": 63,
    "g": 21,
    "b": 106
  },
  "hsl": {
    "h": 269.647,
    "s": 66.929,
    "l": 24.902
  },
  "oklch": {
    "l": 0.31451,
    "c": 0.13724,
    "h": 301.1
  },
  "luminance": 0.02634
}

Semantic roles & 50–950 ramp

primary
#3F156A
secondary
#6EA13A
accent
#EA3E95
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#09030D
muted
#7B787E

Preview Lab

Preview with #3F156A

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

Preview Lab → · Contrast checker → · Palette generator →

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