#3F25A8#3F25A8

#3F25A8 is a dark, vivid violet. Relative luminance 0.052; OKLCH L 39.5% C 0.193 H 282.0°. Best body text is #FFFFFF at 10.29:1 contrast (WCAG AA passes).

Color values

HEX#3F25A8
RGBrgb(63, 37, 168)
HSLhsl(252, 64%, 40%)
HSVhsv(252, 78%, 66%)
CMYKcmyk(62.5%, 78%, 0%, 34.1%)
CIE-LABlab(27.31, 47.57, -65.55)
CIE-LCHlch(27.31, 80.99, 305.97°)
OKLaboklab(39.46% 0.0402 -0.1891)
OKLCHoklch(39.46% 0.193 282)
XYZxyz(9.7771, 5.2063, 37.5279)
Luminance0.0521 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F25A8 #8EA825
analogous
#254DA8 #3F25A8 #8025A8
triadic
#3F25A8 #A83F25 #25A83F
tetradic
#3F25A8 #A8254D #8EA825 #25A880
square
#3F25A8 #A8254D #8EA825 #25A880
split-complementary
#3F25A8 #A88025 #4DA825
monochromatic
#190F44 #2C1A76 #3F25A8 #5637D3 #8169DE

Accessibility & contrast

On white

10.29
#3F25A8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.04
#3F25A8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F25A8
10.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F25A8#FFFFFF#000000##FFFFFF
##3F25A81.0010.292.0410.29
#FFFFFF10.291.0021.001.00
#0000002.0421.001.0021.00
##FFFFFF10.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0045AC
Deuteranopia (green-blind)
#003CA6
Tritanopia (blue-blind)
#004B66
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #3f25a8;
/* rgb */ color: rgb(63, 37, 168);
/* oklch */ color: oklch(39.5% 0.193 282.0);
Tailwind
colors: {
  custom: {
    50: '#8264c3',
    500: '#3f25a8',
    950: '#000000',
  },
}
SCSS
$custom: #3f25a8;
$custom-light: #8264c3;
$custom-dark: #000000;
JSON
{
  "hex": "#3f25a8",
  "rgb": {
    "r": 63,
    "g": 37,
    "b": 168
  },
  "hsl": {
    "h": 251.908,
    "s": 63.902,
    "l": 40.196
  },
  "oklch": {
    "l": 0.39462,
    "c": 0.1933,
    "h": 282
  },
  "luminance": 0.05207
}

Semantic roles & 50–950 ramp

primary
#3F25A8
secondary
#B1C465
accent
#E741C6
background
#F8F6FC
surface
#F0EBF8
border
#CBC6D1
text
#0C0613
muted
#7D7A82

Preview Lab

Preview with #3F25A8

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

Preview Lab → · Contrast checker → · Palette generator →

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