#3F225A#3F225A

#3F225A is a dark, moderate violet. Relative luminance 0.029; OKLCH L 32.0% C 0.099 H 305.4°. Best body text is #FFFFFF at 13.23:1 contrast (WCAG AA passes).

Color values

HEX#3F225A
RGBrgb(63, 34, 90)
HSLhsl(271, 45%, 24%)
HSVhsv(271, 62%, 35%)
CMYKcmyk(30%, 62.2%, 0%, 64.7%)
CIE-LABlab(19.80, 26.14, -28.52)
CIE-LCHlch(19.80, 38.69, 312.50°)
OKLaboklab(31.97% 0.0572 -0.0805)
OKLCHoklch(31.97% 0.099 305.4)
XYZxyz(4.4670, 2.9390, 10.0028)
Luminance0.0294 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F225A #3D5A22
analogous
#23225A #3F225A #5A2259
triadic
#3F225A #5A3F22 #225A3F
tetradic
#3F225A #5A2322 #3D5A22 #22595A
square
#3F225A #5A2322 #3D5A22 #22595A
split-complementary
#3F225A #595A22 #225A23
monochromatic
#100816 #20112E #3F225A #5E3386 #7D44B3

Accessibility & contrast

On white

13.23
#3F225A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.59
#3F225A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F225A
13.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F225A#FFFFFF#000000##FFFFFF
##3F225A1.0013.231.5913.23
#FFFFFF13.231.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0B2F5C
Deuteranopia (green-blind)
#173059
Tritanopia (blue-blind)
#3A2D3A
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #3f225a;
/* rgb */ color: rgb(63, 34, 90);
/* oklch */ color: oklch(32.0% 0.099 305.4);
Tailwind
colors: {
  custom: {
    50: '#765e89',
    500: '#3f225a',
    950: '#000000',
  },
}
SCSS
$custom: #3f225a;
$custom-light: #765e89;
$custom-dark: #000000;
JSON
{
  "hex": "#3f225a",
  "rgb": {
    "r": 63,
    "g": 34,
    "b": 90
  },
  "hsl": {
    "h": 271.071,
    "s": 45.161,
    "l": 24.314
  },
  "oklch": {
    "l": 0.3197,
    "c": 0.09872,
    "h": 305.4
  },
  "luminance": 0.02939
}

Semantic roles & 50–950 ramp

primary
#3F225A
secondary
#6B8E4A
accent
#D55392
background
#F7F5F8
surface
#EDE9F0
border
#C8C5CB
text
#09040B
muted
#7B797C

Preview Lab

Preview with #3F225A

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

Preview Lab → · Contrast checker → · Palette generator →

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