#3F236F#3F236F

#3F236F is a dark, vivid violet. Relative luminance 0.034; OKLCH L 33.8% C 0.125 H 295.9°. Best body text is #FFFFFF at 12.49:1 contrast (WCAG AA passes).

Color values

HEX#3F236F
RGBrgb(63, 35, 111)
HSLhsl(262, 52%, 29%)
HSVhsv(262, 68%, 44%)
CMYKcmyk(43.2%, 68.5%, 0%, 56.5%)
CIE-LABlab(21.60, 31.54, -39.38)
CIE-LCHlch(21.60, 50.45, 308.69°)
OKLaboklab(33.78% 0.0547 -0.1124)
OKLCHoklch(33.78% 0.125 295.9)
XYZxyz(5.5194, 3.4064, 15.4025)
Luminance0.0341 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F236F #536F23
analogous
#232D6F #3F236F #65236F
triadic
#3F236F #6F3F23 #236F3F
tetradic
#3F236F #6F232D #536F23 #236F65
square
#3F236F #6F232D #536F23 #236F65
split-complementary
#3F236F #6F6523 #2D6F23
monochromatic
#0D0717 #251440 #3F236F #59329E #7647C5

Accessibility & contrast

On white

12.49
#3F236F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3F236F
12.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F236F#FFFFFF#000000##FFFFFF
##3F236F1.0012.491.6812.49
#FFFFFF12.491.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003471
Deuteranopia (green-blind)
#00336D
Tritanopia (blue-blind)
#333545
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #3f236f;
/* rgb */ color: rgb(63, 35, 111);
/* oklch */ color: oklch(33.8% 0.125 295.9);
Tailwind
colors: {
  custom: {
    50: '#786099',
    500: '#3f236f',
    950: '#000000',
  },
}
SCSS
$custom: #3f236f;
$custom-light: #786099;
$custom-dark: #000000;
JSON
{
  "hex": "#3f236f",
  "rgb": {
    "r": 63,
    "g": 35,
    "b": 111
  },
  "hsl": {
    "h": 262.105,
    "s": 52.055,
    "l": 28.627
  },
  "oklch": {
    "l": 0.33785,
    "c": 0.12495,
    "h": 295.9
  },
  "luminance": 0.03407
}

Semantic roles & 50–950 ramp

primary
#3F236F
secondary
#82A24C
accent
#DB4CA7
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#09050E
muted
#7B797E

Preview Lab

Preview with #3F236F

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

Preview Lab → · Contrast checker → · Palette generator →

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