#3F2268#3F2268

#3F2268 is a dark, moderate violet. Relative luminance 0.032; OKLCH L 33.0% C 0.117 H 298.9°. Best body text is #FFFFFF at 12.80:1 contrast (WCAG AA passes).

Color values

HEX#3F2268
RGBrgb(63, 34, 104)
HSLhsl(265, 51%, 27%)
HSVhsv(265, 67%, 41%)
CMYKcmyk(39.4%, 67.3%, 0%, 59.2%)
CIE-LABlab(20.83, 30.09, -36.09)
CIE-LCHlch(20.83, 46.99, 309.82°)
OKLaboklab(33.05% 0.0566 -0.1027)
OKLCHoklch(33.05% 0.117 298.9)
XYZxyz(5.1200, 3.2002, 13.4420)
Luminance0.0320 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F2268 #4B6822
analogous
#222868 #3F2268 #622268
triadic
#3F2268 #683F22 #22683F
tetradic
#3F2268 #682228 #4B6822 #226862
square
#3F2268 #682228 #4B6822 #226862
split-complementary
#3F2268 #686222 #286822
monochromatic
#0E0817 #23133A #3F2268 #5B3196 #7743C2

Accessibility & contrast

On white

12.80
#3F2268 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.64
#3F2268 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F2268
12.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F2268#FFFFFF#000000##FFFFFF
##3F22681.0012.801.6412.80
#FFFFFF12.801.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00326A
Deuteranopia (green-blind)
#023166
Tritanopia (blue-blind)
#363241
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #3f2268;
/* rgb */ color: rgb(63, 34, 104);
/* oklch */ color: oklch(33.0% 0.117 298.9);
Tailwind
colors: {
  custom: {
    50: '#785f94',
    500: '#3f2268',
    950: '#000000',
  },
}
SCSS
$custom: #3f2268;
$custom-light: #785f94;
$custom-dark: #000000;
JSON
{
  "hex": "#3f2268",
  "rgb": {
    "r": 63,
    "g": 34,
    "b": 104
  },
  "hsl": {
    "h": 264.857,
    "s": 50.725,
    "l": 27.059
  },
  "oklch": {
    "l": 0.33049,
    "c": 0.11727,
    "h": 298.9
  },
  "luminance": 0.032
}

Semantic roles & 50–950 ramp

primary
#3F2268
secondary
#7A9C4A
accent
#DA4EA0
background
#F7F5F9
surface
#EDE9F1
border
#C8C5CB
text
#09040D
muted
#7B797E

Preview Lab

Preview with #3F2268

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

Preview Lab → · Contrast checker → · Palette generator →

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