#3F229F#3F229F

#3F229F is a dark, vivid violet. Relative luminance 0.047; OKLCH L 38.2% C 0.186 H 284.0°. Best body text is #FFFFFF at 10.82:1 contrast (WCAG AA passes).

Color values

HEX#3F229F
RGBrgb(63, 34, 159)
HSLhsl(254, 65%, 38%)
HSVhsv(254, 79%, 62%)
CMYKcmyk(60.4%, 78.6%, 0%, 37.6%)
CIE-LABlab(25.87, 46.38, -62.47)
CIE-LCHlch(25.87, 77.80, 306.59°)
OKLaboklab(38.18% 0.0447 -0.18)
OKLCHoklch(38.18% 0.186 284)
XYZxyz(8.8780, 4.7034, 33.2342)
Luminance0.0470 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F229F #829F22
analogous
#22439F #3F229F #7D229F
triadic
#3F229F #9F3F22 #229F3F
tetradic
#3F229F #9F2243 #829F22 #229F7D
square
#3F229F #9F2243 #829F22 #229F7D
split-complementary
#3F229F #9F7D22 #439F22
monochromatic
#170C3A #2B176D #3F229F #532DD1 #7C5FDD

Accessibility & contrast

On white

10.82
#3F229F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.94
#3F229F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F229F
10.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F229F#FFFFFF#000000##FFFFFF
##3F229F1.0010.821.9410.82
#FFFFFF10.821.0021.001.00
#0000001.9421.001.0021.00
##FFFFFF10.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0041A2
Deuteranopia (green-blind)
#00399D
Tritanopia (blue-blind)
#004760
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #3f229f;
/* rgb */ color: rgb(63, 34, 159);
/* oklch */ color: oklch(38.2% 0.186 284.0);
Tailwind
colors: {
  custom: {
    50: '#8061bd',
    500: '#3f229f',
    950: '#000000',
  },
}
SCSS
$custom: #3f229f;
$custom-light: #8061bd;
$custom-dark: #000000;
JSON
{
  "hex": "#3f229f",
  "rgb": {
    "r": 63,
    "g": 34,
    "b": 159
  },
  "hsl": {
    "h": 253.92,
    "s": 64.767,
    "l": 37.843
  },
  "oklch": {
    "l": 0.38177,
    "c": 0.18552,
    "h": 284
  },
  "luminance": 0.04704
}

Semantic roles & 50–950 ramp

primary
#3F229F
secondary
#AAC15B
accent
#E840C1
background
#F8F5FB
surface
#F0EAF7
border
#CBC6D0
text
#0B0512
muted
#7C7981

Preview Lab

Preview with #3F229F

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

Preview Lab → · Contrast checker → · Palette generator →

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