#3F1266#3F1266

#3F1266 is a dark, vivid violet. Relative luminance 0.024; OKLCH L 30.8% C 0.136 H 303.3°. Best body text is #FFFFFF at 14.10:1 contrast (WCAG AA passes).

Color values

HEX#3F1266
RGBrgb(63, 18, 102)
HSLhsl(272, 70%, 24%)
HSVhsv(272, 82%, 40%)
CMYKcmyk(38.2%, 82.4%, 0%, 60%)
CIE-LABlab(17.68, 37.86, -39.88)
CIE-LCHlch(17.68, 54.99, 313.51°)
OKLaboklab(30.76% 0.0748 -0.1138)
OKLCHoklch(30.76% 0.136 303.3)
XYZxyz(4.6639, 2.4487, 12.7947)
Luminance0.0245 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F1266 #396612
analogous
#151266 #3F1266 #661263
triadic
#3F1266 #663F12 #12663F
tetradic
#3F1266 #661512 #396612 #126366
square
#3F1266 #661512 #396612 #126366
split-complementary
#3F1266 #636612 #126615
monochromatic
#10051A #1F0932 #3F1266 #5F1B9A #7F24CE

Accessibility & contrast

On white

14.10
#3F1266 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.49
#3F1266 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F1266
14.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F1266#FFFFFF#000000##FFFFFF
##3F12661.0014.101.4914.10
#FFFFFF14.101.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A68
Deuteranopia (green-blind)
#002B64
Tritanopia (blue-blind)
#37283C
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #3f1266;
/* rgb */ color: rgb(63, 18, 102);
/* oklch */ color: oklch(30.8% 0.136 303.3);
Tailwind
colors: {
  custom: {
    50: '#795692',
    500: '#3f1266',
    950: '#000000',
  },
}
SCSS
$custom: #3f1266;
$custom-light: #795692;
$custom-dark: #000000;
JSON
{
  "hex": "#3f1266",
  "rgb": {
    "r": 63,
    "g": 18,
    "b": 102
  },
  "hsl": {
    "h": 272.143,
    "s": 70,
    "l": 23.529
  },
  "oklch": {
    "l": 0.30758,
    "c": 0.13615,
    "h": 303.3
  },
  "luminance": 0.02449
}

Semantic roles & 50–950 ramp

primary
#3F1266
secondary
#669E36
accent
#ED3B8E
background
#F7F5F9
surface
#EEE9F1
border
#C9C5CB
text
#09030D
muted
#7B787E

Preview Lab

Preview with #3F1266

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

Preview Lab → · Contrast checker → · Palette generator →

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