#3F1870#3F1870

#3F1870 is a dark, vivid violet. Relative luminance 0.029; OKLCH L 32.4% C 0.141 H 298.2°. Best body text is #FFFFFF at 13.32:1 contrast (WCAG AA passes).

Color values

HEX#3F1870
RGBrgb(63, 24, 112)
HSLhsl(267, 65%, 27%)
HSVhsv(267, 79%, 44%)
CMYKcmyk(43.7%, 78.6%, 0%, 56.1%)
CIE-LABlab(19.56, 37.77, -43.36)
CIE-LCHlch(19.56, 57.50, 311.06°)
OKLaboklab(32.35% 0.0664 -0.124)
OKLCHoklch(32.35% 0.141 298.2)
XYZxyz(5.3004, 2.8798, 15.6027)
Luminance0.0288 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F1870 #497018
analogous
#181D70 #3F1870 #6B1870
triadic
#3F1870 #703F18 #18703F
tetradic
#3F1870 #70181D #497018 #18706B
square
#3F1870 #70181D #497018 #18706B
split-complementary
#3F1870 #706B18 #1D7018
monochromatic
#0E0519 #230D3E #3F1870 #5B23A2 #7830D3

Accessibility & contrast

On white

13.32
#3F1870 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.58
#3F1870 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F1870
13.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F1870#FFFFFF#000000##FFFFFF
##3F18701.0013.321.5813.32
#FFFFFF13.321.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F72
Deuteranopia (green-blind)
#002E6E
Tritanopia (blue-blind)
#332F43
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #3f1870;
/* rgb */ color: rgb(63, 24, 112);
/* oklch */ color: oklch(32.4% 0.141 298.2);
Tailwind
colors: {
  custom: {
    50: '#79599a',
    500: '#3f1870',
    950: '#000000',
  },
}
SCSS
$custom: #3f1870;
$custom-light: #79599a;
$custom-dark: #000000;
JSON
{
  "hex": "#3f1870",
  "rgb": {
    "r": 63,
    "g": 24,
    "b": 112
  },
  "hsl": {
    "h": 266.591,
    "s": 64.706,
    "l": 26.667
  },
  "oklch": {
    "l": 0.32353,
    "c": 0.14065,
    "h": 298.2
  },
  "luminance": 0.0288
}

Semantic roles & 50–950 ramp

primary
#3F1870
secondary
#78A53E
accent
#E8409D
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#0A040E
muted
#7C797E

Preview Lab

Preview with #3F1870

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

Preview Lab → · Contrast checker → · Palette generator →

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