#3F286F#3F286F

#3F286F is a dark, moderate violet. Relative luminance 0.037; OKLCH L 34.6% C 0.117 H 294.4°. Best body text is #FFFFFF at 12.04:1 contrast (WCAG AA passes).

Color values

HEX#3F286F
RGBrgb(63, 40, 111)
HSLhsl(259, 47%, 30%)
HSVhsv(259, 64%, 44%)
CMYKcmyk(43.2%, 64%, 0%, 56.5%)
CIE-LABlab(22.73, 28.51, -37.55)
CIE-LCHlch(22.73, 47.15, 307.21°)
OKLaboklab(34.6% 0.0485 -0.107)
OKLCHoklch(34.6% 0.117 294.4)
XYZxyz(5.6772, 3.7219, 15.4551)
Luminance0.0372 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F286F #586F28
analogous
#28346F #3F286F #63286F
triadic
#3F286F #6F3F28 #286F3F
tetradic
#3F286F #6F2834 #586F28 #286F63
square
#3F286F #6F2834 #586F28 #286F63
split-complementary
#3F286F #6F6328 #346F28
monochromatic
#0D0816 #251842 #3F286F #59389C #7551C0

Accessibility & contrast

On white

12.04
#3F286F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#3F286F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F286F
12.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F286F#FFFFFF#000000##FFFFFF
##3F286F1.0012.041.7412.04
#FFFFFF12.041.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003771
Deuteranopia (green-blind)
#01356D
Tritanopia (blue-blind)
#323847
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #3f286f;
/* rgb */ color: rgb(63, 40, 111);
/* oklch */ color: oklch(34.6% 0.117 294.4);
Tailwind
colors: {
  custom: {
    50: '#786399',
    500: '#3f286f',
    950: '#000000',
  },
}
SCSS
$custom: #3f286f;
$custom-light: #786399;
$custom-dark: #000000;
JSON
{
  "hex": "#3f286f",
  "rgb": {
    "r": 63,
    "g": 40,
    "b": 111
  },
  "hsl": {
    "h": 259.437,
    "s": 47.02,
    "l": 29.608
  },
  "oklch": {
    "l": 0.34602,
    "c": 0.11747,
    "h": 294.4
  },
  "luminance": 0.03722
}

Semantic roles & 50–950 ramp

primary
#3F286F
secondary
#87A151
accent
#D751AB
background
#F7F5F9
surface
#EDEAF2
border
#C8C6CC
text
#09050E
muted
#7B797E

Preview Lab

Preview with #3F286F

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

Preview Lab → · Contrast checker → · Palette generator →

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