#3F229C#3F229C

#3F229C is a dark, vivid violet. Relative luminance 0.046; OKLCH L 37.9% C 0.182 H 284.5°. Best body text is #FFFFFF at 10.94:1 contrast (WCAG AA passes).

Color values

HEX#3F229C
RGBrgb(63, 34, 156)
HSLhsl(254, 64%, 37%)
HSVhsv(254, 78%, 61%)
CMYKcmyk(59.6%, 78.2%, 0%, 38.8%)
CIE-LABlab(25.57, 45.49, -61.14)
CIE-LCHlch(25.57, 76.21, 306.65°)
OKLaboklab(37.87% 0.0456 -0.1762)
OKLCHoklch(37.87% 0.182 284.5)
XYZxyz(8.6208, 4.6006, 31.8798)
Luminance0.0460 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F229C #7F9C22
analogous
#22429C #3F229C #7C229C
triadic
#3F229C #9C3F22 #229C3F
tetradic
#3F229C #9C2242 #7F9C22 #229C7C
square
#3F229C #9C2242 #7F9C22 #229C7C
split-complementary
#3F229C #9C7C22 #429C22
monochromatic
#160C38 #2B176A #3F229C #532DCE #7B5DDC

Accessibility & contrast

On white

10.94
#3F229C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.92
#3F229C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F229C
10.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F229C#FFFFFF#000000##FFFFFF
##3F229C1.0010.941.9210.94
#FFFFFF10.941.0021.001.00
#0000001.9221.001.0021.00
##FFFFFF10.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00409F
Deuteranopia (green-blind)
#00399A
Tritanopia (blue-blind)
#06455E
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #3f229c;
/* rgb */ color: rgb(63, 34, 156);
/* oklch */ color: oklch(37.9% 0.182 284.5);
Tailwind
colors: {
  custom: {
    50: '#8061ba',
    500: '#3f229c',
    950: '#000000',
  },
}
SCSS
$custom: #3f229c;
$custom-light: #8061ba;
$custom-dark: #000000;
JSON
{
  "hex": "#3f229c",
  "rgb": {
    "r": 63,
    "g": 34,
    "b": 156
  },
  "hsl": {
    "h": 254.262,
    "s": 64.211,
    "l": 37.255
  },
  "oklch": {
    "l": 0.3787,
    "c": 0.18199,
    "h": 284.5
  },
  "luminance": 0.04601
}

Semantic roles & 50–950 ramp

primary
#3F229C
secondary
#A8C05A
accent
#E741C0
background
#F8F5FB
surface
#EFEAF6
border
#CAC6D0
text
#0B0512
muted
#7C7981

Preview Lab

Preview with #3F229C

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

Preview Lab → · Contrast checker → · Palette generator →

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