#3F227C#3F227C

#3F227C is a dark, vivid violet. Relative luminance 0.037; OKLCH L 34.8% C 0.143 H 292.0°. Best body text is #FFFFFF at 12.13:1 contrast (WCAG AA passes).

Color values

HEX#3F227C
RGBrgb(63, 34, 124)
HSLhsl(259, 57%, 31%)
HSVhsv(259, 73%, 49%)
CMYKcmyk(49.2%, 72.6%, 0%, 51.4%)
CIE-LABlab(22.50, 35.97, -46.24)
CIE-LCHlch(22.50, 58.58, 307.87°)
OKLaboklab(34.77% 0.0537 -0.1325)
OKLCHoklch(34.77% 0.143 292)
XYZxyz(6.2590, 3.6558, 19.4407)
Luminance0.0366 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F227C #5F7C22
analogous
#22327C #3F227C #6C227C
triadic
#3F227C #7C3F22 #227C3F
tetradic
#3F227C #7C2232 #5F7C22 #227C6C
square
#3F227C #7C2232 #5F7C22 #227C6C
split-complementary
#3F227C #7C6C22 #327C22
monochromatic
#0E081C #27154C #3F227C #572FAC #754BCE

Accessibility & contrast

On white

12.13
#3F227C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#3F227C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F227C
12.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F227C#FFFFFF#000000##FFFFFF
##3F227C1.0012.131.7312.13
#FFFFFF12.131.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00377F
Deuteranopia (green-blind)
#00347A
Tritanopia (blue-blind)
#2C394C
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #3f227c;
/* rgb */ color: rgb(63, 34, 124);
/* oklch */ color: oklch(34.8% 0.143 292.0);
Tailwind
colors: {
  custom: {
    50: '#7a60a3',
    500: '#3f227c',
    950: '#000000',
  },
}
SCSS
$custom: #3f227c;
$custom-light: #7a60a3;
$custom-dark: #000000;
JSON
{
  "hex": "#3f227c",
  "rgb": {
    "r": 63,
    "g": 34,
    "b": 124
  },
  "hsl": {
    "h": 259.333,
    "s": 56.962,
    "l": 30.98
  },
  "oklch": {
    "l": 0.34773,
    "c": 0.14299,
    "h": 292
  },
  "luminance": 0.03656
}

Semantic roles & 50–950 ramp

primary
#3F227C
secondary
#8FAF4B
accent
#E048AF
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A050F
muted
#7C797F

Preview Lab

Preview with #3F227C

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

Preview Lab → · Contrast checker → · Palette generator →

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