#3F156D#3F156D

#3F156D is a dark, vivid violet. Relative luminance 0.027; OKLCH L 31.7% C 0.141 H 299.9°. Best body text is #FFFFFF at 13.64:1 contrast (WCAG AA passes).

Color values

HEX#3F156D
RGBrgb(63, 21, 109)
HSLhsl(269, 68%, 25%)
HSVhsv(269, 81%, 43%)
CMYKcmyk(42.2%, 80.7%, 0%, 57.3%)
CIE-LABlab(18.79, 38.36, -42.66)
CIE-LCHlch(18.79, 57.38, 311.96°)
OKLaboklab(31.73% 0.07 -0.1219)
OKLCHoklch(31.73% 0.141 299.9)
XYZxyz(5.0777, 2.6972, 14.7181)
Luminance0.0270 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F156D #436D15
analogous
#15176D #3F156D #6B156D
triadic
#3F156D #6D3F15 #156D3F
tetradic
#3F156D #6D1517 #436D15 #156D6B
square
#3F156D #6D1517 #436D15 #156D6B
split-complementary
#3F156D #6D6B15 #176D15
monochromatic
#0F051A #210B3A #3F156D #5D1FA0 #7A29D4

Accessibility & contrast

On white

13.64
#3F156D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.54
#3F156D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F156D
13.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F156D#FFFFFF#000000##FFFFFF
##3F156D1.0013.641.5413.64
#FFFFFF13.641.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D6F
Deuteranopia (green-blind)
#002D6B
Tritanopia (blue-blind)
#342C40
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #3f156d;
/* rgb */ color: rgb(63, 21, 109);
/* oklch */ color: oklch(31.7% 0.141 299.9);
Tailwind
colors: {
  custom: {
    50: '#795898',
    500: '#3f156d',
    950: '#000000',
  },
}
SCSS
$custom: #3f156d;
$custom-light: #795898;
$custom-dark: #000000;
JSON
{
  "hex": "#3f156d",
  "rgb": {
    "r": 63,
    "g": 21,
    "b": 109
  },
  "hsl": {
    "h": 268.636,
    "s": 67.692,
    "l": 25.49
  },
  "oklch": {
    "l": 0.31729,
    "c": 0.14063,
    "h": 299.9
  },
  "luminance": 0.02697
}

Semantic roles & 50–950 ramp

primary
#3F156D
secondary
#71A33A
accent
#EB3D98
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#0A030E
muted
#7C787E

Preview Lab

Preview with #3F156D

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

Preview Lab → · Contrast checker → · Palette generator →

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