#3F258E#3F258E

#3F258E is a dark, vivid violet. Relative luminance 0.043; OKLCH L 36.9% C 0.162 H 286.9°. Best body text is #FFFFFF at 11.25:1 contrast (WCAG AA passes).

Color values

HEX#3F258E
RGBrgb(63, 37, 142)
HSLhsl(255, 59%, 35%)
HSVhsv(255, 74%, 56%)
CMYKcmyk(55.6%, 73.9%, 0%, 44.3%)
CIE-LABlab(24.74, 39.73, -53.87)
CIE-LCHlch(24.74, 66.94, 306.41°)
OKLaboklab(36.87% 0.047 -0.1549)
OKLCHoklch(36.87% 0.162 286.9)
XYZxyz(7.5925, 4.3325, 26.0221)
Luminance0.0433 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F258E #748E25
analogous
#25408E #3F258E #73258E
triadic
#3F258E #8E3F25 #258E3F
tetradic
#3F258E #8E2540 #748E25 #258E73
square
#3F258E #8E2540 #748E25 #258E73
split-complementary
#3F258E #8E7325 #408E25
monochromatic
#140C2D #29185D #3F258E #5532BF #785AD4

Accessibility & contrast

On white

11.25
#3F258E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.87
#3F258E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F258E
11.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F258E#FFFFFF#000000##FFFFFF
##3F258E1.0011.251.8711.25
#FFFFFF11.251.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D91
Deuteranopia (green-blind)
#00388C
Tritanopia (blue-blind)
#1D4157
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #3f258e;
/* rgb */ color: rgb(63, 37, 142);
/* oklch */ color: oklch(36.9% 0.162 286.9);
Tailwind
colors: {
  custom: {
    50: '#7d62b0',
    500: '#3f258e',
    950: '#000000',
  },
}
SCSS
$custom: #3f258e;
$custom-light: #7d62b0;
$custom-dark: #000000;
JSON
{
  "hex": "#3f258e",
  "rgb": {
    "r": 63,
    "g": 37,
    "b": 142
  },
  "hsl": {
    "h": 254.857,
    "s": 58.659,
    "l": 35.098
  },
  "oklch": {
    "l": 0.36874,
    "c": 0.16189,
    "h": 286.9
  },
  "luminance": 0.04333
}

Semantic roles & 50–950 ramp

primary
#3F258E
secondary
#A0B956
accent
#E246BB
background
#F8F5FA
surface
#EFEAF5
border
#CAC6CF
text
#0B0511
muted
#7C7980

Preview Lab

Preview with #3F258E

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

Preview Lab → · Contrast checker → · Palette generator →

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