#3F228A#3F228A

#3F228A is a dark, vivid violet. Relative luminance 0.040; OKLCH L 36.1% C 0.160 H 288.4°. Best body text is #FFFFFF at 11.62:1 contrast (WCAG AA passes).

Color values

HEX#3F228A
RGBrgb(63, 34, 138)
HSLhsl(257, 60%, 34%)
HSVhsv(257, 75%, 54%)
CMYKcmyk(54.3%, 75.4%, 0%, 45.9%)
CIE-LABlab(23.79, 40.14, -52.94)
CIE-LCHlch(23.79, 66.44, 307.17°)
OKLaboklab(36.08% 0.0505 -0.1522)
OKLCHoklch(36.08% 0.16 288.4)
XYZxyz(7.2080, 4.0354, 24.4389)
Luminance0.0404 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F228A #6D8A22
analogous
#22398A #3F228A #73228A
triadic
#3F228A #8A3F22 #228A3F
tetradic
#3F228A #8A2239 #6D8A22 #228A73
square
#3F228A #8A2239 #6D8A22 #228A73
split-complementary
#3F228A #8A7322 #398A22
monochromatic
#120A28 #291659 #3F228A #552EBB #7652D4

Accessibility & contrast

On white

11.62
#3F228A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.81
#3F228A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F228A
11.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F228A#FFFFFF#000000##FFFFFF
##3F228A1.0011.621.8111.62
#FFFFFF11.621.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B8D
Deuteranopia (green-blind)
#003688
Tritanopia (blue-blind)
#223E54
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #3f228a;
/* rgb */ color: rgb(63, 34, 138);
/* oklch */ color: oklch(36.1% 0.160 288.4);
Tailwind
colors: {
  custom: {
    50: '#7d60ad',
    500: '#3f228a',
    950: '#000000',
  },
}
SCSS
$custom: #3f228a;
$custom-light: #7d60ad;
$custom-dark: #000000;
JSON
{
  "hex": "#3f228a",
  "rgb": {
    "r": 63,
    "g": 34,
    "b": 138
  },
  "hsl": {
    "h": 256.731,
    "s": 60.465,
    "l": 33.725
  },
  "oklch": {
    "l": 0.36084,
    "c": 0.16036,
    "h": 288.4
  },
  "luminance": 0.04036
}

Semantic roles & 50–950 ramp

primary
#3F228A
secondary
#9BB850
accent
#E444B7
background
#F8F5FA
surface
#EFEAF4
border
#CAC6CE
text
#0A0510
muted
#7C797F

Preview Lab

Preview with #3F228A

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

Preview Lab → · Contrast checker → · Palette generator →

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