#3F228E#3F228E

#3F228E is a dark, vivid violet. Relative luminance 0.042; OKLCH L 36.5% C 0.165 H 287.4°. Best body text is #FFFFFF at 11.47:1 contrast (WCAG AA passes).

Color values

HEX#3F228E
RGBrgb(63, 34, 142)
HSLhsl(256, 61%, 35%)
HSVhsv(256, 76%, 56%)
CMYKcmyk(55.6%, 76.1%, 0%, 44.3%)
CIE-LABlab(24.17, 41.33, -54.81)
CIE-LCHlch(24.17, 68.64, 307.02°)
OKLaboklab(36.47% 0.0495 -0.1577)
OKLCHoklch(36.47% 0.165 287.4)
XYZxyz(7.5030, 4.1534, 25.9923)
Luminance0.0415 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F228E #718E22
analogous
#223B8E #3F228E #75228E
triadic
#3F228E #8E3F22 #228E3F
tetradic
#3F228E #8E223B #718E22 #228E75
square
#3F228E #8E223B #718E22 #228E75
split-complementary
#3F228E #8E7522 #3B8E22
monochromatic
#130A2B #29165D #3F228E #552EBF #7754D6

Accessibility & contrast

On white

11.47
#3F228E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.83
#3F228E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F228E
11.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F228E#FFFFFF#000000##FFFFFF
##3F228E1.0011.471.8311.47
#FFFFFF11.471.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C91
Deuteranopia (green-blind)
#00368C
Tritanopia (blue-blind)
#1E4056
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #3f228e;
/* rgb */ color: rgb(63, 34, 142);
/* oklch */ color: oklch(36.5% 0.165 287.4);
Tailwind
colors: {
  custom: {
    50: '#7d60b0',
    500: '#3f228e',
    950: '#000000',
  },
}
SCSS
$custom: #3f228e;
$custom-light: #7d60b0;
$custom-dark: #000000;
JSON
{
  "hex": "#3f228e",
  "rgb": {
    "r": 63,
    "g": 34,
    "b": 142
  },
  "hsl": {
    "h": 256.111,
    "s": 61.364,
    "l": 34.51
  },
  "oklch": {
    "l": 0.36471,
    "c": 0.16523,
    "h": 287.4
  },
  "luminance": 0.04154
}

Semantic roles & 50–950 ramp

primary
#3F228E
secondary
#9EBA52
accent
#E443B9
background
#F8F5FB
surface
#EFEAF6
border
#CAC6D0
text
#0B0511
muted
#7C7980

Preview Lab

Preview with #3F228E

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

Preview Lab → · Contrast checker → · Palette generator →

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