#3F188F#3F188F

#3F188F is a dark, vivid violet. Relative luminance 0.037; OKLCH L 35.4% C 0.176 H 288.7°. Best body text is #FFFFFF at 12.08:1 contrast (WCAG AA passes).

Color values

HEX#3F188F
RGBrgb(63, 24, 143)
HSLhsl(260, 71%, 33%)
HSVhsv(260, 83%, 56%)
CMYKcmyk(55.9%, 83.2%, 0%, 43.9%)
CIE-LABlab(22.63, 46.35, -57.97)
CIE-LCHlch(22.63, 74.22, 308.65°)
OKLaboklab(35.43% 0.0564 -0.1668)
OKLCHoklch(35.43% 0.176 288.7)
XYZxyz(7.3330, 3.6928, 26.3077)
Luminance0.0369 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F188F #688F18
analogous
#182C8F #3F188F #7A188F
triadic
#3F188F #8F3F18 #188F3F
tetradic
#3F188F #8F182C #688F18 #188F7A
square
#3F188F #8F182C #688F18 #188F7A
split-complementary
#3F188F #8F7A18 #2C8F18
monochromatic
#110626 #280F5B #3F188F #5621C3 #7642DF

Accessibility & contrast

On white

12.08
#3F188F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#3F188F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F188F
12.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F188F#FFFFFF#000000##FFFFFF
##3F188F1.0012.081.7412.08
#FFFFFF12.081.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003892
Deuteranopia (green-blind)
#00338D
Tritanopia (blue-blind)
#1D3C55
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #3f188f;
/* rgb */ color: rgb(63, 24, 143);
/* oklch */ color: oklch(35.4% 0.176 288.7);
Tailwind
colors: {
  custom: {
    50: '#7e5bb1',
    500: '#3f188f',
    950: '#000000',
  },
}
SCSS
$custom: #3f188f;
$custom-light: #7e5bb1;
$custom-dark: #000000;
JSON
{
  "hex": "#3f188f",
  "rgb": {
    "r": 63,
    "g": 24,
    "b": 143
  },
  "hsl": {
    "h": 259.664,
    "s": 71.257,
    "l": 32.745
  },
  "oklch": {
    "l": 0.35426,
    "c": 0.17608,
    "h": 288.7
  },
  "luminance": 0.03693
}

Semantic roles & 50–950 ramp

primary
#3F188F
secondary
#97C043
accent
#EE3AB3
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0411
muted
#7C7980

Preview Lab

Preview with #3F188F

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

Preview Lab → · Contrast checker → · Palette generator →

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