#3F257C#3F257C

#3F257C is a dark, vivid violet. Relative luminance 0.038; OKLCH L 35.2% C 0.139 H 291.3°. Best body text is #FFFFFF at 11.88:1 contrast (WCAG AA passes).

Color values

HEX#3F257C
RGBrgb(63, 37, 124)
HSLhsl(258, 54%, 32%)
HSVhsv(258, 70%, 49%)
CMYKcmyk(49.2%, 70.2%, 0%, 51.4%)
CIE-LABlab(23.12, 34.26, -45.23)
CIE-LCHlch(23.12, 56.74, 307.14°)
OKLaboklab(35.22% 0.0505 -0.1296)
OKLCHoklch(35.22% 0.139 291.3)
XYZxyz(6.3485, 3.8349, 19.4706)
Luminance0.0384 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F257C #627C25
analogous
#25377C #3F257C #6B257C
triadic
#3F257C #7C3F25 #257C3F
tetradic
#3F257C #7C2537 #627C25 #257C6B
square
#3F257C #7C2537 #627C25 #257C6B
split-complementary
#3F257C #7C6B25 #377C25
monochromatic
#0F091E #27174D #3F257C #5733AB #7550CB

Accessibility & contrast

On white

11.88
#3F257C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.77
#3F257C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F257C
11.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F257C#FFFFFF#000000##FFFFFF
##3F257C1.0011.881.7711.88
#FFFFFF11.881.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00397F
Deuteranopia (green-blind)
#00357A
Tritanopia (blue-blind)
#2C3B4D
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #3f257c;
/* rgb */ color: rgb(63, 37, 124);
/* oklch */ color: oklch(35.2% 0.139 291.3);
Tailwind
colors: {
  custom: {
    50: '#7a61a3',
    500: '#3f257c',
    950: '#000000',
  },
}
SCSS
$custom: #3f257c;
$custom-light: #7a61a3;
$custom-dark: #000000;
JSON
{
  "hex": "#3f257c",
  "rgb": {
    "r": 63,
    "g": 37,
    "b": 124
  },
  "hsl": {
    "h": 257.931,
    "s": 54.037,
    "l": 31.569
  },
  "oklch": {
    "l": 0.35215,
    "c": 0.13908,
    "h": 291.3
  },
  "luminance": 0.03835
}

Semantic roles & 50–950 ramp

primary
#3F257C
secondary
#92AE4F
accent
#DD4AB1
background
#F7F5FA
surface
#EEEAF4
border
#C9C6CE
text
#0A050F
muted
#7C797F

Preview Lab

Preview with #3F257C

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

Preview Lab → · Contrast checker → · Palette generator →

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