#3F176B#3F176B

#3F176B is a dark, vivid violet. Relative luminance 0.027; OKLCH L 31.8% C 0.136 H 300.3°. Best body text is #FFFFFF at 13.58:1 contrast (WCAG AA passes).

Color values

HEX#3F176B
RGBrgb(63, 23, 107)
HSLhsl(269, 65%, 25%)
HSVhsv(269, 79%, 42%)
CMYKcmyk(41.1%, 78.5%, 0%, 58%)
CIE-LABlab(18.93, 36.89, -41.12)
CIE-LCHlch(18.93, 55.25, 311.90°)
OKLaboklab(31.77% 0.0687 -0.1174)
OKLCHoklch(31.77% 0.136 300.3)
XYZxyz(5.0095, 2.7310, 14.1703)
Luminance0.0273 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F176B #436B17
analogous
#17196B #3F176B #69176B
triadic
#3F176B #6B3F17 #176B3F
tetradic
#3F176B #6B1719 #436B17 #176B69
square
#3F176B #6B1719 #436B17 #176B69
split-complementary
#3F176B #6B6917 #196B17
monochromatic
#0F0519 #210C39 #3F176B #5D229D #7A2DD0

Accessibility & contrast

On white

13.58
#3F176B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.55
#3F176B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F176B
13.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F176B#FFFFFF#000000##FFFFFF
##3F176B1.0013.581.5513.58
#FFFFFF13.581.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E6D
Deuteranopia (green-blind)
#002D69
Tritanopia (blue-blind)
#352D40
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #3f176b;
/* rgb */ color: rgb(63, 23, 107);
/* oklch */ color: oklch(31.8% 0.136 300.3);
Tailwind
colors: {
  custom: {
    50: '#795996',
    500: '#3f176b',
    950: '#000000',
  },
}
SCSS
$custom: #3f176b;
$custom-light: #795996;
$custom-dark: #000000;
JSON
{
  "hex": "#3f176b",
  "rgb": {
    "r": 63,
    "g": 23,
    "b": 107
  },
  "hsl": {
    "h": 268.571,
    "s": 64.615,
    "l": 25.49
  },
  "oklch": {
    "l": 0.31774,
    "c": 0.13604,
    "h": 300.3
  },
  "luminance": 0.02731
}

Semantic roles & 50–950 ramp

primary
#3F176B
secondary
#71A13D
accent
#E84098
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#09040D
muted
#7B797E

Preview Lab

Preview with #3F176B

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

Preview Lab → · Contrast checker → · Palette generator →

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