#3F298D#3F298D

#3F298D is a dark, vivid violet. Relative luminance 0.046; OKLCH L 37.4% C 0.156 H 286.2°. Best body text is #FFFFFF at 10.98:1 contrast (WCAG AA passes).

Color values

HEX#3F298D
RGBrgb(63, 41, 141)
HSLhsl(253, 55%, 36%)
HSVhsv(253, 71%, 55%)
CMYKcmyk(55.3%, 70.9%, 0%, 44.7%)
CIE-LABlab(25.46, 37.17, -52.08)
CIE-LCHlch(25.46, 63.98, 305.52°)
OKLaboklab(37.36% 0.0436 -0.1497)
OKLCHoklch(37.36% 0.156 286.2)
XYZxyz(7.6491, 4.5653, 25.6723)
Luminance0.0457 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F298D #778D29
analogous
#29458D #3F298D #71298D
triadic
#3F298D #8D3F29 #298D3F
tetradic
#3F298D #8D2945 #778D29 #298D71
square
#3F298D #8D2945 #778D29 #298D71
split-complementary
#3F298D #8D7129 #458D29
monochromatic
#150D2E #2A1B5E #3F298D #5437BC #7960D1

Accessibility & contrast

On white

10.98
#3F298D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.91
#3F298D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F298D
10.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F298D#FFFFFF#000000##FFFFFF
##3F298D1.0010.981.9110.98
#FFFFFF10.981.0021.001.00
#0000001.9121.001.0021.00
##FFFFFF10.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F90
Deuteranopia (green-blind)
#00398B
Tritanopia (blue-blind)
#1E4358
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #3f298d;
/* rgb */ color: rgb(63, 41, 141);
/* oklch */ color: oklch(37.4% 0.156 286.2);
Tailwind
colors: {
  custom: {
    50: '#7d65af',
    500: '#3f298d',
    950: '#000000',
  },
}
SCSS
$custom: #3f298d;
$custom-light: #7d65af;
$custom-dark: #000000;
JSON
{
  "hex": "#3f298d",
  "rgb": {
    "r": 63,
    "g": 41,
    "b": 141
  },
  "hsl": {
    "h": 253.2,
    "s": 54.945,
    "l": 35.686
  },
  "oklch": {
    "l": 0.37356,
    "c": 0.1559,
    "h": 286.2
  },
  "luminance": 0.04566
}

Semantic roles & 50–950 ramp

primary
#3F298D
secondary
#A2B65B
accent
#DE4ABE
background
#F8F6FA
surface
#EFEBF5
border
#CAC6CF
text
#0A0610
muted
#7C7A7F

Preview Lab

Preview with #3F298D

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

Preview Lab → · Contrast checker → · Palette generator →

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