#3F1672#3F1672

#3F1672 is a dark, vivid violet. Relative luminance 0.028; OKLCH L 32.3% C 0.145 H 297.8°. Best body text is #FFFFFF at 13.38:1 contrast (WCAG AA passes).

Color values

HEX#3F1672
RGBrgb(63, 22, 114)
HSLhsl(267, 68%, 27%)
HSVhsv(267, 81%, 45%)
CMYKcmyk(44.7%, 80.7%, 0%, 55.3%)
CIE-LABlab(19.41, 39.25, -44.88)
CIE-LCHlch(19.41, 59.62, 311.17°)
OKLaboklab(32.31% 0.0677 -0.1285)
OKLCHoklch(32.31% 0.145 297.8)
XYZxyz(5.3733, 2.8454, 16.1824)
Luminance0.0284 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F1672 #497216
analogous
#161B72 #3F1672 #6D1672
triadic
#3F1672 #723F16 #16723F
tetradic
#3F1672 #72161B #497216 #16726D
square
#3F1672 #72161B #497216 #16726D
split-complementary
#3F1672 #726D16 #1B7216
monochromatic
#0E051A #230C3F #3F1672 #5B20A5 #782CD6

Accessibility & contrast

On white

13.38
#3F1672 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.57
#3F1672 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F1672
13.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F1672#FFFFFF#000000##FFFFFF
##3F16721.0013.381.5713.38
#FFFFFF13.381.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F75
Deuteranopia (green-blind)
#002E70
Tritanopia (blue-blind)
#322F43
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #3f1672;
/* rgb */ color: rgb(63, 22, 114);
/* oklch */ color: oklch(32.3% 0.145 297.8);
Tailwind
colors: {
  custom: {
    50: '#7a589b',
    500: '#3f1672',
    950: '#000000',
  },
}
SCSS
$custom: #3f1672;
$custom-light: #7a589b;
$custom-dark: #000000;
JSON
{
  "hex": "#3f1672",
  "rgb": {
    "r": 63,
    "g": 22,
    "b": 114
  },
  "hsl": {
    "h": 266.739,
    "s": 67.647,
    "l": 26.667
  },
  "oklch": {
    "l": 0.32311,
    "c": 0.1452,
    "h": 297.8
  },
  "luminance": 0.02845
}

Semantic roles & 50–950 ramp

primary
#3F1672
secondary
#78A83C
accent
#EB3D9D
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#0A040E
muted
#7C797E

Preview Lab

Preview with #3F1672

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

Preview Lab → · Contrast checker → · Palette generator →

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