#3F117E#3F117E

#3F117E is a dark, vivid violet. Relative luminance 0.030; OKLCH L 33.0% C 0.163 H 294.4°. Best body text is #FFFFFF at 13.18:1 contrast (WCAG AA passes).

Color values

HEX#3F117E
RGBrgb(63, 17, 126)
HSLhsl(265, 76%, 28%)
HSVhsv(265, 87%, 49%)
CMYKcmyk(50%, 86.5%, 0%, 50.6%)
CIE-LABlab(19.90, 44.52, -51.78)
CIE-LCHlch(19.90, 68.28, 310.69°)
OKLaboklab(33.01% 0.0673 -0.1486)
OKLCHoklch(33.01% 0.163 294.4)
XYZxyz(6.0152, 2.9638, 19.9898)
Luminance0.0296 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F117E #507E11
analogous
#11197E #3F117E #75117E
triadic
#3F117E #7E3F11 #117E3F
tetradic
#3F117E #7E1119 #507E11 #117E75
square
#3F117E #7E1119 #507E11 #117E75
split-complementary
#3F117E #7E7511 #197E11
monochromatic
#0D041B #240A48 #3F117E #5A18B4 #7627E2

Accessibility & contrast

On white

13.18
#3F117E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.59
#3F117E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F117E
13.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F117E#FFFFFF#000000##FFFFFF
##3F117E1.0013.181.5913.18
#FFFFFF13.181.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003181
Deuteranopia (green-blind)
#002E7C
Tritanopia (blue-blind)
#2C3249
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #3f117e;
/* rgb */ color: rgb(63, 17, 126);
/* oklch */ color: oklch(33.0% 0.163 294.4);
Tailwind
colors: {
  custom: {
    50: '#7c57a4',
    500: '#3f117e',
    950: '#000000',
  },
}
SCSS
$custom: #3f117e;
$custom-light: #7c57a4;
$custom-dark: #000000;
JSON
{
  "hex": "#3f117e",
  "rgb": {
    "r": 63,
    "g": 17,
    "b": 126
  },
  "hsl": {
    "h": 265.321,
    "s": 76.224,
    "l": 28.039
  },
  "oklch": {
    "l": 0.3301,
    "c": 0.16314,
    "h": 294.4
  },
  "luminance": 0.02964
}

Semantic roles & 50–950 ramp

primary
#3F117E
secondary
#7FB437
accent
#F335A3
background
#F8F5FA
surface
#EFE9F4
border
#CAC5CE
text
#0A030F
muted
#7C787F

Preview Lab

Preview with #3F117E

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

Preview Lab → · Contrast checker → · Palette generator →

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