#3F228F#3F228F

#3F228F is a dark, vivid violet. Relative luminance 0.042; OKLCH L 36.6% C 0.166 H 287.2°. Best body text is #FFFFFF at 11.43:1 contrast (WCAG AA passes).

Color values

HEX#3F228F
RGBrgb(63, 34, 143)
HSLhsl(256, 62%, 35%)
HSVhsv(256, 76%, 56%)
CMYKcmyk(55.9%, 76.2%, 0%, 43.9%)
CIE-LABlab(24.27, 41.63, -55.27)
CIE-LCHlch(24.27, 69.19, 306.99°)
OKLaboklab(36.57% 0.0492 -0.159)
OKLCHoklch(36.57% 0.166 287.2)
XYZxyz(7.5784, 4.1836, 26.3895)
Luminance0.0418 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F228F #728F22
analogous
#223C8F #3F228F #75228F
triadic
#3F228F #8F3F22 #228F3F
tetradic
#3F228F #8F223C #728F22 #228F75
square
#3F228F #8F223C #728F22 #228F75
split-complementary
#3F228F #8F7522 #3C8F22
monochromatic
#130A2C #29165E #3F228F #552EC0 #7755D7

Accessibility & contrast

On white

11.43
#3F228F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.84
#3F228F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F228F
11.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F228F#FFFFFF#000000##FFFFFF
##3F228F1.0011.431.8411.43
#FFFFFF11.431.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C92
Deuteranopia (green-blind)
#00378D
Tritanopia (blue-blind)
#1D4057
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #3f228f;
/* rgb */ color: rgb(63, 34, 143);
/* oklch */ color: oklch(36.6% 0.166 287.2);
Tailwind
colors: {
  custom: {
    50: '#7d60b1',
    500: '#3f228f',
    950: '#000000',
  },
}
SCSS
$custom: #3f228f;
$custom-light: #7d60b1;
$custom-dark: #000000;
JSON
{
  "hex": "#3f228f",
  "rgb": {
    "r": 63,
    "g": 34,
    "b": 143
  },
  "hsl": {
    "h": 255.963,
    "s": 61.582,
    "l": 34.706
  },
  "oklch": {
    "l": 0.36569,
    "c": 0.16644,
    "h": 287.2
  },
  "luminance": 0.04184
}

Semantic roles & 50–950 ramp

primary
#3F228F
secondary
#9FBA52
accent
#E543BA
background
#F8F5FB
surface
#EFEAF6
border
#CAC6D0
text
#0B0511
muted
#7C7980

Preview Lab

Preview with #3F228F

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

Preview Lab → · Contrast checker → · Palette generator →

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