#3F286B#3F286B

#3F286B is a dark, moderate violet. Relative luminance 0.036; OKLCH L 34.3% C 0.112 H 295.7°. Best body text is #FFFFFF at 12.16:1 contrast (WCAG AA passes).

Color values

HEX#3F286B
RGBrgb(63, 40, 107)
HSLhsl(261, 46%, 29%)
HSVhsv(261, 63%, 42%)
CMYKcmyk(41.1%, 62.6%, 0%, 58%)
CIE-LABlab(22.43, 27.30, -35.45)
CIE-LCHlch(22.43, 44.75, 307.60°)
OKLaboklab(34.29% 0.0486 -0.1008)
OKLCHoklch(34.29% 0.112 295.7)
XYZxyz(5.4618, 3.6358, 14.3211)
Luminance0.0364 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F286B #546B28
analogous
#28336B #3F286B #61286B
triadic
#3F286B #6B3F28 #286B3F
tetradic
#3F286B #6B2833 #546B28 #286B61
square
#3F286B #6B2833 #546B28 #286B61
split-complementary
#3F286B #6B6128 #336B28
monochromatic
#0D0816 #25173E #3F286B #593998 #7650BE

Accessibility & contrast

On white

12.16
#3F286B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#3F286B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F286B
12.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F286B#FFFFFF#000000##FFFFFF
##3F286B1.0012.161.7312.16
#FFFFFF12.161.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00366D
Deuteranopia (green-blind)
#0A356A
Tritanopia (blue-blind)
#343745
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #3f286b;
/* rgb */ color: rgb(63, 40, 107);
/* oklch */ color: oklch(34.3% 0.112 295.7);
Tailwind
colors: {
  custom: {
    50: '#786396',
    500: '#3f286b',
    950: '#000000',
  },
}
SCSS
$custom: #3f286b;
$custom-light: #786396;
$custom-dark: #000000;
JSON
{
  "hex": "#3f286b",
  "rgb": {
    "r": 63,
    "g": 40,
    "b": 107
  },
  "hsl": {
    "h": 260.597,
    "s": 45.578,
    "l": 28.824
  },
  "oklch": {
    "l": 0.34286,
    "c": 0.11195,
    "h": 295.7
  },
  "luminance": 0.03636
}

Semantic roles & 50–950 ramp

primary
#3F286B
secondary
#839D51
accent
#D553A8
background
#F7F5F9
surface
#EDEAF2
border
#C8C6CC
text
#09050D
muted
#7B797E

Preview Lab

Preview with #3F286B

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

Preview Lab → · Contrast checker → · Palette generator →

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