#3F1876#3F1876

#3F1876 is a dark, vivid violet. Relative luminance 0.030; OKLCH L 32.9% C 0.148 H 296.0°. Best body text is #FFFFFF at 13.10:1 contrast (WCAG AA passes).

Color values

HEX#3F1876
RGBrgb(63, 24, 118)
HSLhsl(265, 66%, 28%)
HSVhsv(265, 80%, 46%)
CMYKcmyk(46.6%, 79.7%, 0%, 53.7%)
CIE-LABlab(20.12, 39.42, -46.31)
CIE-LCHlch(20.12, 60.81, 310.40°)
OKLaboklab(32.92% 0.0647 -0.1327)
OKLCHoklch(32.92% 0.148 296)
XYZxyz(5.6457, 3.0179, 17.4211)
Luminance0.0302 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F1876 #4F7618
analogous
#182076 #3F1876 #6E1876
triadic
#3F1876 #763F18 #18763F
tetradic
#3F1876 #761820 #4F7618 #18766E
square
#3F1876 #761820 #4F7618 #18766E
split-complementary
#3F1876 #766E18 #207618
monochromatic
#0E0519 #240E43 #3F1876 #5A22A9 #7633D5

Accessibility & contrast

On white

13.10
#3F1876 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.60
#3F1876 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F1876
13.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F1876#FFFFFF#000000##FFFFFF
##3F18761.0013.101.6013.10
#FFFFFF13.101.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003179
Deuteranopia (green-blind)
#002F74
Tritanopia (blue-blind)
#303246
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #3f1876;
/* rgb */ color: rgb(63, 24, 118);
/* oklch */ color: oklch(32.9% 0.148 296.0);
Tailwind
colors: {
  custom: {
    50: '#7a5a9e',
    500: '#3f1876',
    950: '#000000',
  },
}
SCSS
$custom: #3f1876;
$custom-light: #7a5a9e;
$custom-dark: #000000;
JSON
{
  "hex": "#3f1876",
  "rgb": {
    "r": 63,
    "g": 24,
    "b": 118
  },
  "hsl": {
    "h": 264.894,
    "s": 66.197,
    "l": 27.843
  },
  "oklch": {
    "l": 0.32918,
    "c": 0.14761,
    "h": 296
  },
  "luminance": 0.03018
}

Semantic roles & 50–950 ramp

primary
#3F1876
secondary
#7EAB3F
accent
#E93FA2
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#0A040E
muted
#7C797E

Preview Lab

Preview with #3F1876

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

Preview Lab → · Contrast checker → · Palette generator →

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