#3F1864#3F1864

#3F1864 is a dark, vivid violet. Relative luminance 0.026; OKLCH L 31.3% C 0.127 H 303.1°. Best body text is #FFFFFF at 13.76:1 contrast (WCAG AA passes).

Color values

HEX#3F1864
RGBrgb(63, 24, 100)
HSLhsl(271, 61%, 24%)
HSVhsv(271, 76%, 39%)
CMYKcmyk(37%, 76%, 0%, 60.8%)
CIE-LABlab(18.50, 34.52, -37.24)
CIE-LCHlch(18.50, 50.78, 312.82°)
OKLaboklab(31.28% 0.0692 -0.106)
OKLCHoklch(31.28% 0.127 303.1)
XYZxyz(4.6762, 2.6301, 12.3154)
Luminance0.0263 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F1864 #3D6418
analogous
#191864 #3F1864 #641863
triadic
#3F1864 #643F18 #18643F
tetradic
#3F1864 #641918 #3D6418 #186364
square
#3F1864 #641918 #3D6418 #186364
split-complementary
#3F1864 #636418 #186419
monochromatic
#100619 #200C33 #3F1864 #5E2495 #7D30C7

Accessibility & contrast

On white

13.76
#3F1864 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3F1864
13.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F1864#FFFFFF#000000##FFFFFF
##3F18641.0013.761.5313.76
#FFFFFF13.761.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C66
Deuteranopia (green-blind)
#002D62
Tritanopia (blue-blind)
#382A3C
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #3f1864;
/* rgb */ color: rgb(63, 24, 100);
/* oklch */ color: oklch(31.3% 0.127 303.1);
Tailwind
colors: {
  custom: {
    50: '#785991',
    500: '#3f1864',
    950: '#000000',
  },
}
SCSS
$custom: #3f1864;
$custom-light: #785991;
$custom-dark: #000000;
JSON
{
  "hex": "#3f1864",
  "rgb": {
    "r": 63,
    "g": 24,
    "b": 100
  },
  "hsl": {
    "h": 270.789,
    "s": 61.29,
    "l": 24.314
  },
  "oklch": {
    "l": 0.31276,
    "c": 0.12662,
    "h": 303.1
  },
  "luminance": 0.0263
}

Semantic roles & 50–950 ramp

primary
#3F1864
secondary
#6B9A3E
accent
#E44392
background
#F7F5F8
surface
#EEE9F0
border
#C9C5CB
text
#09040D
muted
#7B797D

Preview Lab

Preview with #3F1864

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

Preview Lab → · Contrast checker → · Palette generator →

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