#3F188D#3F188D

#3F188D is a dark, vivid violet. Relative luminance 0.036; OKLCH L 35.2% C 0.174 H 289.2°. Best body text is #FFFFFF at 12.16:1 contrast (WCAG AA passes).

Color values

HEX#3F188D
RGBrgb(63, 24, 141)
HSLhsl(260, 71%, 32%)
HSVhsv(260, 83%, 55%)
CMYKcmyk(55.3%, 83%, 0%, 44.7%)
CIE-LABlab(22.42, 45.80, -57.07)
CIE-LCHlch(22.42, 73.17, 308.75°)
OKLaboklab(35.22% 0.0571 -0.1642)
OKLCHoklch(35.22% 0.174 289.2)
XYZxyz(7.1828, 3.6328, 25.5169)
Luminance0.0363 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F188D #668D18
analogous
#182C8D #3F188D #7A188D
triadic
#3F188D #8D3F18 #188D3F
tetradic
#3F188D #8D182C #668D18 #188D7A
square
#3F188D #8D182C #668D18 #188D7A
split-complementary
#3F188D #8D7A18 #2C8D18
monochromatic
#100624 #280F59 #3F188D #5621C1 #7541DF

Accessibility & contrast

On white

12.16
#3F188D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#3F188D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F188D
12.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F188D#FFFFFF#000000##FFFFFF
##3F188D1.0012.161.7312.16
#FFFFFF12.161.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003890
Deuteranopia (green-blind)
#00338B
Tritanopia (blue-blind)
#203B53
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #3f188d;
/* rgb */ color: rgb(63, 24, 141);
/* oklch */ color: oklch(35.2% 0.174 289.2);
Tailwind
colors: {
  custom: {
    50: '#7e5baf',
    500: '#3f188d',
    950: '#000000',
  },
}
SCSS
$custom: #3f188d;
$custom-light: #7e5baf;
$custom-dark: #000000;
JSON
{
  "hex": "#3f188d",
  "rgb": {
    "r": 63,
    "g": 24,
    "b": 141
  },
  "hsl": {
    "h": 260,
    "s": 70.909,
    "l": 32.353
  },
  "oklch": {
    "l": 0.35217,
    "c": 0.17383,
    "h": 289.2
  },
  "luminance": 0.03633
}

Semantic roles & 50–950 ramp

primary
#3F188D
secondary
#95BF42
accent
#EE3AB2
background
#F8F5FA
surface
#EFE9F5
border
#CAC5CF
text
#0B0411
muted
#7C7980

Preview Lab

Preview with #3F188D

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

Preview Lab → · Contrast checker → · Palette generator →

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