#3F25A5#3F25A5

#3F25A5 is a dark, vivid violet. Relative luminance 0.051; OKLCH L 39.2% C 0.190 H 282.5°. Best body text is #FFFFFF at 10.40:1 contrast (WCAG AA passes).

Color values

HEX#3F25A5
RGBrgb(63, 37, 165)
HSLhsl(252, 63%, 40%)
HSVhsv(252, 78%, 65%)
CMYKcmyk(61.8%, 77.6%, 0%, 35.3%)
CIE-LABlab(27.01, 46.68, -64.24)
CIE-LCHlch(27.01, 79.41, 306.00°)
OKLaboklab(39.15% 0.0411 -0.1853)
OKLCHoklch(39.15% 0.19 282.5)
XYZxyz(9.5009, 5.0958, 36.0730)
Luminance0.0510 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F25A5 #8BA525
analogous
#254BA5 #3F25A5 #7F25A5
triadic
#3F25A5 #A53F25 #25A53F
tetradic
#3F25A5 #A5254B #8BA525 #25A57F
square
#3F25A5 #A5254B #8BA525 #25A57F
split-complementary
#3F25A5 #A57F25 #4BA525
monochromatic
#190F41 #2C1A73 #3F25A5 #5535D2 #7F67DD

Accessibility & contrast

On white

10.40
#3F25A5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.02
#3F25A5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F25A5
10.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F25A5#FFFFFF#000000##FFFFFF
##3F25A51.0010.402.0210.40
#FFFFFF10.401.0021.001.00
#0000002.0221.001.0021.00
##FFFFFF10.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0044A9
Deuteranopia (green-blind)
#003BA3
Tritanopia (blue-blind)
#004A64
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #3f25a5;
/* rgb */ color: rgb(63, 37, 165);
/* oklch */ color: oklch(39.2% 0.190 282.5);
Tailwind
colors: {
  custom: {
    50: '#8163c1',
    500: '#3f25a5',
    950: '#000000',
  },
}
SCSS
$custom: #3f25a5;
$custom-light: #8163c1;
$custom-dark: #000000;
JSON
{
  "hex": "#3f25a5",
  "rgb": {
    "r": 63,
    "g": 37,
    "b": 165
  },
  "hsl": {
    "h": 252.188,
    "s": 63.366,
    "l": 39.608
  },
  "oklch": {
    "l": 0.39154,
    "c": 0.18976,
    "h": 282.5
  },
  "luminance": 0.05097
}

Semantic roles & 50–950 ramp

primary
#3F25A5
secondary
#AFC363
accent
#E641C5
background
#F8F6FC
surface
#F0EBF8
border
#CBC6D1
text
#0C0512
muted
#7D7A81

Preview Lab

Preview with #3F25A5

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

Preview Lab → · Contrast checker → · Palette generator →

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