#3F2F8A#3F2F8A

#3F2F8A is a dark, vivid violet. Relative luminance 0.049; OKLCH L 38.0% C 0.144 H 285.3°. Best body text is #FFFFFF at 10.58:1 contrast (WCAG AA passes).

Color values

HEX#3F2F8A
RGBrgb(63, 47, 138)
HSLhsl(251, 49%, 36%)
HSVhsv(251, 66%, 54%)
CMYKcmyk(54.3%, 65.9%, 0%, 45.9%)
CIE-LABlab(26.52, 32.63, -48.48)
CIE-LCHlch(26.52, 58.44, 303.94°)
OKLaboklab(38.04% 0.0381 -0.1391)
OKLCHoklch(38.04% 0.144 285.3)
XYZxyz(7.6525, 4.9244, 24.5871)
Luminance0.0493 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F2F8A #7A8A2F
analogous
#2F4D8A #3F2F8A #6D2F8A
triadic
#3F2F8A #8A3F2F #2F8A3F
tetradic
#3F2F8A #8A2F4D #7A8A2F #2F8A6D
square
#3F2F8A #8A2F4D #7A8A2F #2F8A6D
split-complementary
#3F2F8A #8A6D2F #4D8A2F
monochromatic
#15102F #2A1F5C #3F2F8A #543FB8 #7968CC

Accessibility & contrast

On white

10.58
#3F2F8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.99
#3F2F8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F2F8A
10.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F2F8A#FFFFFF#000000##FFFFFF
##3F2F8A1.0010.581.9910.58
#FFFFFF10.581.0021.001.00
#0000001.9921.001.0021.00
##FFFFFF10.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00418D
Deuteranopia (green-blind)
#003C88
Tritanopia (blue-blind)
#204558
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #3f2f8a;
/* rgb */ color: rgb(63, 47, 138);
/* oklch */ color: oklch(38.0% 0.144 285.3);
Tailwind
colors: {
  custom: {
    50: '#7c68ad',
    500: '#3f2f8a',
    950: '#000000',
  },
}
SCSS
$custom: #3f2f8a;
$custom-light: #7c68ad;
$custom-dark: #000000;
JSON
{
  "hex": "#3f2f8a",
  "rgb": {
    "r": 63,
    "g": 47,
    "b": 138
  },
  "hsl": {
    "h": 250.549,
    "s": 49.189,
    "l": 36.275
  },
  "oklch": {
    "l": 0.38039,
    "c": 0.14426,
    "h": 285.3
  },
  "luminance": 0.04925
}

Semantic roles & 50–950 ramp

primary
#3F2F8A
secondary
#A4B362
accent
#D94FC1
background
#F7F6FA
surface
#EEEBF4
border
#C9C6CE
text
#0A0610
muted
#7C7A7F

Preview Lab

Preview with #3F2F8A

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

Preview Lab → · Contrast checker → · Palette generator →

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