#3F185A#3F185A

#3F185A is a dark, moderate violet. Relative luminance 0.024; OKLCH L 30.4% C 0.115 H 308.1°. Best body text is #FFFFFF at 14.10:1 contrast (WCAG AA passes).

Color values

HEX#3F185A
RGBrgb(63, 24, 90)
HSLhsl(275, 58%, 22%)
HSVhsv(275, 73%, 35%)
CMYKcmyk(30%, 73.3%, 0%, 64.7%)
CIE-LABlab(17.68, 31.89, -31.92)
CIE-LCHlch(17.68, 45.12, 314.97°)
OKLaboklab(30.44% 0.0708 -0.0904)
OKLCHoklch(30.44% 0.115 308.1)
XYZxyz(4.2216, 2.4483, 9.9210)
Luminance0.0245 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F185A #335A18
analogous
#1E185A #3F185A #5A1854
triadic
#3F185A #5A3F18 #185A3F
tetradic
#3F185A #5A1E18 #335A18 #18545A
square
#3F185A #5A1E18 #335A18 #18545A
split-complementary
#3F185A #545A18 #185A1E
monochromatic
#110618 #1D0B2A #3F185A #61258A #8332BB

Accessibility & contrast

On white

14.10
#3F185A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.49
#3F185A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F185A
14.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F185A#FFFFFF#000000##FFFFFF
##3F185A1.0014.101.4914.10
#FFFFFF14.101.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A5C
Deuteranopia (green-blind)
#092C59
Tritanopia (blue-blind)
#3B2637
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #3f185a;
/* rgb */ color: rgb(63, 24, 90);
/* oklch */ color: oklch(30.4% 0.115 308.1);
Tailwind
colors: {
  custom: {
    50: '#775889',
    500: '#3f185a',
    950: '#000000',
  },
}
SCSS
$custom: #3f185a;
$custom-light: #775889;
$custom-dark: #000000;
JSON
{
  "hex": "#3f185a",
  "rgb": {
    "r": 63,
    "g": 24,
    "b": 90
  },
  "hsl": {
    "h": 275.455,
    "s": 57.895,
    "l": 22.353
  },
  "oklch": {
    "l": 0.30439,
    "c": 0.11484,
    "h": 308.1
  },
  "luminance": 0.02448
}

Semantic roles & 50–950 ramp

primary
#3F185A
secondary
#5F913D
accent
#E14786
background
#F7F5F8
surface
#EDE9F0
border
#C8C5CB
text
#09030B
muted
#7B787C

Preview Lab

Preview with #3F185A

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

Preview Lab → · Contrast checker → · Palette generator →

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