#3F257F#3F257F

#3F257F is a dark, vivid violet. Relative luminance 0.039; OKLCH L 35.5% C 0.143 H 290.5°. Best body text is #FFFFFF at 11.78:1 contrast (WCAG AA passes).

Color values

HEX#3F257F
RGBrgb(63, 37, 127)
HSLhsl(257, 55%, 32%)
HSVhsv(257, 71%, 50%)
CMYKcmyk(50.4%, 70.9%, 0%, 50.2%)
CIE-LABlab(23.38, 35.17, -46.71)
CIE-LCHlch(23.38, 58.47, 306.98°)
OKLaboklab(35.48% 0.05 -0.1339)
OKLCHoklch(35.48% 0.143 290.5)
XYZxyz(6.5411, 3.9119, 20.4850)
Luminance0.0391 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F257F #657F25
analogous
#25387F #3F257F #6C257F
triadic
#3F257F #7F3F25 #257F3F
tetradic
#3F257F #7F2538 #657F25 #257F6C
square
#3F257F #7F2538 #657F25 #257F6C
split-complementary
#3F257F #7F6C25 #387F25
monochromatic
#100920 #271750 #3F257F #5733AE #7552CD

Accessibility & contrast

On white

11.78
#3F257F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.78
#3F257F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F257F
11.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F257F#FFFFFF#000000##FFFFFF
##3F257F1.0011.781.7811.78
#FFFFFF11.781.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003982
Deuteranopia (green-blind)
#00367D
Tritanopia (blue-blind)
#2A3C4F
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #3f257f;
/* rgb */ color: rgb(63, 37, 127);
/* oklch */ color: oklch(35.5% 0.143 290.5);
Tailwind
colors: {
  custom: {
    50: '#7b62a5',
    500: '#3f257f',
    950: '#000000',
  },
}
SCSS
$custom: #3f257f;
$custom-light: #7b62a5;
$custom-dark: #000000;
JSON
{
  "hex": "#3f257f",
  "rgb": {
    "r": 63,
    "g": 37,
    "b": 127
  },
  "hsl": {
    "h": 257.333,
    "s": 54.878,
    "l": 32.157
  },
  "oklch": {
    "l": 0.35482,
    "c": 0.14296,
    "h": 290.5
  },
  "luminance": 0.03912
}

Semantic roles & 50–950 ramp

primary
#3F257F
secondary
#95B14F
accent
#DE4AB3
background
#F7F5FA
surface
#EEEAF4
border
#C9C6CE
text
#0A050F
muted
#7C797F

Preview Lab

Preview with #3F257F

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

Preview Lab → · Contrast checker → · Palette generator →

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