#3F186E#3F186E

#3F186E is a dark, vivid violet. Relative luminance 0.028; OKLCH L 32.2% C 0.138 H 298.9°. Best body text is #FFFFFF at 13.40:1 contrast (WCAG AA passes).

Color values

HEX#3F186E
RGBrgb(63, 24, 110)
HSLhsl(267, 64%, 26%)
HSVhsv(267, 78%, 43%)
CMYKcmyk(42.7%, 78.2%, 0%, 56.9%)
CIE-LABlab(19.37, 37.22, -42.36)
CIE-LCHlch(19.37, 56.39, 311.31°)
OKLaboklab(32.17% 0.0669 -0.1211)
OKLCHoklch(32.17% 0.138 298.9)
XYZxyz(5.1903, 2.8357, 15.0227)
Luminance0.0284 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F186E #476E18
analogous
#181C6E #3F186E #6A186E
triadic
#3F186E #6E3F18 #186E3F
tetradic
#3F186E #6E181C #476E18 #186E6A
square
#3F186E #6E181C #476E18 #186E6A
split-complementary
#3F186E #6E6A18 #1C6E18
monochromatic
#0E0519 #220D3C #3F186E #5C23A0 #792FD2

Accessibility & contrast

On white

13.40
#3F186E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.57
#3F186E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F186E
13.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F186E#FFFFFF#000000##FFFFFF
##3F186E1.0013.401.5713.40
#FFFFFF13.401.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F70
Deuteranopia (green-blind)
#002E6C
Tritanopia (blue-blind)
#342E42
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #3f186e;
/* rgb */ color: rgb(63, 24, 110);
/* oklch */ color: oklch(32.2% 0.138 298.9);
Tailwind
colors: {
  custom: {
    50: '#795998',
    500: '#3f186e',
    950: '#000000',
  },
}
SCSS
$custom: #3f186e;
$custom-light: #795998;
$custom-dark: #000000;
JSON
{
  "hex": "#3f186e",
  "rgb": {
    "r": 63,
    "g": 24,
    "b": 110
  },
  "hsl": {
    "h": 267.209,
    "s": 64.179,
    "l": 26.275
  },
  "oklch": {
    "l": 0.32169,
    "c": 0.13833,
    "h": 298.9
  },
  "luminance": 0.02836
}

Semantic roles & 50–950 ramp

primary
#3F186E
secondary
#76A43E
accent
#E7419C
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#0A040E
muted
#7C797E

Preview Lab

Preview with #3F186E

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

Preview Lab → · Contrast checker → · Palette generator →

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