#3F228D#3F228D

#3F228D is a dark, vivid violet. Relative luminance 0.041; OKLCH L 36.4% C 0.164 H 287.6°. Best body text is #FFFFFF at 11.51:1 contrast (WCAG AA passes).

Color values

HEX#3F228D
RGBrgb(63, 34, 141)
HSLhsl(256, 61%, 34%)
HSVhsv(256, 76%, 55%)
CMYKcmyk(55.3%, 75.9%, 0%, 44.7%)
CIE-LABlab(24.08, 41.03, -54.34)
CIE-LCHlch(24.08, 68.09, 307.06°)
OKLaboklab(36.37% 0.0497 -0.1563)
OKLCHoklch(36.37% 0.164 287.6)
XYZxyz(7.4282, 4.1235, 25.5986)
Luminance0.0412 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F228D #708D22
analogous
#223A8D #3F228D #75228D
triadic
#3F228D #8D3F22 #228D3F
tetradic
#3F228D #8D223A #708D22 #228D75
square
#3F228D #8D223A #708D22 #228D75
split-complementary
#3F228D #8D7522 #3A8D22
monochromatic
#130A2A #29165C #3F228D #552EBE #7754D6

Accessibility & contrast

On white

11.51
#3F228D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.82
#3F228D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F228D
11.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F228D#FFFFFF#000000##FFFFFF
##3F228D1.0011.511.8211.51
#FFFFFF11.511.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C90
Deuteranopia (green-blind)
#00368B
Tritanopia (blue-blind)
#1F3F56
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #3f228d;
/* rgb */ color: rgb(63, 34, 141);
/* oklch */ color: oklch(36.4% 0.164 287.6);
Tailwind
colors: {
  custom: {
    50: '#7d60af',
    500: '#3f228d',
    950: '#000000',
  },
}
SCSS
$custom: #3f228d;
$custom-light: #7d60af;
$custom-dark: #000000;
JSON
{
  "hex": "#3f228d",
  "rgb": {
    "r": 63,
    "g": 34,
    "b": 141
  },
  "hsl": {
    "h": 256.262,
    "s": 61.143,
    "l": 34.314
  },
  "oklch": {
    "l": 0.36374,
    "c": 0.16402,
    "h": 287.6
  },
  "luminance": 0.04124
}

Semantic roles & 50–950 ramp

primary
#3F228D
secondary
#9DB951
accent
#E444B9
background
#F8F5FA
surface
#EFEAF5
border
#CAC6CF
text
#0B0510
muted
#7C797F

Preview Lab

Preview with #3F228D

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

Preview Lab → · Contrast checker → · Palette generator →

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