#3F229E#3F229E

#3F229E is a dark, vivid violet. Relative luminance 0.047; OKLCH L 38.1% C 0.184 H 284.1°. Best body text is #FFFFFF at 10.86:1 contrast (WCAG AA passes).

Color values

HEX#3F229E
RGBrgb(63, 34, 158)
HSLhsl(254, 65%, 38%)
HSVhsv(254, 78%, 62%)
CMYKcmyk(60.1%, 78.5%, 0%, 38%)
CIE-LABlab(25.77, 46.08, -62.03)
CIE-LCHlch(25.77, 77.27, 306.61°)
OKLaboklab(38.07% 0.045 -0.1788)
OKLCHoklch(38.07% 0.184 284.1)
XYZxyz(8.7916, 4.6689, 32.7790)
Luminance0.0467 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F229E #819E22
analogous
#22439E #3F229E #7D229E
triadic
#3F229E #9E3F22 #229E3F
tetradic
#3F229E #9E2243 #819E22 #229E7D
square
#3F229E #9E2243 #819E22 #229E7D
split-complementary
#3F229E #9E7D22 #439E22
monochromatic
#170C39 #2B176C #3F229E #532DD0 #7C5EDC

Accessibility & contrast

On white

10.86
#3F229E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.93
#3F229E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F229E
10.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F229E#FFFFFF#000000##FFFFFF
##3F229E1.0010.861.9310.86
#FFFFFF10.861.0021.001.00
#0000001.9321.001.0021.00
##FFFFFF10.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0041A1
Deuteranopia (green-blind)
#00399C
Tritanopia (blue-blind)
#00465F
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #3f229e;
/* rgb */ color: rgb(63, 34, 158);
/* oklch */ color: oklch(38.1% 0.184 284.1);
Tailwind
colors: {
  custom: {
    50: '#8061bc',
    500: '#3f229e',
    950: '#000000',
  },
}
SCSS
$custom: #3f229e;
$custom-light: #8061bc;
$custom-dark: #000000;
JSON
{
  "hex": "#3f229e",
  "rgb": {
    "r": 63,
    "g": 34,
    "b": 158
  },
  "hsl": {
    "h": 254.032,
    "s": 64.583,
    "l": 37.647
  },
  "oklch": {
    "l": 0.38074,
    "c": 0.18434,
    "h": 284.1
  },
  "luminance": 0.04669
}

Semantic roles & 50–950 ramp

primary
#3F229E
secondary
#A9C15B
accent
#E840C0
background
#F8F5FB
surface
#F0EAF7
border
#CBC6D0
text
#0B0512
muted
#7C7981

Preview Lab

Preview with #3F229E

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

Preview Lab → · Contrast checker → · Palette generator →

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