#3F239A#3F239A

#3F239A is a dark, vivid violet. Relative luminance 0.046; OKLCH L 37.8% C 0.179 H 284.7°. Best body text is #FFFFFF at 10.95:1 contrast (WCAG AA passes).

Color values

HEX#3F239A
RGBrgb(63, 35, 154)
HSLhsl(254, 63%, 37%)
HSVhsv(254, 77%, 60%)
CMYKcmyk(59.1%, 77.3%, 0%, 39.6%)
CIE-LABlab(25.54, 44.40, -59.96)
CIE-LCHlch(25.54, 74.61, 306.52°)
OKLaboklab(37.79% 0.0455 -0.1727)
OKLCHoklch(37.79% 0.179 284.7)
XYZxyz(8.4819, 4.5914, 31.0049)
Luminance0.0459 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F239A #7E9A23
analogous
#23429A #3F239A #7B239A
triadic
#3F239A #9A3F23 #239A3F
tetradic
#3F239A #9A2342 #7E9A23 #239A7B
square
#3F239A #9A2342 #7E9A23 #239A7B
split-complementary
#3F239A #9A7B23 #429A23
monochromatic
#160C36 #2B1868 #3F239A #532ECC #7B5DDA

Accessibility & contrast

On white

10.95
#3F239A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.92
#3F239A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F239A
10.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F239A#FFFFFF#000000##FFFFFF
##3F239A1.0010.951.9210.95
#FFFFFF10.951.0021.001.00
#0000001.9221.001.0021.00
##FFFFFF10.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00409D
Deuteranopia (green-blind)
#003998
Tritanopia (blue-blind)
#0B455D
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #3f239a;
/* rgb */ color: rgb(63, 35, 154);
/* oklch */ color: oklch(37.8% 0.179 284.7);
Tailwind
colors: {
  custom: {
    50: '#7f62b9',
    500: '#3f239a',
    950: '#000000',
  },
}
SCSS
$custom: #3f239a;
$custom-light: #7f62b9;
$custom-dark: #000000;
JSON
{
  "hex": "#3f239a",
  "rgb": {
    "r": 63,
    "g": 35,
    "b": 154
  },
  "hsl": {
    "h": 254.118,
    "s": 62.963,
    "l": 37.059
  },
  "oklch": {
    "l": 0.37789,
    "c": 0.17864,
    "h": 284.7
  },
  "luminance": 0.04592
}

Semantic roles & 50–950 ramp

primary
#3F239A
secondary
#A7BF5A
accent
#E642BF
background
#F8F5FB
surface
#EFEAF6
border
#CAC6D0
text
#0B0512
muted
#7C7981

Preview Lab

Preview with #3F239A

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

Preview Lab → · Contrast checker → · Palette generator →

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