#3F1163#3F1163

#3F1163 is a dark, vivid violet. Relative luminance 0.024; OKLCH L 30.4% C 0.134 H 304.9°. Best body text is #FFFFFF at 14.27:1 contrast (WCAG AA passes).

Color values

HEX#3F1163
RGBrgb(63, 17, 99)
HSLhsl(274, 71%, 23%)
HSVhsv(274, 83%, 39%)
CMYKcmyk(36.4%, 82.8%, 0%, 61.2%)
CIE-LABlab(17.27, 37.52, -38.59)
CIE-LCHlch(17.27, 53.82, 314.20°)
OKLaboklab(30.38% 0.0766 -0.1099)
OKLCHoklch(30.38% 0.134 304.9)
XYZxyz(4.5020, 2.3585, 12.0200)
Luminance0.0236 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F1163 #356311
analogous
#161163 #3F1163 #63115E
triadic
#3F1163 #633F11 #11633F
tetradic
#3F1163 #631611 #356311 #115E63
square
#3F1163 #631611 #356311 #115E63
split-complementary
#3F1163 #5E6311 #116316
monochromatic
#11041A #1E082F #3F1163 #601A97 #8123CB

Accessibility & contrast

On white

14.27
#3F1163 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3F1163
14.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F1163#FFFFFF#000000##FFFFFF
##3F11631.0014.271.4714.27
#FFFFFF14.271.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002965
Deuteranopia (green-blind)
#002A61
Tritanopia (blue-blind)
#38263A
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #3f1163;
/* rgb */ color: rgb(63, 17, 99);
/* oklch */ color: oklch(30.4% 0.134 304.9);
Tailwind
colors: {
  custom: {
    50: '#785590',
    500: '#3f1163',
    950: '#000000',
  },
}
SCSS
$custom: #3f1163;
$custom-light: #785590;
$custom-dark: #000000;
JSON
{
  "hex": "#3f1163",
  "rgb": {
    "r": 63,
    "g": 17,
    "b": 99
  },
  "hsl": {
    "h": 273.659,
    "s": 70.69,
    "l": 22.745
  },
  "oklch": {
    "l": 0.30381,
    "c": 0.13398,
    "h": 304.9
  },
  "luminance": 0.02359
}

Semantic roles & 50–950 ramp

primary
#3F1163
secondary
#629B34
accent
#ED3A89
background
#F7F5F8
surface
#EEE9F0
border
#C9C5CB
text
#09030D
muted
#7B787D

Preview Lab

Preview with #3F1163

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

Preview Lab → · Contrast checker → · Palette generator →

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