#3F228B#3F228B

#3F228B is a dark, vivid violet. Relative luminance 0.041; OKLCH L 36.2% C 0.162 H 288.1°. Best body text is #FFFFFF at 11.58:1 contrast (WCAG AA passes).

Color values

HEX#3F228B
RGBrgb(63, 34, 139)
HSLhsl(257, 61%, 34%)
HSVhsv(257, 76%, 55%)
CMYKcmyk(54.7%, 75.5%, 0%, 45.5%)
CIE-LABlab(23.88, 40.44, -53.41)
CIE-LCHlch(23.88, 66.99, 307.13°)
OKLaboklab(36.18% 0.0502 -0.1536)
OKLCHoklch(36.18% 0.162 288.1)
XYZxyz(7.2808, 4.0645, 24.8220)
Luminance0.0406 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F228B #6E8B22
analogous
#223A8B #3F228B #74228B
triadic
#3F228B #8B3F22 #228B3F
tetradic
#3F228B #8B223A #6E8B22 #228B74
square
#3F228B #8B223A #6E8B22 #228B74
split-complementary
#3F228B #8B7422 #3A8B22
monochromatic
#120A29 #29165A #3F228B #552EBC #7753D5

Accessibility & contrast

On white

11.58
#3F228B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3F228B
11.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F228B#FFFFFF#000000##FFFFFF
##3F228B1.0011.581.8111.58
#FFFFFF11.581.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B8E
Deuteranopia (green-blind)
#003689
Tritanopia (blue-blind)
#213F55
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #3f228b;
/* rgb */ color: rgb(63, 34, 139);
/* oklch */ color: oklch(36.2% 0.162 288.1);
Tailwind
colors: {
  custom: {
    50: '#7d60ae',
    500: '#3f228b',
    950: '#000000',
  },
}
SCSS
$custom: #3f228b;
$custom-light: #7d60ae;
$custom-dark: #000000;
JSON
{
  "hex": "#3f228b",
  "rgb": {
    "r": 63,
    "g": 34,
    "b": 139
  },
  "hsl": {
    "h": 256.571,
    "s": 60.694,
    "l": 33.922
  },
  "oklch": {
    "l": 0.3618,
    "c": 0.16158,
    "h": 288.1
  },
  "luminance": 0.04065
}

Semantic roles & 50–950 ramp

primary
#3F228B
secondary
#9CB850
accent
#E444B8
background
#F8F5FA
surface
#EFEAF4
border
#CAC6CE
text
#0A0510
muted
#7C797F

Preview Lab

Preview with #3F228B

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

Preview Lab → · Contrast checker → · Palette generator →

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