#3F236A#3F236A

#3F236A is a dark, moderate violet. Relative luminance 0.033; OKLCH L 33.4% C 0.118 H 297.8°. Best body text is #FFFFFF at 12.65:1 contrast (WCAG AA passes).

Color values

HEX#3F236A
RGBrgb(63, 35, 106)
HSLhsl(264, 50%, 28%)
HSVhsv(264, 67%, 42%)
CMYKcmyk(40.6%, 67%, 0%, 58.4%)
CIE-LABlab(21.21, 30.07, -36.78)
CIE-LCHlch(21.21, 47.51, 309.27°)
OKLaboklab(33.37% 0.0552 -0.1047)
OKLCHoklch(33.37% 0.118 297.8)
XYZxyz(5.2518, 3.2994, 13.9930)
Luminance0.0330 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F236A #4E6A23
analogous
#232A6A #3F236A #63236A
triadic
#3F236A #6A3F23 #236A3F
tetradic
#3F236A #6A232A #4E6A23 #236A63
square
#3F236A #6A232A #4E6A23 #236A63
split-complementary
#3F236A #6A6323 #2A6A23
monochromatic
#0E0817 #24143C #3F236A #5A3298 #7746C2

Accessibility & contrast

On white

12.65
#3F236A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#3F236A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F236A
12.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F236A#FFFFFF#000000##FFFFFF
##3F236A1.0012.651.6612.65
#FFFFFF12.651.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00336C
Deuteranopia (green-blind)
#003268
Tritanopia (blue-blind)
#353343
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #3f236a;
/* rgb */ color: rgb(63, 35, 106);
/* oklch */ color: oklch(33.4% 0.118 297.8);
Tailwind
colors: {
  custom: {
    50: '#786095',
    500: '#3f236a',
    950: '#000000',
  },
}
SCSS
$custom: #3f236a;
$custom-light: #786095;
$custom-dark: #000000;
JSON
{
  "hex": "#3f236a",
  "rgb": {
    "r": 63,
    "g": 35,
    "b": 106
  },
  "hsl": {
    "h": 263.662,
    "s": 50.355,
    "l": 27.647
  },
  "oklch": {
    "l": 0.33371,
    "c": 0.11838,
    "h": 297.8
  },
  "luminance": 0.03299
}

Semantic roles & 50–950 ramp

primary
#3F236A
secondary
#7D9D4B
accent
#DA4EA3
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09050D
muted
#7B797E

Preview Lab

Preview with #3F236A

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

Preview Lab → · Contrast checker → · Palette generator →

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