#3F1863#3F1863

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

Color values

HEX#3F1863
RGBrgb(63, 24, 99)
HSLhsl(271, 61%, 24%)
HSVhsv(271, 76%, 39%)
CMYKcmyk(36.4%, 75.8%, 0%, 61.2%)
CIE-LABlab(18.41, 34.25, -36.72)
CIE-LCHlch(18.41, 50.22, 313.01°)
OKLaboklab(31.19% 0.0694 -0.1045)
OKLCHoklch(31.19% 0.125 303.6)
XYZxyz(4.6281, 2.6109, 12.0621)
Luminance0.0261 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F1863 #3C6318
analogous
#1A1863 #3F1863 #631862
triadic
#3F1863 #633F18 #18633F
tetradic
#3F1863 #631A18 #3C6318 #186263
square
#3F1863 #631A18 #3C6318 #186263
split-complementary
#3F1863 #626318 #18631A
monochromatic
#100619 #200C32 #3F1863 #5E2494 #7E30C6

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##3F1863#FFFFFF#000000##FFFFFF
##3F18631.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)
#002C65
Deuteranopia (green-blind)
#002D61
Tritanopia (blue-blind)
#382A3C
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #3f1863;
/* rgb */ color: rgb(63, 24, 99);
/* oklch */ color: oklch(31.2% 0.125 303.6);
Tailwind
colors: {
  custom: {
    50: '#785990',
    500: '#3f1863',
    950: '#000000',
  },
}
SCSS
$custom: #3f1863;
$custom-light: #785990;
$custom-dark: #000000;
JSON
{
  "hex": "#3f1863",
  "rgb": {
    "r": 63,
    "g": 24,
    "b": 99
  },
  "hsl": {
    "h": 271.2,
    "s": 60.976,
    "l": 24.118
  },
  "oklch": {
    "l": 0.31189,
    "c": 0.12545,
    "h": 303.6
  },
  "luminance": 0.02611
}

Semantic roles & 50–950 ramp

primary
#3F1863
secondary
#6A993E
accent
#E44491
background
#F7F5F8
surface
#EEE9F0
border
#C9C5CB
text
#09040C
muted
#7B797D

Preview Lab

Preview with #3F1863

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

Preview Lab → · Contrast checker → · Palette generator →

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