#3F227E#3F227E

#3F227E is a dark, vivid violet. Relative luminance 0.037; OKLCH L 35.0% C 0.145 H 291.5°. Best body text is #FFFFFF at 12.06:1 contrast (WCAG AA passes).

Color values

HEX#3F227E
RGBrgb(63, 34, 126)
HSLhsl(259, 58%, 31%)
HSVhsv(259, 73%, 49%)
CMYKcmyk(50%, 73%, 0%, 50.6%)
CIE-LABlab(22.68, 36.56, -47.22)
CIE-LCHlch(22.68, 59.72, 307.75°)
OKLaboklab(34.96% 0.0533 -0.1354)
OKLCHoklch(34.96% 0.146 291.5)
XYZxyz(6.3868, 3.7069, 20.1136)
Luminance0.0371 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F227E #617E22
analogous
#22337E #3F227E #6D227E
triadic
#3F227E #7E3F22 #227E3F
tetradic
#3F227E #7E2233 #617E22 #227E6D
square
#3F227E #7E2233 #617E22 #227E6D
split-complementary
#3F227E #7E6D22 #337E22
monochromatic
#0F081E #27154E #3F227E #572FAE #754CCF

Accessibility & contrast

On white

12.06
#3F227E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#3F227E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F227E
12.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F227E#FFFFFF#000000##FFFFFF
##3F227E1.0012.061.7412.06
#FFFFFF12.061.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003881
Deuteranopia (green-blind)
#00347C
Tritanopia (blue-blind)
#2B3A4D
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #3f227e;
/* rgb */ color: rgb(63, 34, 126);
/* oklch */ color: oklch(35.0% 0.145 291.5);
Tailwind
colors: {
  custom: {
    50: '#7b60a4',
    500: '#3f227e',
    950: '#000000',
  },
}
SCSS
$custom: #3f227e;
$custom-light: #7b60a4;
$custom-dark: #000000;
JSON
{
  "hex": "#3f227e",
  "rgb": {
    "r": 63,
    "g": 34,
    "b": 126
  },
  "hsl": {
    "h": 258.913,
    "s": 57.5,
    "l": 31.373
  },
  "oklch": {
    "l": 0.34955,
    "c": 0.1455,
    "h": 291.5
  },
  "luminance": 0.03707
}

Semantic roles & 50–950 ramp

primary
#3F227E
secondary
#91B14B
accent
#E147B0
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A050F
muted
#7C797F

Preview Lab

Preview with #3F227E

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

Preview Lab → · Contrast checker → · Palette generator →

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