#3F1268#3F1268

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

Color values

HEX#3F1268
RGBrgb(63, 18, 104)
HSLhsl(271, 70%, 24%)
HSVhsv(271, 83%, 41%)
CMYKcmyk(39.4%, 82.7%, 0%, 59.2%)
CIE-LABlab(17.87, 38.37, -40.90)
CIE-LCHlch(17.87, 56.08, 313.18°)
OKLaboklab(30.94% 0.0742 -0.1167)
OKLCHoklch(30.94% 0.138 302.4)
XYZxyz(4.7643, 2.4888, 13.3234)
Luminance0.0249 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F1268 #3B6812
analogous
#141268 #3F1268 #681266
triadic
#3F1268 #683F12 #12683F
tetradic
#3F1268 #681412 #3B6812 #126668
square
#3F1268 #681412 #3B6812 #126668
split-complementary
#3F1268 #666812 #126814
monochromatic
#10051A #1F0934 #3F1268 #5F1B9C #7E24D0

Accessibility & contrast

On white

14.02
#3F1268 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.50
#3F1268 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F1268
14.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F1268#FFFFFF#000000##FFFFFF
##3F12681.0014.021.5014.02
#FFFFFF14.021.0021.001.00
#0000001.5021.001.0021.00
##FFFFFF14.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B6A
Deuteranopia (green-blind)
#002B66
Tritanopia (blue-blind)
#36293D
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #3f1268;
/* rgb */ color: rgb(63, 18, 104);
/* oklch */ color: oklch(30.9% 0.138 302.4);
Tailwind
colors: {
  custom: {
    50: '#795694',
    500: '#3f1268',
    950: '#000000',
  },
}
SCSS
$custom: #3f1268;
$custom-light: #795694;
$custom-dark: #000000;
JSON
{
  "hex": "#3f1268",
  "rgb": {
    "r": 63,
    "g": 18,
    "b": 104
  },
  "hsl": {
    "h": 271.395,
    "s": 70.492,
    "l": 23.922
  },
  "oklch": {
    "l": 0.30943,
    "c": 0.13834,
    "h": 302.4
  },
  "luminance": 0.02489
}

Semantic roles & 50–950 ramp

primary
#3F1268
secondary
#68A036
accent
#ED3B90
background
#F7F5F9
surface
#EEE9F1
border
#C9C5CB
text
#09030D
muted
#7B787E

Preview Lab

Preview with #3F1268

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

Preview Lab → · Contrast checker → · Palette generator →

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