#3F226A#3F226A

#3F226A is a dark, moderate violet. Relative luminance 0.032; OKLCH L 33.2% C 0.120 H 298.1°. Best body text is #FFFFFF at 12.74:1 contrast (WCAG AA passes).

Color values

HEX#3F226A
RGBrgb(63, 34, 106)
HSLhsl(264, 51%, 27%)
HSVhsv(264, 68%, 42%)
CMYKcmyk(40.6%, 67.9%, 0%, 58.4%)
CIE-LABlab(20.99, 30.67, -37.14)
CIE-LCHlch(20.99, 48.16, 309.55°)
OKLaboklab(33.21% 0.0564 -0.1058)
OKLCHoklch(33.21% 0.12 298.1)
XYZxyz(5.2228, 3.2413, 13.9834)
Luminance0.0324 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F226A #4D6A22
analogous
#22296A #3F226A #63226A
triadic
#3F226A #6A3F22 #226A3F
tetradic
#3F226A #6A2229 #4D6A22 #226A63
square
#3F226A #6A2229 #4D6A22 #226A63
split-complementary
#3F226A #6A6322 #296A22
monochromatic
#0E0717 #23133C #3F226A #5B3198 #7744C3

Accessibility & contrast

On white

12.74
#3F226A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#3F226A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F226A
12.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F226A#FFFFFF#000000##FFFFFF
##3F226A1.0012.741.6512.74
#FFFFFF12.741.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.741.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #3f226a;
/* rgb */ color: rgb(63, 34, 106);
/* oklch */ color: oklch(33.2% 0.120 298.1);
Tailwind
colors: {
  custom: {
    50: '#785f95',
    500: '#3f226a',
    950: '#000000',
  },
}
SCSS
$custom: #3f226a;
$custom-light: #785f95;
$custom-dark: #000000;
JSON
{
  "hex": "#3f226a",
  "rgb": {
    "r": 63,
    "g": 34,
    "b": 106
  },
  "hsl": {
    "h": 264.167,
    "s": 51.429,
    "l": 27.451
  },
  "oklch": {
    "l": 0.33213,
    "c": 0.11989,
    "h": 298.1
  },
  "luminance": 0.03241
}

Semantic roles & 50–950 ramp

primary
#3F226A
secondary
#7C9E4A
accent
#DB4DA2
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09040D
muted
#7B797E

Preview Lab

Preview with #3F226A

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

Preview Lab → · Contrast checker → · Palette generator →

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