#3F197D#3F197D

#3F197D is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.7% C 0.155 H 293.5°. Best body text is #FFFFFF at 12.75:1 contrast (WCAG AA passes).

Color values

HEX#3F197D
RGBrgb(63, 25, 125)
HSLhsl(263, 67%, 29%)
HSVhsv(263, 80%, 49%)
CMYKcmyk(49.6%, 80%, 0%, 51%)
CIE-LABlab(20.95, 40.89, -49.41)
CIE-LCHlch(20.95, 64.14, 309.61°)
OKLaboklab(33.71% 0.0617 -0.1418)
OKLCHoklch(33.71% 0.155 293.5)
XYZxyz(6.0982, 3.2325, 19.7007)
Luminance0.0323 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F197D #577D19
analogous
#19257D #3F197D #71197D
triadic
#3F197D #7D3F19 #197D3F
tetradic
#3F197D #7D1925 #577D19 #197D71
square
#3F197D #7D1925 #577D19 #197D71
split-complementary
#3F197D #7D7119 #257D19
monochromatic
#0D051A #250F4A #3F197D #5923B0 #7539D7

Accessibility & contrast

On white

12.75
#3F197D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#3F197D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F197D
12.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F197D#FFFFFF#000000##FFFFFF
##3F197D1.0012.751.6512.75
#FFFFFF12.751.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003380
Deuteranopia (green-blind)
#00317B
Tritanopia (blue-blind)
#2C354A
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #3f197d;
/* rgb */ color: rgb(63, 25, 125);
/* oklch */ color: oklch(33.7% 0.155 293.5);
Tailwind
colors: {
  custom: {
    50: '#7b5ba4',
    500: '#3f197d',
    950: '#000000',
  },
}
SCSS
$custom: #3f197d;
$custom-light: #7b5ba4;
$custom-dark: #000000;
JSON
{
  "hex": "#3f197d",
  "rgb": {
    "r": 63,
    "g": 25,
    "b": 125
  },
  "hsl": {
    "h": 262.8,
    "s": 66.667,
    "l": 29.412
  },
  "oklch": {
    "l": 0.33709,
    "c": 0.15463,
    "h": 293.5
  },
  "luminance": 0.03233
}

Semantic roles & 50–950 ramp

primary
#3F197D
secondary
#86B140
accent
#EA3EA8
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A040F
muted
#7C797F

Preview Lab

Preview with #3F197D

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

Preview Lab → · Contrast checker → · Palette generator →

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