#3F1868#3F1868

#3F1868 is a dark, vivid violet. Relative luminance 0.027; OKLCH L 31.6% C 0.131 H 301.4°. Best body text is #FFFFFF at 13.62:1 contrast (WCAG AA passes).

Color values

HEX#3F1868
RGBrgb(63, 24, 104)
HSLhsl(269, 63%, 25%)
HSVhsv(269, 77%, 41%)
CMYKcmyk(39.4%, 76.9%, 0%, 59.2%)
CIE-LABlab(18.84, 35.59, -39.31)
CIE-LCHlch(18.84, 53.03, 312.16°)
OKLaboklab(31.63% 0.0683 -0.1121)
OKLCHoklch(31.63% 0.131 301.4)
XYZxyz(4.8746, 2.7095, 13.3602)
Luminance0.0271 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F1868 #416818
analogous
#181968 #3F1868 #671868
triadic
#3F1868 #683F18 #18683F
tetradic
#3F1868 #681819 #416818 #186867
square
#3F1868 #681819 #416818 #186867
split-complementary
#3F1868 #686718 #196818
monochromatic
#0F0619 #210D36 #3F1868 #5D239A #7B2FCB

Accessibility & contrast

On white

13.62
#3F1868 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.54
#3F1868 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F1868
13.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F1868#FFFFFF#000000##FFFFFF
##3F18681.0013.621.5413.62
#FFFFFF13.621.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D6A
Deuteranopia (green-blind)
#002D66
Tritanopia (blue-blind)
#362C3E
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #3f1868;
/* rgb */ color: rgb(63, 24, 104);
/* oklch */ color: oklch(31.6% 0.131 301.4);
Tailwind
colors: {
  custom: {
    50: '#785994',
    500: '#3f1868',
    950: '#000000',
  },
}
SCSS
$custom: #3f1868;
$custom-light: #785994;
$custom-dark: #000000;
JSON
{
  "hex": "#3f1868",
  "rgb": {
    "r": 63,
    "g": 24,
    "b": 104
  },
  "hsl": {
    "h": 269.25,
    "s": 62.5,
    "l": 25.098
  },
  "oklch": {
    "l": 0.31627,
    "c": 0.13132,
    "h": 301.4
  },
  "luminance": 0.0271
}

Semantic roles & 50–950 ramp

primary
#3F1868
secondary
#6F9E3E
accent
#E64296
background
#F7F5F9
surface
#EEE9F1
border
#C9C5CB
text
#09040D
muted
#7B797E

Preview Lab

Preview with #3F1868

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

Preview Lab → · Contrast checker → · Palette generator →

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