#3F229A#3F229A

#3F229A is a dark, vivid violet. Relative luminance 0.045; OKLCH L 37.7% C 0.180 H 284.9°. Best body text is #FFFFFF at 11.01:1 contrast (WCAG AA passes).

Color values

HEX#3F229A
RGBrgb(63, 34, 154)
HSLhsl(255, 64%, 37%)
HSVhsv(255, 78%, 60%)
CMYKcmyk(59.1%, 77.9%, 0%, 39.6%)
CIE-LABlab(25.36, 44.90, -60.25)
CIE-LCHlch(25.36, 75.14, 306.69°)
OKLaboklab(37.67% 0.0462 -0.1736)
OKLCHoklch(37.67% 0.18 284.9)
XYZxyz(8.4529, 4.5334, 30.9952)
Luminance0.0453 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F229A #7D9A22
analogous
#22419A #3F229A #7B229A
triadic
#3F229A #9A3F22 #229A3F
tetradic
#3F229A #9A2241 #7D9A22 #229A7B
square
#3F229A #9A2241 #7D9A22 #229A7B
split-complementary
#3F229A #9A7B22 #419A22
monochromatic
#160C36 #2A1768 #3F229A #542DCC #7A5BDB

Accessibility & contrast

On white

11.01
#3F229A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.91
#3F229A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F229A
11.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F229A#FFFFFF#000000##FFFFFF
##3F229A1.0011.011.9111.01
#FFFFFF11.011.0021.001.00
#0000001.9121.001.0021.00
##FFFFFF11.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F9D
Deuteranopia (green-blind)
#003898
Tritanopia (blue-blind)
#0B455D
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #3f229a;
/* rgb */ color: rgb(63, 34, 154);
/* oklch */ color: oklch(37.7% 0.180 284.9);
Tailwind
colors: {
  custom: {
    50: '#7f61b9',
    500: '#3f229a',
    950: '#000000',
  },
}
SCSS
$custom: #3f229a;
$custom-light: #7f61b9;
$custom-dark: #000000;
JSON
{
  "hex": "#3f229a",
  "rgb": {
    "r": 63,
    "g": 34,
    "b": 154
  },
  "hsl": {
    "h": 254.5,
    "s": 63.83,
    "l": 36.863
  },
  "oklch": {
    "l": 0.37666,
    "c": 0.17962,
    "h": 284.9
  },
  "luminance": 0.04534
}

Semantic roles & 50–950 ramp

primary
#3F229A
secondary
#A6BF58
accent
#E741BF
background
#F8F5FB
surface
#EFEAF6
border
#CAC6D0
text
#0B0512
muted
#7C7981

Preview Lab

Preview with #3F229A

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

Preview Lab → · Contrast checker → · Palette generator →

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