#3F236E#3F236E

#3F236E is a dark, vivid violet. Relative luminance 0.034; OKLCH L 33.7% C 0.124 H 296.3°. Best body text is #FFFFFF at 12.52:1 contrast (WCAG AA passes).

Color values

HEX#3F236E
RGBrgb(63, 35, 110)
HSLhsl(262, 52%, 28%)
HSVhsv(262, 68%, 43%)
CMYKcmyk(42.7%, 68.2%, 0%, 56.9%)
CIE-LABlab(21.52, 31.25, -38.86)
CIE-LCHlch(21.52, 49.87, 308.80°)
OKLaboklab(33.7% 0.0548 -0.1108)
OKLCHoklch(33.7% 0.124 296.3)
XYZxyz(5.4647, 3.3845, 15.1142)
Luminance0.0338 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F236E #526E23
analogous
#232C6E #3F236E #64236E
triadic
#3F236E #6E3F23 #236E3F
tetradic
#3F236E #6E232C #526E23 #236E64
square
#3F236E #6E232C #526E23 #236E64
split-complementary
#3F236E #6E6423 #2C6E23
monochromatic
#0D0717 #241440 #3F236E #5A329C #7647C4

Accessibility & contrast

On white

12.52
#3F236E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3F236E
12.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F236E#FFFFFF#000000##FFFFFF
##3F236E1.0012.521.6812.52
#FFFFFF12.521.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003470
Deuteranopia (green-blind)
#00336C
Tritanopia (blue-blind)
#333445
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #3f236e;
/* rgb */ color: rgb(63, 35, 110);
/* oklch */ color: oklch(33.7% 0.124 296.3);
Tailwind
colors: {
  custom: {
    50: '#786098',
    500: '#3f236e',
    950: '#000000',
  },
}
SCSS
$custom: #3f236e;
$custom-light: #786098;
$custom-dark: #000000;
JSON
{
  "hex": "#3f236e",
  "rgb": {
    "r": 63,
    "g": 35,
    "b": 110
  },
  "hsl": {
    "h": 262.4,
    "s": 51.724,
    "l": 28.431
  },
  "oklch": {
    "l": 0.33701,
    "c": 0.12364,
    "h": 296.3
  },
  "luminance": 0.03385
}

Semantic roles & 50–950 ramp

primary
#3F236E
secondary
#81A14C
accent
#DB4DA6
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#09050E
muted
#7B797E

Preview Lab

Preview with #3F236E

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

Preview Lab → · Contrast checker → · Palette generator →

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