#3F156B#3F156B

#3F156B is a dark, vivid violet. Relative luminance 0.027; OKLCH L 31.5% C 0.138 H 300.7°. Best body text is #FFFFFF at 13.72:1 contrast (WCAG AA passes).

Color values

HEX#3F156B
RGBrgb(63, 21, 107)
HSLhsl(269, 67%, 25%)
HSVhsv(269, 80%, 42%)
CMYKcmyk(41.1%, 80.4%, 0%, 58%)
CIE-LABlab(18.60, 37.83, -41.66)
CIE-LCHlch(18.60, 56.28, 312.24°)
OKLaboklab(31.54% 0.0706 -0.119)
OKLCHoklch(31.54% 0.138 300.7)
XYZxyz(4.9712, 2.6546, 14.1575)
Luminance0.0266 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F156B #416B15
analogous
#15166B #3F156B #6A156B
triadic
#3F156B #6B3F15 #156B3F
tetradic
#3F156B #6B1516 #416B15 #156B6A
square
#3F156B #6B1516 #416B15 #156B6A
split-complementary
#3F156B #6B6A15 #166B15
monochromatic
#0F051A #210B38 #3F156B #5D1F9E #7B29D1

Accessibility & contrast

On white

13.72
#3F156B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3F156B
13.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F156B#FFFFFF#000000##FFFFFF
##3F156B1.0013.721.5313.72
#FFFFFF13.721.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D6D
Deuteranopia (green-blind)
#002D69
Tritanopia (blue-blind)
#352C3F
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #3f156b;
/* rgb */ color: rgb(63, 21, 107);
/* oklch */ color: oklch(31.5% 0.138 300.7);
Tailwind
colors: {
  custom: {
    50: '#795896',
    500: '#3f156b',
    950: '#000000',
  },
}
SCSS
$custom: #3f156b;
$custom-light: #795896;
$custom-dark: #000000;
JSON
{
  "hex": "#3f156b",
  "rgb": {
    "r": 63,
    "g": 21,
    "b": 107
  },
  "hsl": {
    "h": 269.302,
    "s": 67.188,
    "l": 25.098
  },
  "oklch": {
    "l": 0.31543,
    "c": 0.13837,
    "h": 300.7
  },
  "luminance": 0.02655
}

Semantic roles & 50–950 ramp

primary
#3F156B
secondary
#6FA23A
accent
#EA3E96
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#09030D
muted
#7B787E

Preview Lab

Preview with #3F156B

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

Preview Lab → · Contrast checker → · Palette generator →

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