#3F238D#3F238D

#3F238D is a dark, vivid violet. Relative luminance 0.042; OKLCH L 36.5% C 0.163 H 287.5°. Best body text is #FFFFFF at 11.44:1 contrast (WCAG AA passes).

Color values

HEX#3F238D
RGBrgb(63, 35, 141)
HSLhsl(256, 60%, 35%)
HSVhsv(256, 75%, 55%)
CMYKcmyk(55.3%, 75.2%, 0%, 44.7%)
CIE-LABlab(24.26, 40.50, -54.04)
CIE-LCHlch(24.26, 67.53, 306.86°)
OKLaboklab(36.51% 0.0489 -0.1554)
OKLCHoklch(36.51% 0.163 287.5)
XYZxyz(7.4572, 4.1815, 25.6083)
Luminance0.0418 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F238D #718D23
analogous
#233C8D #3F238D #74238D
triadic
#3F238D #8D3F23 #238D3F
tetradic
#3F238D #8D233C #718D23 #238D74
square
#3F238D #8D233C #718D23 #238D74
split-complementary
#3F238D #8D7423 #3C8D23
monochromatic
#130B2B #29175C #3F238D #552FBE #7755D5

Accessibility & contrast

On white

11.44
#3F238D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.84
#3F238D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F238D
11.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F238D#FFFFFF#000000##FFFFFF
##3F238D1.0011.441.8411.44
#FFFFFF11.441.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C90
Deuteranopia (green-blind)
#00378B
Tritanopia (blue-blind)
#1F4056
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #3f238d;
/* rgb */ color: rgb(63, 35, 141);
/* oklch */ color: oklch(36.5% 0.163 287.5);
Tailwind
colors: {
  custom: {
    50: '#7d61af',
    500: '#3f238d',
    950: '#000000',
  },
}
SCSS
$custom: #3f238d;
$custom-light: #7d61af;
$custom-dark: #000000;
JSON
{
  "hex": "#3f238d",
  "rgb": {
    "r": 63,
    "g": 35,
    "b": 141
  },
  "hsl": {
    "h": 255.849,
    "s": 60.227,
    "l": 34.51
  },
  "oklch": {
    "l": 0.36506,
    "c": 0.16291,
    "h": 287.5
  },
  "luminance": 0.04182
}

Semantic roles & 50–950 ramp

primary
#3F238D
secondary
#9EB953
accent
#E344B9
background
#F8F5FA
surface
#EFEAF5
border
#CAC6CF
text
#0B0510
muted
#7C797F

Preview Lab

Preview with #3F238D

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

Preview Lab → · Contrast checker → · Palette generator →

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