#3F1866#3F1866

#3F1866 is a dark, vivid violet. Relative luminance 0.027; OKLCH L 31.4% C 0.129 H 302.2°. Best body text is #FFFFFF at 13.69:1 contrast (WCAG AA passes).

Color values

HEX#3F1866
RGBrgb(63, 24, 102)
HSLhsl(270, 62%, 25%)
HSVhsv(270, 76%, 40%)
CMYKcmyk(38.2%, 76.5%, 0%, 60%)
CIE-LABlab(18.67, 35.05, -38.28)
CIE-LCHlch(18.67, 51.91, 312.48°)
OKLaboklab(31.45% 0.0688 -0.1091)
OKLCHoklch(31.45% 0.129 302.2)
XYZxyz(4.7742, 2.6693, 12.8315)
Luminance0.0267 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F1866 #3F6618
analogous
#181866 #3F1866 #661866
triadic
#3F1866 #663F18 #18663F
tetradic
#3F1866 #661818 #3F6618 #186666
square
#3F1866 #661818 #3F6618 #186666
split-complementary
#3F1866 #666618 #186618
monochromatic
#0F0619 #200C34 #3F1866 #5E2498 #7C2FC9

Accessibility & contrast

On white

13.69
#3F1866 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3F1866
13.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F1866#FFFFFF#000000##FFFFFF
##3F18661.0013.691.5313.69
#FFFFFF13.691.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D68
Deuteranopia (green-blind)
#002D64
Tritanopia (blue-blind)
#372B3D
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #3f1866;
/* rgb */ color: rgb(63, 24, 102);
/* oklch */ color: oklch(31.4% 0.129 302.2);
Tailwind
colors: {
  custom: {
    50: '#785992',
    500: '#3f1866',
    950: '#000000',
  },
}
SCSS
$custom: #3f1866;
$custom-light: #785992;
$custom-dark: #000000;
JSON
{
  "hex": "#3f1866",
  "rgb": {
    "r": 63,
    "g": 24,
    "b": 102
  },
  "hsl": {
    "h": 270,
    "s": 61.905,
    "l": 24.706
  },
  "oklch": {
    "l": 0.3145,
    "c": 0.12898,
    "h": 302.2
  },
  "luminance": 0.02669
}

Semantic roles & 50–950 ramp

primary
#3F1866
secondary
#6D9C3E
accent
#E54394
background
#F7F5F9
surface
#EEE9F1
border
#C9C5CB
text
#09040D
muted
#7B797E

Preview Lab

Preview with #3F1866

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

Preview Lab → · Contrast checker → · Palette generator →

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