#3F256B#3F256B

#3F256B is a dark, moderate violet. Relative luminance 0.034; OKLCH L 33.8% C 0.117 H 296.8°. Best body text is #FFFFFF at 12.44:1 contrast (WCAG AA passes).

Color values

HEX#3F256B
RGBrgb(63, 37, 107)
HSLhsl(262, 49%, 28%)
HSVhsv(262, 65%, 42%)
CMYKcmyk(41.1%, 65.4%, 0%, 58%)
CIE-LABlab(21.73, 29.16, -36.58)
CIE-LCHlch(21.73, 46.78, 308.56°)
OKLaboklab(33.78% 0.0526 -0.1041)
OKLCHoklch(33.78% 0.117 296.8)
XYZxyz(5.3646, 3.4413, 14.2887)
Luminance0.0344 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F256B #516B25
analogous
#252E6B #3F256B #62256B
triadic
#3F256B #6B3F25 #256B3F
tetradic
#3F256B #6B252E #516B25 #256B62
square
#3F256B #6B252E #516B25 #256B62
split-complementary
#3F256B #6B6225 #2E6B25
monochromatic
#0D0817 #24153E #3F256B #5A3598 #764AC0

Accessibility & contrast

On white

12.44
#3F256B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#3F256B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F256B
12.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F256B#FFFFFF#000000##FFFFFF
##3F256B1.0012.441.6912.44
#FFFFFF12.441.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00346D
Deuteranopia (green-blind)
#023369
Tritanopia (blue-blind)
#343544
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #3f256b;
/* rgb */ color: rgb(63, 37, 107);
/* oklch */ color: oklch(33.8% 0.117 296.8);
Tailwind
colors: {
  custom: {
    50: '#786196',
    500: '#3f256b',
    950: '#000000',
  },
}
SCSS
$custom: #3f256b;
$custom-light: #786196;
$custom-dark: #000000;
JSON
{
  "hex": "#3f256b",
  "rgb": {
    "r": 63,
    "g": 37,
    "b": 107
  },
  "hsl": {
    "h": 262.286,
    "s": 48.611,
    "l": 28.235
  },
  "oklch": {
    "l": 0.33778,
    "c": 0.11666,
    "h": 296.8
  },
  "luminance": 0.03441
}

Semantic roles & 50–950 ramp

primary
#3F256B
secondary
#809E4E
accent
#D850A5
background
#F7F5F9
surface
#EDEAF2
border
#C8C6CC
text
#09050D
muted
#7B797E

Preview Lab

Preview with #3F256B

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

Preview Lab → · Contrast checker → · Palette generator →

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