#3F2898#3F2898

#3F2898 is a dark, vivid violet. Relative luminance 0.048; OKLCH L 38.3% C 0.171 H 284.3°. Best body text is #FFFFFF at 10.67:1 contrast (WCAG AA passes).

Color values

HEX#3F2898
RGBrgb(63, 40, 152)
HSLhsl(252, 58%, 38%)
HSVhsv(252, 74%, 60%)
CMYKcmyk(58.6%, 73.7%, 0%, 40.4%)
CIE-LABlab(26.28, 41.15, -57.52)
CIE-LCHlch(26.28, 70.72, 305.58°)
OKLaboklab(38.25% 0.0422 -0.1656)
OKLCHoklch(38.25% 0.171 284.3)
XYZxyz(8.4745, 4.8408, 30.1875)
Luminance0.0484 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F2898 #819828
analogous
#284998 #3F2898 #772898
triadic
#3F2898 #983F28 #28983F
tetradic
#3F2898 #982849 #819828 #289877
square
#3F2898 #982849 #819828 #289877
split-complementary
#3F2898 #987728 #499828
monochromatic
#170F37 #2B1B68 #3F2898 #5335C8 #7C64D6

Accessibility & contrast

On white

10.67
#3F2898 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.97
#3F2898 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F2898
10.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F2898#FFFFFF#000000##FFFFFF
##3F28981.0010.671.9710.67
#FFFFFF10.671.0021.001.00
#0000001.9721.001.0021.00
##FFFFFF10.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00419B
Deuteranopia (green-blind)
#003B96
Tritanopia (blue-blind)
#0F475D
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #3f2898;
/* rgb */ color: rgb(63, 40, 152);
/* oklch */ color: oklch(38.3% 0.171 284.3);
Tailwind
colors: {
  custom: {
    50: '#7f64b7',
    500: '#3f2898',
    950: '#000000',
  },
}
SCSS
$custom: #3f2898;
$custom-light: #7f64b7;
$custom-dark: #000000;
JSON
{
  "hex": "#3f2898",
  "rgb": {
    "r": 63,
    "g": 40,
    "b": 152
  },
  "hsl": {
    "h": 252.321,
    "s": 58.333,
    "l": 37.647
  },
  "oklch": {
    "l": 0.38251,
    "c": 0.17093,
    "h": 284.3
  },
  "luminance": 0.04841
}

Semantic roles & 50–950 ramp

primary
#3F2898
secondary
#A9BC60
accent
#E246C2
background
#F8F6FB
surface
#EFEBF6
border
#CAC6D0
text
#0B0611
muted
#7C7A80

Preview Lab

Preview with #3F2898

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

Preview Lab → · Contrast checker → · Palette generator →

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