#3F227A#3F227A

#3F227A is a dark, vivid violet. Relative luminance 0.036; OKLCH L 34.6% C 0.140 H 292.6°. Best body text is #FFFFFF at 12.20:1 contrast (WCAG AA passes).

Color values

HEX#3F227A
RGBrgb(63, 34, 122)
HSLhsl(260, 56%, 31%)
HSVhsv(260, 72%, 48%)
CMYKcmyk(48.4%, 72.1%, 0%, 52.2%)
CIE-LABlab(22.32, 35.37, -45.26)
CIE-LCHlch(22.32, 57.44, 308.01°)
OKLaboklab(34.59% 0.054 -0.1296)
OKLCHoklch(34.59% 0.14 292.6)
XYZxyz(6.1338, 3.6058, 18.7814)
Luminance0.0361 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F227A #5D7A22
analogous
#22317A #3F227A #6B227A
triadic
#3F227A #7A3F22 #227A3F
tetradic
#3F227A #7A2231 #5D7A22 #227A6B
square
#3F227A #7A2231 #5D7A22 #227A6B
split-complementary
#3F227A #7A6B22 #317A22
monochromatic
#0E071A #26154A #3F227A #582FAA #754ACD

Accessibility & contrast

On white

12.20
#3F227A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#3F227A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F227A
12.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F227A#FFFFFF#000000##FFFFFF
##3F227A1.0012.201.7212.20
#FFFFFF12.201.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00377D
Deuteranopia (green-blind)
#003478
Tritanopia (blue-blind)
#2D384B
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #3f227a;
/* rgb */ color: rgb(63, 34, 122);
/* oklch */ color: oklch(34.6% 0.140 292.6);
Tailwind
colors: {
  custom: {
    50: '#7a5fa1',
    500: '#3f227a',
    950: '#000000',
  },
}
SCSS
$custom: #3f227a;
$custom-light: #7a5fa1;
$custom-dark: #000000;
JSON
{
  "hex": "#3f227a",
  "rgb": {
    "r": 63,
    "g": 34,
    "b": 122
  },
  "hsl": {
    "h": 259.773,
    "s": 56.41,
    "l": 30.588
  },
  "oklch": {
    "l": 0.34592,
    "c": 0.14046,
    "h": 292.6
  },
  "luminance": 0.03606
}

Semantic roles & 50–950 ramp

primary
#3F227A
secondary
#8DAD4B
accent
#E048AE
background
#F7F5FA
surface
#EEE9F3
border
#C9C5CD
text
#0A050F
muted
#7C797F

Preview Lab

Preview with #3F227A

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

Preview Lab → · Contrast checker → · Palette generator →

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