#3F257E#3F257E

#3F257E is a dark, vivid violet. Relative luminance 0.039; OKLCH L 35.4% C 0.142 H 290.7°. Best body text is #FFFFFF at 11.82:1 contrast (WCAG AA passes).

Color values

HEX#3F257E
RGBrgb(63, 37, 126)
HSLhsl(258, 55%, 32%)
HSVhsv(258, 71%, 49%)
CMYKcmyk(50%, 70.6%, 0%, 50.6%)
CIE-LABlab(23.29, 34.86, -46.22)
CIE-LCHlch(23.29, 57.89, 307.03°)
OKLaboklab(35.39% 0.0502 -0.1325)
OKLCHoklch(35.39% 0.142 290.7)
XYZxyz(6.4763, 3.8860, 20.1435)
Luminance0.0389 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F257E #647E25
analogous
#25387E #3F257E #6C257E
triadic
#3F257E #7E3F25 #257E3F
tetradic
#3F257E #7E2538 #647E25 #257E6C
square
#3F257E #7E2538 #647E25 #257E6C
split-complementary
#3F257E #7E6C25 #387E25
monochromatic
#10091F #27174F #3F257E #5733AD #7551CC

Accessibility & contrast

On white

11.82
#3F257E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3F257E
11.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F257E#FFFFFF#000000##FFFFFF
##3F257E1.0011.821.7811.82
#FFFFFF11.821.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003981
Deuteranopia (green-blind)
#00367C
Tritanopia (blue-blind)
#2B3B4E
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #3f257e;
/* rgb */ color: rgb(63, 37, 126);
/* oklch */ color: oklch(35.4% 0.142 290.7);
Tailwind
colors: {
  custom: {
    50: '#7a61a4',
    500: '#3f257e',
    950: '#000000',
  },
}
SCSS
$custom: #3f257e;
$custom-light: #7a61a4;
$custom-dark: #000000;
JSON
{
  "hex": "#3f257e",
  "rgb": {
    "r": 63,
    "g": 37,
    "b": 126
  },
  "hsl": {
    "h": 257.528,
    "s": 54.601,
    "l": 31.961
  },
  "oklch": {
    "l": 0.35393,
    "c": 0.14167,
    "h": 290.7
  },
  "luminance": 0.03886
}

Semantic roles & 50–950 ramp

primary
#3F257E
secondary
#94B04F
accent
#DE4AB3
background
#F7F5FA
surface
#EEEAF4
border
#C9C6CE
text
#0A050F
muted
#7C797F

Preview Lab

Preview with #3F257E

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

Preview Lab → · Contrast checker → · Palette generator →

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