#3F1162#3F1162

#3F1162 is a dark, vivid violet. Relative luminance 0.023; OKLCH L 30.3% C 0.133 H 305.3°. Best body text is #FFFFFF at 14.31:1 contrast (WCAG AA passes).

Color values

HEX#3F1162
RGBrgb(63, 17, 98)
HSLhsl(274, 70%, 23%)
HSVhsv(274, 83%, 38%)
CMYKcmyk(35.7%, 82.7%, 0%, 61.6%)
CIE-LABlab(17.18, 37.27, -38.07)
CIE-LCHlch(17.18, 53.28, 314.39°)
OKLaboklab(30.29% 0.0768 -0.1084)
OKLCHoklch(30.29% 0.133 305.3)
XYZxyz(4.4545, 2.3395, 11.7698)
Luminance0.0234 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F1162 #346211
analogous
#161162 #3F1162 #62115D
triadic
#3F1162 #623F11 #11623F
tetradic
#3F1162 #621611 #346211 #115D62
square
#3F1162 #621611 #346211 #115D62
split-complementary
#3F1162 #5D6211 #116216
monochromatic
#11051A #1D082E #3F1162 #611A96 #8223CA

Accessibility & contrast

On white

14.31
#3F1162 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.47
#3F1162 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F1162
14.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F1162#FFFFFF#000000##FFFFFF
##3F11621.0014.311.4714.31
#FFFFFF14.311.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.311.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: #3f1162;
/* rgb */ color: rgb(63, 17, 98);
/* oklch */ color: oklch(30.3% 0.133 305.3);
Tailwind
colors: {
  custom: {
    50: '#78558f',
    500: '#3f1162',
    950: '#000000',
  },
}
SCSS
$custom: #3f1162;
$custom-light: #78558f;
$custom-dark: #000000;
JSON
{
  "hex": "#3f1162",
  "rgb": {
    "r": 63,
    "g": 17,
    "b": 98
  },
  "hsl": {
    "h": 274.074,
    "s": 70.435,
    "l": 22.549
  },
  "oklch": {
    "l": 0.3029,
    "c": 0.13289,
    "h": 305.3
  },
  "luminance": 0.0234
}

Semantic roles & 50–950 ramp

primary
#3F1162
secondary
#609A34
accent
#ED3B88
background
#F7F5F8
surface
#EEE9F0
border
#C9C5CB
text
#09030C
muted
#7B787D

Preview Lab

Preview with #3F1162

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

Preview Lab → · Contrast checker → · Palette generator →

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