#3F1267#3F1267

#3F1267 is a dark, vivid violet. Relative luminance 0.025; OKLCH L 30.9% C 0.137 H 302.9°. Best body text is #FFFFFF at 14.06:1 contrast (WCAG AA passes).

Color values

HEX#3F1267
RGBrgb(63, 18, 103)
HSLhsl(272, 70%, 24%)
HSVhsv(272, 83%, 40%)
CMYKcmyk(38.8%, 82.5%, 0%, 59.6%)
CIE-LABlab(17.78, 38.12, -40.39)
CIE-LCHlch(17.78, 55.54, 313.34°)
OKLaboklab(30.85% 0.0745 -0.1152)
OKLCHoklch(30.85% 0.137 302.9)
XYZxyz(4.7138, 2.4686, 13.0575)
Luminance0.0247 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F1267 #3A6712
analogous
#141267 #3F1267 #671264
triadic
#3F1267 #673F12 #12673F
tetradic
#3F1267 #671412 #3A6712 #126467
square
#3F1267 #671412 #3A6712 #126467
split-complementary
#3F1267 #646712 #126714
monochromatic
#10051A #1F0933 #3F1267 #5F1B9B #7F24CF

Accessibility & contrast

On white

14.06
#3F1267 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3F1267
14.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F1267#FFFFFF#000000##FFFFFF
##3F12671.0014.061.4914.06
#FFFFFF14.061.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B69
Deuteranopia (green-blind)
#002B65
Tritanopia (blue-blind)
#37293C
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #3f1267;
/* rgb */ color: rgb(63, 18, 103);
/* oklch */ color: oklch(30.9% 0.137 302.9);
Tailwind
colors: {
  custom: {
    50: '#795693',
    500: '#3f1267',
    950: '#000000',
  },
}
SCSS
$custom: #3f1267;
$custom-light: #795693;
$custom-dark: #000000;
JSON
{
  "hex": "#3f1267",
  "rgb": {
    "r": 63,
    "g": 18,
    "b": 103
  },
  "hsl": {
    "h": 271.765,
    "s": 70.248,
    "l": 23.725
  },
  "oklch": {
    "l": 0.3085,
    "c": 0.13724,
    "h": 302.9
  },
  "luminance": 0.02469
}

Semantic roles & 50–950 ramp

primary
#3F1267
secondary
#679F36
accent
#ED3B8F
background
#F7F5F9
surface
#EEE9F1
border
#C9C5CB
text
#09030D
muted
#7B787E

Preview Lab

Preview with #3F1267

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

Preview Lab → · Contrast checker → · Palette generator →

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