#3F238C#3F238C

#3F238C is a dark, vivid violet. Relative luminance 0.042; OKLCH L 36.4% C 0.162 H 287.7°. Best body text is #FFFFFF at 11.47:1 contrast (WCAG AA passes).

Color values

HEX#3F238C
RGBrgb(63, 35, 140)
HSLhsl(256, 60%, 34%)
HSVhsv(256, 75%, 55%)
CMYKcmyk(55%, 75%, 0%, 45.1%)
CIE-LABlab(24.17, 40.20, -53.57)
CIE-LCHlch(24.17, 66.98, 306.89°)
OKLaboklab(36.41% 0.0491 -0.154)
OKLCHoklch(36.41% 0.162 287.7)
XYZxyz(7.3832, 4.1519, 25.2182)
Luminance0.0415 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F238C #708C23
analogous
#233C8C #3F238C #74238C
triadic
#3F238C #8C3F23 #238C3F
tetradic
#3F238C #8C233C #708C23 #238C74
square
#3F238C #8C233C #708C23 #238C74
split-complementary
#3F238C #8C7423 #3C8C23
monochromatic
#130B2A #29175B #3F238C #552FBD #7755D4

Accessibility & contrast

On white

11.47
#3F238C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.83
#3F238C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F238C
11.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F238C#FFFFFF#000000##FFFFFF
##3F238C1.0011.471.8311.47
#FFFFFF11.471.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C8F
Deuteranopia (green-blind)
#00378A
Tritanopia (blue-blind)
#203F55
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #3f238c;
/* rgb */ color: rgb(63, 35, 140);
/* oklch */ color: oklch(36.4% 0.162 287.7);
Tailwind
colors: {
  custom: {
    50: '#7d61af',
    500: '#3f238c',
    950: '#000000',
  },
}
SCSS
$custom: #3f238c;
$custom-light: #7d61af;
$custom-dark: #000000;
JSON
{
  "hex": "#3f238c",
  "rgb": {
    "r": 63,
    "g": 35,
    "b": 140
  },
  "hsl": {
    "h": 256,
    "s": 60,
    "l": 34.314
  },
  "oklch": {
    "l": 0.36409,
    "c": 0.16169,
    "h": 287.7
  },
  "luminance": 0.04152
}

Semantic roles & 50–950 ramp

primary
#3F238C
secondary
#9DB852
accent
#E345B9
background
#F8F5FA
surface
#EFEAF5
border
#CAC6CF
text
#0B0510
muted
#7C797F

Preview Lab

Preview with #3F238C

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

Preview Lab → · Contrast checker → · Palette generator →

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