#3F258D#3F258D

#3F258D is a dark, vivid violet. Relative luminance 0.043; OKLCH L 36.8% C 0.161 H 287.1°. Best body text is #FFFFFF at 11.29:1 contrast (WCAG AA passes).

Color values

HEX#3F258D
RGBrgb(63, 37, 141)
HSLhsl(255, 58%, 35%)
HSVhsv(255, 74%, 55%)
CMYKcmyk(55.3%, 73.8%, 0%, 44.7%)
CIE-LABlab(24.65, 39.42, -53.40)
CIE-LCHlch(24.65, 66.38, 306.44°)
OKLaboklab(36.78% 0.0472 -0.1536)
OKLCHoklch(36.78% 0.161 287.1)
XYZxyz(7.5178, 4.3026, 25.6285)
Luminance0.0430 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F258D #738D25
analogous
#253F8D #3F258D #73258D
triadic
#3F258D #8D3F25 #258D3F
tetradic
#3F258D #8D253F #738D25 #258D73
square
#3F258D #8D253F #738D25 #258D73
split-complementary
#3F258D #8D7325 #3F8D25
monochromatic
#140C2C #29185D #3F258D #5532BD #7859D3

Accessibility & contrast

On white

11.29
#3F258D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.86
#3F258D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F258D
11.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F258D#FFFFFF#000000##FFFFFF
##3F258D1.0011.291.8611.29
#FFFFFF11.291.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D90
Deuteranopia (green-blind)
#00388B
Tritanopia (blue-blind)
#1F4156
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #3f258d;
/* rgb */ color: rgb(63, 37, 141);
/* oklch */ color: oklch(36.8% 0.161 287.1);
Tailwind
colors: {
  custom: {
    50: '#7d62af',
    500: '#3f258d',
    950: '#000000',
  },
}
SCSS
$custom: #3f258d;
$custom-light: #7d62af;
$custom-dark: #000000;
JSON
{
  "hex": "#3f258d",
  "rgb": {
    "r": 63,
    "g": 37,
    "b": 141
  },
  "hsl": {
    "h": 255,
    "s": 58.427,
    "l": 34.902
  },
  "oklch": {
    "l": 0.36778,
    "c": 0.16065,
    "h": 287.1
  },
  "luminance": 0.04303
}

Semantic roles & 50–950 ramp

primary
#3F258D
secondary
#9FB856
accent
#E246BB
background
#F8F5FA
surface
#EFEAF5
border
#CAC6CF
text
#0B0510
muted
#7C797F

Preview Lab

Preview with #3F258D

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

Preview Lab → · Contrast checker → · Palette generator →

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