#3F1865#3F1865

#3F1865 is a dark, vivid violet. Relative luminance 0.026; OKLCH L 31.4% C 0.128 H 302.7°. Best body text is #FFFFFF at 13.73:1 contrast (WCAG AA passes).

Color values

HEX#3F1865
RGBrgb(63, 24, 101)
HSLhsl(270, 62%, 25%)
HSVhsv(270, 76%, 40%)
CMYKcmyk(37.6%, 76.2%, 0%, 60.4%)
CIE-LABlab(18.58, 34.79, -37.76)
CIE-LCHlch(18.58, 51.34, 312.65°)
OKLaboklab(31.36% 0.069 -0.1076)
OKLCHoklch(31.36% 0.128 302.7)
XYZxyz(4.7249, 2.6496, 12.5719)
Luminance0.0265 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F1865 #3E6518
analogous
#191865 #3F1865 #651865
triadic
#3F1865 #653F18 #18653F
tetradic
#3F1865 #651918 #3E6518 #186565
square
#3F1865 #651918 #3E6518 #186565
split-complementary
#3F1865 #656518 #186519
monochromatic
#0F0619 #200C34 #3F1865 #5E2496 #7D30C8

Accessibility & contrast

On white

13.73
#3F1865 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3F1865
13.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F1865#FFFFFF#000000##FFFFFF
##3F18651.0013.731.5313.73
#FFFFFF13.731.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.731.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #3f1865;
/* rgb */ color: rgb(63, 24, 101);
/* oklch */ color: oklch(31.4% 0.128 302.7);
Tailwind
colors: {
  custom: {
    50: '#785991',
    500: '#3f1865',
    950: '#000000',
  },
}
SCSS
$custom: #3f1865;
$custom-light: #785991;
$custom-dark: #000000;
JSON
{
  "hex": "#3f1865",
  "rgb": {
    "r": 63,
    "g": 24,
    "b": 101
  },
  "hsl": {
    "h": 270.39,
    "s": 61.6,
    "l": 24.51
  },
  "oklch": {
    "l": 0.31363,
    "c": 0.1278,
    "h": 302.7
  },
  "luminance": 0.0265
}

Semantic roles & 50–950 ramp

primary
#3F1865
secondary
#6C9B3E
accent
#E54393
background
#F7F5F9
surface
#EEE9F1
border
#C9C5CB
text
#09040D
muted
#7B797E

Preview Lab

Preview with #3F1865

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

Preview Lab → · Contrast checker → · Palette generator →

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