#3F229D#3F229D

#3F229D is a dark, vivid violet. Relative luminance 0.046; OKLCH L 38.0% C 0.183 H 284.3°. Best body text is #FFFFFF at 10.90:1 contrast (WCAG AA passes).

Color values

HEX#3F229D
RGBrgb(63, 34, 157)
HSLhsl(254, 64%, 37%)
HSVhsv(254, 78%, 62%)
CMYKcmyk(59.9%, 78.3%, 0%, 38.4%)
CIE-LABlab(25.67, 45.79, -61.58)
CIE-LCHlch(25.67, 76.74, 306.63°)
OKLaboklab(37.97% 0.0453 -0.1775)
OKLCHoklch(37.97% 0.183 284.3)
XYZxyz(8.7059, 4.6346, 32.3276)
Luminance0.0464 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F229D #809D22
analogous
#22439D #3F229D #7C229D
triadic
#3F229D #9D3F22 #229D3F
tetradic
#3F229D #9D2243 #809D22 #229D7C
square
#3F229D #9D2243 #809D22 #229D7C
split-complementary
#3F229D #9D7C22 #439D22
monochromatic
#170C38 #2B176B #3F229D #532DCF #7B5DDC

Accessibility & contrast

On white

10.90
#3F229D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.93
#3F229D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F229D
10.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F229D#FFFFFF#000000##FFFFFF
##3F229D1.0010.901.9310.90
#FFFFFF10.901.0021.001.00
#0000001.9321.001.0021.00
##FFFFFF10.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0040A0
Deuteranopia (green-blind)
#00399B
Tritanopia (blue-blind)
#03465F
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #3f229d;
/* rgb */ color: rgb(63, 34, 157);
/* oklch */ color: oklch(38.0% 0.183 284.3);
Tailwind
colors: {
  custom: {
    50: '#8061bb',
    500: '#3f229d',
    950: '#000000',
  },
}
SCSS
$custom: #3f229d;
$custom-light: #8061bb;
$custom-dark: #000000;
JSON
{
  "hex": "#3f229d",
  "rgb": {
    "r": 63,
    "g": 34,
    "b": 157
  },
  "hsl": {
    "h": 254.146,
    "s": 64.398,
    "l": 37.451
  },
  "oklch": {
    "l": 0.37972,
    "c": 0.18317,
    "h": 284.3
  },
  "luminance": 0.04635
}

Semantic roles & 50–950 ramp

primary
#3F229D
secondary
#A8C15A
accent
#E740C0
background
#F8F5FB
surface
#EFEAF6
border
#CAC6D0
text
#0B0512
muted
#7C7981

Preview Lab

Preview with #3F229D

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

Preview Lab → · Contrast checker → · Palette generator →

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