#3F226F#3F226F

#3F226F is a dark, vivid violet. Relative luminance 0.033; OKLCH L 33.6% C 0.126 H 296.2°. Best body text is #FFFFFF at 12.58:1 contrast (WCAG AA passes).

Color values

HEX#3F226F
RGBrgb(63, 34, 111)
HSLhsl(263, 53%, 28%)
HSVhsv(263, 69%, 44%)
CMYKcmyk(43.2%, 69.4%, 0%, 56.5%)
CIE-LABlab(21.39, 32.13, -39.73)
CIE-LCHlch(21.39, 51.09, 308.96°)
OKLaboklab(33.63% 0.0558 -0.1134)
OKLCHoklch(33.63% 0.126 296.2)
XYZxyz(5.4904, 3.3484, 15.3929)
Luminance0.0335 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F226F #526F22
analogous
#222C6F #3F226F #65226F
triadic
#3F226F #6F3F22 #226F3F
tetradic
#3F226F #6F222C #526F22 #226F65
square
#3F226F #6F222C #526F22 #226F65
split-complementary
#3F226F #6F6522 #2C6F22
monochromatic
#0D0717 #241440 #3F226F #5A309E #7645C6

Accessibility & contrast

On white

12.58
#3F226F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#3F226F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F226F
12.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F226F#FFFFFF#000000##FFFFFF
##3F226F1.0012.581.6712.58
#FFFFFF12.581.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003471
Deuteranopia (green-blind)
#00326D
Tritanopia (blue-blind)
#333445
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #3f226f;
/* rgb */ color: rgb(63, 34, 111);
/* oklch */ color: oklch(33.6% 0.126 296.2);
Tailwind
colors: {
  custom: {
    50: '#795f99',
    500: '#3f226f',
    950: '#000000',
  },
}
SCSS
$custom: #3f226f;
$custom-light: #795f99;
$custom-dark: #000000;
JSON
{
  "hex": "#3f226f",
  "rgb": {
    "r": 63,
    "g": 34,
    "b": 111
  },
  "hsl": {
    "h": 262.597,
    "s": 53.103,
    "l": 28.431
  },
  "oklch": {
    "l": 0.3363,
    "c": 0.12639,
    "h": 296.2
  },
  "luminance": 0.03349
}

Semantic roles & 50–950 ramp

primary
#3F226F
secondary
#81A24A
accent
#DD4BA6
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#09050E
muted
#7B797E

Preview Lab

Preview with #3F226F

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

Preview Lab → · Contrast checker → · Palette generator →

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