#3F287A#3F287A

#3F287A is a dark, vivid violet. Relative luminance 0.040; OKLCH L 35.5% C 0.132 H 291.0°. Best body text is #FFFFFF at 11.69:1 contrast (WCAG AA passes).

Color values

HEX#3F287A
RGBrgb(63, 40, 122)
HSLhsl(257, 51%, 32%)
HSVhsv(257, 67%, 48%)
CMYKcmyk(48.4%, 67.2%, 0%, 52.2%)
CIE-LABlab(23.60, 31.87, -43.17)
CIE-LCHlch(23.60, 53.66, 306.43°)
OKLaboklab(35.51% 0.0475 -0.1235)
OKLCHoklch(35.51% 0.132 291)
XYZxyz(6.3206, 3.9793, 18.8436)
Luminance0.0398 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F287A #637A28
analogous
#283A7A #3F287A #68287A
triadic
#3F287A #7A3F28 #287A3F
tetradic
#3F287A #7A283A #637A28 #287A68
square
#3F287A #7A283A #637A28 #287A68
split-complementary
#3F287A #7A6828 #3A7A28
monochromatic
#0F0A1E #27194C #3F287A #5737A8 #7555C7

Accessibility & contrast

On white

11.69
#3F287A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.80
#3F287A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F287A
11.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F287A#FFFFFF#000000##FFFFFF
##3F287A1.0011.691.8011.69
#FFFFFF11.691.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A7D
Deuteranopia (green-blind)
#003678
Tritanopia (blue-blind)
#2D3C4D
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #3f287a;
/* rgb */ color: rgb(63, 40, 122);
/* oklch */ color: oklch(35.5% 0.132 291.0);
Tailwind
colors: {
  custom: {
    50: '#7a63a1',
    500: '#3f287a',
    950: '#000000',
  },
}
SCSS
$custom: #3f287a;
$custom-light: #7a63a1;
$custom-dark: #000000;
JSON
{
  "hex": "#3f287a",
  "rgb": {
    "r": 63,
    "g": 40,
    "b": 122
  },
  "hsl": {
    "h": 256.829,
    "s": 50.617,
    "l": 31.765
  },
  "oklch": {
    "l": 0.35511,
    "c": 0.13236,
    "h": 291
  },
  "luminance": 0.03979
}

Semantic roles & 50–950 ramp

primary
#3F287A
secondary
#93AC52
accent
#DA4EB3
background
#F7F6FA
surface
#EEEBF3
border
#C9C6CD
text
#0A050F
muted
#7C7A7F

Preview Lab

Preview with #3F287A

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

Preview Lab → · Contrast checker → · Palette generator →

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