#3E25A6#3E25A6

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

Color values

HEX#3E25A6
RGBrgb(62, 37, 166)
HSLhsl(252, 64%, 40%)
HSVhsv(252, 78%, 65%)
CMYKcmyk(62.7%, 77.7%, 0%, 34.9%)
CIE-LABlab(27.02, 46.86, -64.83)
CIE-LCHlch(27.02, 79.99, 305.86°)
OKLaboklab(39.17% 0.0393 -0.187)
OKLCHoklch(39.17% 0.191 281.9)
XYZxyz(9.5290, 5.0998, 36.5512)
Luminance0.0510 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E25A6 #8DA625
analogous
#254CA6 #3E25A6 #7F25A6
triadic
#3E25A6 #A63E25 #25A63E
tetradic
#3E25A6 #A6254C #8DA625 #25A67F
square
#3E25A6 #A6254C #8DA625 #25A67F
split-complementary
#3E25A6 #A67F25 #4CA625
monochromatic
#190F42 #2B1A74 #3E25A6 #5436D2 #7F68DD

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##3E25A6#FFFFFF#000000##FFFFFF
##3E25A61.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)
#0044AA
Deuteranopia (green-blind)
#003BA4
Tritanopia (blue-blind)
#004B65
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #3e25a6;
/* rgb */ color: rgb(62, 37, 166);
/* oklch */ color: oklch(39.2% 0.191 281.9);
Tailwind
colors: {
  custom: {
    50: '#8163c2',
    500: '#3e25a6',
    950: '#000000',
  },
}
SCSS
$custom: #3e25a6;
$custom-light: #8163c2;
$custom-dark: #000000;
JSON
{
  "hex": "#3e25a6",
  "rgb": {
    "r": 62,
    "g": 37,
    "b": 166
  },
  "hsl": {
    "h": 251.628,
    "s": 63.547,
    "l": 39.804
  },
  "oklch": {
    "l": 0.3917,
    "c": 0.1911,
    "h": 281.9
  },
  "luminance": 0.051
}

Semantic roles & 50–950 ramp

primary
#3E25A6
secondary
#B1C364
accent
#E741C7
background
#F8F6FC
surface
#F0EBF8
border
#CBC6D1
text
#0C0512
muted
#7D7A81

Preview Lab

Preview with #3E25A6

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

Preview Lab → · Contrast checker → · Palette generator →

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