#3F239D#3F239D

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

Color values

HEX#3F239D
RGBrgb(63, 35, 157)
HSLhsl(254, 64%, 38%)
HSVhsv(254, 78%, 62%)
CMYKcmyk(59.9%, 77.7%, 0%, 38.4%)
CIE-LABlab(25.84, 45.29, -61.30)
CIE-LCHlch(25.84, 76.22, 306.46°)
OKLaboklab(38.09% 0.0446 -0.1766)
OKLCHoklch(38.09% 0.182 284.2)
XYZxyz(8.7349, 4.6926, 32.3372)
Luminance0.0469 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F239D #819D23
analogous
#23449D #3F239D #7C239D
triadic
#3F239D #9D3F23 #239D3F
tetradic
#3F239D #9D2344 #819D23 #239D7C
square
#3F239D #9D2344 #819D23 #239D7C
split-complementary
#3F239D #9D7C23 #449D23
monochromatic
#170D39 #2B186B #3F239D #532ECF #7C5FDB

Accessibility & contrast

On white

10.83
#3F239D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.94
#3F239D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F239D
10.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F239D#FFFFFF#000000##FFFFFF
##3F239D1.0010.831.9410.83
#FFFFFF10.831.0021.001.00
#0000001.9421.001.0021.00
##FFFFFF10.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0041A0
Deuteranopia (green-blind)
#00399B
Tritanopia (blue-blind)
#03465F
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #3f239d;
/* rgb */ color: rgb(63, 35, 157);
/* oklch */ color: oklch(38.1% 0.182 284.2);
Tailwind
colors: {
  custom: {
    50: '#8062bb',
    500: '#3f239d',
    950: '#000000',
  },
}
SCSS
$custom: #3f239d;
$custom-light: #8062bb;
$custom-dark: #000000;
JSON
{
  "hex": "#3f239d",
  "rgb": {
    "r": 63,
    "g": 35,
    "b": 157
  },
  "hsl": {
    "h": 253.77,
    "s": 63.542,
    "l": 37.647
  },
  "oklch": {
    "l": 0.38093,
    "c": 0.1822,
    "h": 284.2
  },
  "luminance": 0.04693
}

Semantic roles & 50–950 ramp

primary
#3F239D
secondary
#A9C05C
accent
#E741C1
background
#F8F5FB
surface
#EFEAF6
border
#CAC6D0
text
#0B0512
muted
#7C7981

Preview Lab

Preview with #3F239D

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

Preview Lab → · Contrast checker → · Palette generator →

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