#3E25A8#3E25A8

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

Color values

HEX#3E25A8
RGBrgb(62, 37, 168)
HSLhsl(251, 64%, 40%)
HSVhsv(251, 78%, 66%)
CMYKcmyk(63.1%, 78%, 0%, 34.1%)
CIE-LABlab(27.22, 47.46, -65.70)
CIE-LCHlch(27.22, 81.05, 305.84°)
OKLaboklab(39.38% 0.0388 -0.1895)
OKLCHoklch(39.38% 0.193 281.6)
XYZxyz(9.7138, 5.1737, 37.5249)
Luminance0.0517 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E25A8 #8FA825
analogous
#254EA8 #3E25A8 #7F25A8
triadic
#3E25A8 #A83E25 #25A83E
tetradic
#3E25A8 #A8254E #8FA825 #25A87F
square
#3E25A8 #A8254E #8FA825 #25A87F
split-complementary
#3E25A8 #A87F25 #4EA825
monochromatic
#190F44 #2B1A76 #3E25A8 #5537D3 #8069DE

Accessibility & contrast

On white

10.32
#3E25A8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.03
#3E25A8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E25A8
10.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E25A8#FFFFFF#000000##FFFFFF
##3E25A81.0010.322.0310.32
#FFFFFF10.321.0021.001.00
#0000002.0321.001.0021.00
##FFFFFF10.321.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #3e25a8;
/* rgb */ color: rgb(62, 37, 168);
/* oklch */ color: oklch(39.4% 0.193 281.6);
Tailwind
colors: {
  custom: {
    50: '#8163c3',
    500: '#3e25a8',
    950: '#000000',
  },
}
SCSS
$custom: #3e25a8;
$custom-light: #8163c3;
$custom-dark: #000000;
JSON
{
  "hex": "#3e25a8",
  "rgb": {
    "r": 62,
    "g": 37,
    "b": 168
  },
  "hsl": {
    "h": 251.45,
    "s": 63.902,
    "l": 40.196
  },
  "oklch": {
    "l": 0.39376,
    "c": 0.19346,
    "h": 281.6
  },
  "luminance": 0.05174
}

Semantic roles & 50–950 ramp

primary
#3E25A8
secondary
#B2C465
accent
#E741C7
background
#F8F6FC
surface
#F0EBF8
border
#CBC6D1
text
#0C0513
muted
#7D7A82

Preview Lab

Preview with #3E25A8

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

Preview Lab → · Contrast checker → · Palette generator →

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