#3F256D#3F256D

#3F256D is a dark, moderate violet. Relative luminance 0.035; OKLCH L 33.9% C 0.119 H 296.0°. Best body text is #FFFFFF at 12.38:1 contrast (WCAG AA passes).

Color values

HEX#3F256D
RGBrgb(63, 37, 109)
HSLhsl(262, 49%, 29%)
HSVhsv(262, 66%, 43%)
CMYKcmyk(42.2%, 66.1%, 0%, 57.3%)
CIE-LABlab(21.89, 29.75, -37.63)
CIE-LCHlch(21.89, 47.97, 308.34°)
OKLaboklab(33.94% 0.0524 -0.1072)
OKLCHoklch(33.94% 0.119 296)
XYZxyz(5.4711, 3.4839, 14.8492)
Luminance0.0348 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F256D #536D25
analogous
#252F6D #3F256D #63256D
triadic
#3F256D #6D3F25 #256D3F
tetradic
#3F256D #6D252F #536D25 #256D63
square
#3F256D #6D252F #536D25 #256D63
split-complementary
#3F256D #6D6325 #2F6D25
monochromatic
#0D0817 #25153F #3F256D #59359B #764BC2

Accessibility & contrast

On white

12.38
#3F256D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#3F256D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F256D
12.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F256D#FFFFFF#000000##FFFFFF
##3F256D1.0012.381.7012.38
#FFFFFF12.381.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00356F
Deuteranopia (green-blind)
#00336B
Tritanopia (blue-blind)
#333545
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #3f256d;
/* rgb */ color: rgb(63, 37, 109);
/* oklch */ color: oklch(33.9% 0.119 296.0);
Tailwind
colors: {
  custom: {
    50: '#786197',
    500: '#3f256d',
    950: '#000000',
  },
}
SCSS
$custom: #3f256d;
$custom-light: #786197;
$custom-dark: #000000;
JSON
{
  "hex": "#3f256d",
  "rgb": {
    "r": 63,
    "g": 37,
    "b": 109
  },
  "hsl": {
    "h": 261.667,
    "s": 49.315,
    "l": 28.627
  },
  "oklch": {
    "l": 0.33939,
    "c": 0.11934,
    "h": 296
  },
  "luminance": 0.03484
}

Semantic roles & 50–950 ramp

primary
#3F256D
secondary
#82A04E
accent
#D94FA7
background
#F7F5F9
surface
#EEEAF2
border
#C9C6CC
text
#09050D
muted
#7B797E

Preview Lab

Preview with #3F256D

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

Preview Lab → · Contrast checker → · Palette generator →

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