#3F286E#3F286E

#3F286E is a dark, moderate violet. Relative luminance 0.037; OKLCH L 34.5% C 0.116 H 294.7°. Best body text is #FFFFFF at 12.07:1 contrast (WCAG AA passes).

Color values

HEX#3F286E
RGBrgb(63, 40, 110)
HSLhsl(260, 47%, 29%)
HSVhsv(260, 64%, 43%)
CMYKcmyk(42.7%, 63.6%, 0%, 56.9%)
CIE-LABlab(22.65, 28.21, -37.03)
CIE-LCHlch(22.65, 46.55, 307.30°)
OKLaboklab(34.52% 0.0485 -0.1055)
OKLCHoklch(34.52% 0.116 294.7)
XYZxyz(5.6224, 3.7000, 15.1668)
Luminance0.0370 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F286E #576E28
analogous
#28346E #3F286E #62286E
triadic
#3F286E #6E3F28 #286E3F
tetradic
#3F286E #6E2834 #576E28 #286E62
square
#3F286E #6E2834 #576E28 #286E62
split-complementary
#3F286E #6E6228 #346E28
monochromatic
#0D0816 #251841 #3F286E #59389B #7551C0

Accessibility & contrast

On white

12.07
#3F286E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3F286E
12.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F286E#FFFFFF#000000##FFFFFF
##3F286E1.0012.071.7412.07
#FFFFFF12.071.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003770
Deuteranopia (green-blind)
#03356C
Tritanopia (blue-blind)
#333747
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #3f286e;
/* rgb */ color: rgb(63, 40, 110);
/* oklch */ color: oklch(34.5% 0.116 294.7);
Tailwind
colors: {
  custom: {
    50: '#786398',
    500: '#3f286e',
    950: '#000000',
  },
}
SCSS
$custom: #3f286e;
$custom-light: #786398;
$custom-dark: #000000;
JSON
{
  "hex": "#3f286e",
  "rgb": {
    "r": 63,
    "g": 40,
    "b": 110
  },
  "hsl": {
    "h": 259.714,
    "s": 46.667,
    "l": 29.412
  },
  "oklch": {
    "l": 0.34522,
    "c": 0.11609,
    "h": 294.7
  },
  "luminance": 0.037
}

Semantic roles & 50–950 ramp

primary
#3F286E
secondary
#86A051
accent
#D651AB
background
#F7F5F9
surface
#EDEAF2
border
#C8C6CC
text
#09050E
muted
#7B797E

Preview Lab

Preview with #3F286E

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

Preview Lab → · Contrast checker → · Palette generator →

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