#3F286A#3F286A

#3F286A is a dark, moderate violet. Relative luminance 0.036; OKLCH L 34.2% C 0.111 H 296.1°. Best body text is #FFFFFF at 12.19:1 contrast (WCAG AA passes).

Color values

HEX#3F286A
RGBrgb(63, 40, 106)
HSLhsl(261, 45%, 29%)
HSVhsv(261, 62%, 42%)
CMYKcmyk(40.6%, 62.3%, 0%, 58.4%)
CIE-LABlab(22.36, 27.00, -34.93)
CIE-LCHlch(22.36, 44.15, 307.71°)
OKLaboklab(34.21% 0.0487 -0.0993)
OKLCHoklch(34.21% 0.111 296.1)
XYZxyz(5.4095, 3.6149, 14.0456)
Luminance0.0362 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F286A #536A28
analogous
#28326A #3F286A #60286A
triadic
#3F286A #6A3F28 #286A3F
tetradic
#3F286A #6A2832 #536A28 #286A60
square
#3F286A #6A2832 #536A28 #286A60
split-complementary
#3F286A #6A6028 #326A28
monochromatic
#0D0816 #25173E #3F286A #593996 #7650BD

Accessibility & contrast

On white

12.19
#3F286A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#3F286A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F286A
12.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F286A#FFFFFF#000000##FFFFFF
##3F286A1.0012.191.7212.19
#FFFFFF12.191.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#01366C
Deuteranopia (green-blind)
#0C3569
Tritanopia (blue-blind)
#353645
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #3f286a;
/* rgb */ color: rgb(63, 40, 106);
/* oklch */ color: oklch(34.2% 0.111 296.1);
Tailwind
colors: {
  custom: {
    50: '#776395',
    500: '#3f286a',
    950: '#000000',
  },
}
SCSS
$custom: #3f286a;
$custom-light: #776395;
$custom-dark: #000000;
JSON
{
  "hex": "#3f286a",
  "rgb": {
    "r": 63,
    "g": 40,
    "b": 106
  },
  "hsl": {
    "h": 260.909,
    "s": 45.205,
    "l": 28.627
  },
  "oklch": {
    "l": 0.34209,
    "c": 0.11056,
    "h": 296.1
  },
  "luminance": 0.03615
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #3F286A

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

Preview Lab → · Contrast checker → · Palette generator →

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