#3F156C#3F156C

#3F156C is a dark, vivid violet. Relative luminance 0.027; OKLCH L 31.6% C 0.140 H 300.3°. Best body text is #FFFFFF at 13.68:1 contrast (WCAG AA passes).

Color values

HEX#3F156C
RGBrgb(63, 21, 108)
HSLhsl(269, 67%, 25%)
HSVhsv(269, 81%, 42%)
CMYKcmyk(41.7%, 80.6%, 0%, 57.6%)
CIE-LABlab(18.70, 38.10, -42.16)
CIE-LCHlch(18.70, 56.83, 312.10°)
OKLaboklab(31.64% 0.0703 -0.1205)
OKLCHoklch(31.64% 0.14 300.3)
XYZxyz(5.0242, 2.6758, 14.4362)
Luminance0.0268 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F156C #426C15
analogous
#15166C #3F156C #6B156C
triadic
#3F156C #6C3F15 #156C3F
tetradic
#3F156C #6C1516 #426C15 #156C6B
square
#3F156C #6C1516 #426C15 #156C6B
split-complementary
#3F156C #6C6B15 #166C15
monochromatic
#0F051A #210B39 #3F156C #5D1F9F #7B29D2

Accessibility & contrast

On white

13.68
#3F156C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3F156C
13.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F156C#FFFFFF#000000##FFFFFF
##3F156C1.0013.681.5413.68
#FFFFFF13.681.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D6E
Deuteranopia (green-blind)
#002D6A
Tritanopia (blue-blind)
#352C40
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #3f156c;
/* rgb */ color: rgb(63, 21, 108);
/* oklch */ color: oklch(31.6% 0.140 300.3);
Tailwind
colors: {
  custom: {
    50: '#795897',
    500: '#3f156c',
    950: '#000000',
  },
}
SCSS
$custom: #3f156c;
$custom-light: #795897;
$custom-dark: #000000;
JSON
{
  "hex": "#3f156c",
  "rgb": {
    "r": 63,
    "g": 21,
    "b": 108
  },
  "hsl": {
    "h": 268.966,
    "s": 67.442,
    "l": 25.294
  },
  "oklch": {
    "l": 0.31636,
    "c": 0.1395,
    "h": 300.3
  },
  "luminance": 0.02676
}

Semantic roles & 50–950 ramp

primary
#3F156C
secondary
#70A33A
accent
#EA3D97
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#0A030D
muted
#7C787E

Preview Lab

Preview with #3F156C

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

Preview Lab → · Contrast checker → · Palette generator →

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