#3F227D#3F227D

#3F227D is a dark, vivid violet. Relative luminance 0.037; OKLCH L 34.9% C 0.144 H 291.8°. Best body text is #FFFFFF at 12.10:1 contrast (WCAG AA passes).

Color values

HEX#3F227D
RGBrgb(63, 34, 125)
HSLhsl(259, 57%, 31%)
HSVhsv(259, 73%, 49%)
CMYKcmyk(49.6%, 72.8%, 0%, 51%)
CIE-LABlab(22.59, 36.26, -46.73)
CIE-LCHlch(22.59, 59.15, 307.81°)
OKLaboklab(34.86% 0.0535 -0.134)
OKLCHoklch(34.86% 0.144 291.8)
XYZxyz(6.3226, 3.6813, 19.7755)
Luminance0.0368 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F227D #607D22
analogous
#22327D #3F227D #6C227D
triadic
#3F227D #7D3F22 #227D3F
tetradic
#3F227D #7D2232 #607D22 #227D6C
square
#3F227D #7D2232 #607D22 #227D6C
split-complementary
#3F227D #7D6C22 #327D22
monochromatic
#0F081D #27154D #3F227D #572FAD #754BCE

Accessibility & contrast

On white

12.10
#3F227D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3F227D
12.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F227D#FFFFFF#000000##FFFFFF
##3F227D1.0012.101.7412.10
#FFFFFF12.101.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003780
Deuteranopia (green-blind)
#00347B
Tritanopia (blue-blind)
#2B394D
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #3f227d;
/* rgb */ color: rgb(63, 34, 125);
/* oklch */ color: oklch(34.9% 0.144 291.8);
Tailwind
colors: {
  custom: {
    50: '#7b60a3',
    500: '#3f227d',
    950: '#000000',
  },
}
SCSS
$custom: #3f227d;
$custom-light: #7b60a3;
$custom-dark: #000000;
JSON
{
  "hex": "#3f227d",
  "rgb": {
    "r": 63,
    "g": 34,
    "b": 125
  },
  "hsl": {
    "h": 259.121,
    "s": 57.233,
    "l": 31.176
  },
  "oklch": {
    "l": 0.34864,
    "c": 0.14424,
    "h": 291.8
  },
  "luminance": 0.03681
}

Semantic roles & 50–950 ramp

primary
#3F227D
secondary
#90B04B
accent
#E047B0
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A050F
muted
#7C797F

Preview Lab

Preview with #3F227D

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

Preview Lab → · Contrast checker → · Palette generator →

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