#3F278A#3F278A

#3F278A is a dark, vivid violet. Relative luminance 0.043; OKLCH L 36.8% C 0.155 H 287.3°. Best body text is #FFFFFF at 11.24:1 contrast (WCAG AA passes).

Color values

HEX#3F278A
RGBrgb(63, 39, 138)
HSLhsl(255, 56%, 35%)
HSVhsv(255, 72%, 54%)
CMYKcmyk(54.3%, 71.7%, 0%, 45.9%)
CIE-LABlab(24.77, 37.39, -51.33)
CIE-LCHlch(24.77, 63.50, 306.07°)
OKLaboklab(36.78% 0.046 -0.1475)
OKLCHoklch(36.78% 0.155 287.3)
XYZxyz(7.3615, 4.3424, 24.4901)
Luminance0.0434 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F278A #728A27
analogous
#27418A #3F278A #70278A
triadic
#3F278A #8A3F27 #278A3F
tetradic
#3F278A #8A2741 #728A27 #278A70
square
#3F278A #8A2741 #728A27 #278A70
split-complementary
#3F278A #8A7027 #418A27
monochromatic
#130C2B #291A5A #3F278A #5534BA #775BD1

Accessibility & contrast

On white

11.24
#3F278A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.87
#3F278A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F278A
11.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F278A#FFFFFF#000000##FFFFFF
##3F278A1.0011.241.8711.24
#FFFFFF11.241.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D8D
Deuteranopia (green-blind)
#003888
Tritanopia (blue-blind)
#214155
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #3f278a;
/* rgb */ color: rgb(63, 39, 138);
/* oklch */ color: oklch(36.8% 0.155 287.3);
Tailwind
colors: {
  custom: {
    50: '#7c63ad',
    500: '#3f278a',
    950: '#000000',
  },
}
SCSS
$custom: #3f278a;
$custom-light: #7c63ad;
$custom-dark: #000000;
JSON
{
  "hex": "#3f278a",
  "rgb": {
    "r": 63,
    "g": 39,
    "b": 138
  },
  "hsl": {
    "h": 254.545,
    "s": 55.932,
    "l": 34.706
  },
  "oklch": {
    "l": 0.36782,
    "c": 0.15451,
    "h": 287.3
  },
  "luminance": 0.04343
}

Semantic roles & 50–950 ramp

primary
#3F278A
secondary
#9FB657
accent
#DF49BB
background
#F8F6FA
surface
#EFEBF4
border
#CAC6CE
text
#0A0510
muted
#7C7A7F

Preview Lab

Preview with #3F278A

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

Preview Lab → · Contrast checker → · Palette generator →

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