#3F1765#3F1765

#3F1765 is a dark, vivid violet. Relative luminance 0.026; OKLCH L 31.2% C 0.129 H 302.9°. Best body text is #FFFFFF at 13.80:1 contrast (WCAG AA passes).

Color values

HEX#3F1765
RGBrgb(63, 23, 101)
HSLhsl(271, 63%, 24%)
HSVhsv(271, 77%, 40%)
CMYKcmyk(37.6%, 77.2%, 0%, 60.4%)
CIE-LABlab(18.41, 35.29, -38.05)
CIE-LCHlch(18.41, 51.90, 312.84°)
OKLaboklab(31.24% 0.0701 -0.1084)
OKLCHoklch(31.24% 0.129 302.9)
XYZxyz(4.7047, 2.6091, 12.5652)
Luminance0.0261 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F1765 #3D6517
analogous
#181765 #3F1765 #651764
triadic
#3F1765 #653F17 #17653F
tetradic
#3F1765 #651817 #3D6517 #176465
square
#3F1765 #651817 #3D6517 #176465
split-complementary
#3F1765 #646517 #176518
monochromatic
#100619 #200C33 #3F1765 #5E2297 #7D2EC9

Accessibility & contrast

On white

13.80
#3F1765 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.52
#3F1765 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F1765
13.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F1765#FFFFFF#000000##FFFFFF
##3F17651.0013.801.5213.80
#FFFFFF13.801.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C67
Deuteranopia (green-blind)
#002D63
Tritanopia (blue-blind)
#372A3C
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #3f1765;
/* rgb */ color: rgb(63, 23, 101);
/* oklch */ color: oklch(31.2% 0.129 302.9);
Tailwind
colors: {
  custom: {
    50: '#785892',
    500: '#3f1765',
    950: '#000000',
  },
}
SCSS
$custom: #3f1765;
$custom-light: #785892;
$custom-dark: #000000;
JSON
{
  "hex": "#3f1765",
  "rgb": {
    "r": 63,
    "g": 23,
    "b": 101
  },
  "hsl": {
    "h": 270.769,
    "s": 62.903,
    "l": 24.314
  },
  "oklch": {
    "l": 0.31237,
    "c": 0.12909,
    "h": 302.9
  },
  "luminance": 0.02609
}

Semantic roles & 50–950 ramp

primary
#3F1765
secondary
#6B9B3C
accent
#E64292
background
#F7F5F9
surface
#EEE9F1
border
#C9C5CB
text
#09030D
muted
#7B787E

Preview Lab

Preview with #3F1765

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

Preview Lab → · Contrast checker → · Palette generator →

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