#3F256A#3F256A

#3F256A is a dark, moderate violet. Relative luminance 0.034; OKLCH L 33.7% C 0.115 H 297.2°. Best body text is #FFFFFF at 12.47:1 contrast (WCAG AA passes).

Color values

HEX#3F256A
RGBrgb(63, 37, 106)
HSLhsl(263, 48%, 28%)
HSVhsv(263, 65%, 42%)
CMYKcmyk(40.6%, 65.1%, 0%, 58.4%)
CIE-LABlab(21.65, 28.87, -36.06)
CIE-LCHlch(21.65, 46.19, 308.68°)
OKLaboklab(33.7% 0.0526 -0.1026)
OKLCHoklch(33.7% 0.115 297.2)
XYZxyz(5.3123, 3.4204, 14.0132)
Luminance0.0342 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F256A #506A25
analogous
#252D6A #3F256A #61256A
triadic
#3F256A #6A3F25 #256A3F
tetradic
#3F256A #6A252D #506A25 #256A61
square
#3F256A #6A252D #506A25 #256A61
split-complementary
#3F256A #6A6125 #2D6A25
monochromatic
#0D0817 #24153D #3F256A #5A3597 #764AC0

Accessibility & contrast

On white

12.47
#3F256A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#3F256A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F256A
12.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F256A#FFFFFF#000000##FFFFFF
##3F256A1.0012.471.6812.47
#FFFFFF12.471.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00346C
Deuteranopia (green-blind)
#043369
Tritanopia (blue-blind)
#353443
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #3f256a;
/* rgb */ color: rgb(63, 37, 106);
/* oklch */ color: oklch(33.7% 0.115 297.2);
Tailwind
colors: {
  custom: {
    50: '#786195',
    500: '#3f256a',
    950: '#000000',
  },
}
SCSS
$custom: #3f256a;
$custom-light: #786195;
$custom-dark: #000000;
JSON
{
  "hex": "#3f256a",
  "rgb": {
    "r": 63,
    "g": 37,
    "b": 106
  },
  "hsl": {
    "h": 262.609,
    "s": 48.252,
    "l": 28.039
  },
  "oklch": {
    "l": 0.33698,
    "c": 0.11531,
    "h": 297.2
  },
  "luminance": 0.03421
}

Semantic roles & 50–950 ramp

primary
#3F256A
secondary
#7F9D4E
accent
#D850A5
background
#F7F5F9
surface
#EDEAF2
border
#C8C6CC
text
#09050D
muted
#7B797E

Preview Lab

Preview with #3F256A

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

Preview Lab → · Contrast checker → · Palette generator →

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