#3F1062#3F1062

#3F1062 is a dark, vivid violet. Relative luminance 0.023; OKLCH L 30.2% C 0.134 H 305.5°. Best body text is #FFFFFF at 14.37:1 contrast (WCAG AA passes).

Color values

HEX#3F1062
RGBrgb(63, 16, 98)
HSLhsl(274, 72%, 22%)
HSVhsv(274, 84%, 38%)
CMYKcmyk(35.7%, 83.7%, 0%, 61.6%)
CIE-LABlab(17.03, 37.68, -38.31)
CIE-LCHlch(17.03, 53.73, 314.53°)
OKLaboklab(30.19% 0.0778 -0.1091)
OKLCHoklch(30.19% 0.134 305.5)
XYZxyz(4.4393, 2.3092, 11.7648)
Luminance0.0231 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F1062 #336210
analogous
#161062 #3F1062 #62105C
triadic
#3F1062 #623F10 #10623F
tetradic
#3F1062 #621610 #336210 #105C62
square
#3F1062 #621610 #336210 #105C62
split-complementary
#3F1062 #5C6210 #106216
monochromatic
#11041A #1D072D #3F1062 #611997 #8321CB

Accessibility & contrast

On white

14.37
#3F1062 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.46
#3F1062 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F1062
14.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F1062#FFFFFF#000000##FFFFFF
##3F10621.0014.371.4614.37
#FFFFFF14.371.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002964
Deuteranopia (green-blind)
#002A60
Tritanopia (blue-blind)
#382639
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #3f1062;
/* rgb */ color: rgb(63, 16, 98);
/* oklch */ color: oklch(30.2% 0.134 305.5);
Tailwind
colors: {
  custom: {
    50: '#78558f',
    500: '#3f1062',
    950: '#000000',
  },
}
SCSS
$custom: #3f1062;
$custom-light: #78558f;
$custom-dark: #000000;
JSON
{
  "hex": "#3f1062",
  "rgb": {
    "r": 63,
    "g": 16,
    "b": 98
  },
  "hsl": {
    "h": 274.39,
    "s": 71.93,
    "l": 22.353
  },
  "oklch": {
    "l": 0.3019,
    "c": 0.13398,
    "h": 305.5
  },
  "luminance": 0.02309
}

Semantic roles & 50–950 ramp

primary
#3F1062
secondary
#5F9B33
accent
#EF3987
background
#F7F5F8
surface
#EEE9F0
border
#C9C5CB
text
#09030C
muted
#7B787D

Preview Lab

Preview with #3F1062

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

Preview Lab → · Contrast checker → · Palette generator →

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