#3F238E#3F238E

#3F238E is a dark, vivid violet. Relative luminance 0.042; OKLCH L 36.6% C 0.164 H 287.2°. Best body text is #FFFFFF at 11.40:1 contrast (WCAG AA passes).

Color values

HEX#3F238E
RGBrgb(63, 35, 142)
HSLhsl(256, 60%, 35%)
HSVhsv(256, 75%, 56%)
CMYKcmyk(55.6%, 75.4%, 0%, 44.3%)
CIE-LABlab(24.36, 40.81, -54.50)
CIE-LCHlch(24.36, 68.08, 306.82°)
OKLaboklab(36.6% 0.0487 -0.1568)
OKLCHoklch(36.6% 0.164 287.2)
XYZxyz(7.5320, 4.2114, 26.0019)
Luminance0.0421 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F238E #728E23
analogous
#233D8E #3F238E #75238E
triadic
#3F238E #8E3F23 #238E3F
tetradic
#3F238E #8E233D #728E23 #238E75
square
#3F238E #8E233D #728E23 #238E75
split-complementary
#3F238E #8E7523 #3D8E23
monochromatic
#130B2C #29175D #3F238E #552FBF #7756D5

Accessibility & contrast

On white

11.40
#3F238E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3F238E
11.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F238E#FFFFFF#000000##FFFFFF
##3F238E1.0011.401.8411.40
#FFFFFF11.401.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C91
Deuteranopia (green-blind)
#00378C
Tritanopia (blue-blind)
#1E4056
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #3f238e;
/* rgb */ color: rgb(63, 35, 142);
/* oklch */ color: oklch(36.6% 0.164 287.2);
Tailwind
colors: {
  custom: {
    50: '#7d61b0',
    500: '#3f238e',
    950: '#000000',
  },
}
SCSS
$custom: #3f238e;
$custom-light: #7d61b0;
$custom-dark: #000000;
JSON
{
  "hex": "#3f238e",
  "rgb": {
    "r": 63,
    "g": 35,
    "b": 142
  },
  "hsl": {
    "h": 255.701,
    "s": 60.452,
    "l": 34.706
  },
  "oklch": {
    "l": 0.36603,
    "c": 0.16414,
    "h": 287.2
  },
  "luminance": 0.04212
}

Semantic roles & 50–950 ramp

primary
#3F238E
secondary
#9FB953
accent
#E444BA
background
#F8F5FB
surface
#EFEAF6
border
#CAC6D0
text
#0B0511
muted
#7C7980

Preview Lab

Preview with #3F238E

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

Preview Lab → · Contrast checker → · Palette generator →

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