#3D25A2#3D25A2

#3D25A2 is a dark, vivid violet. Relative luminance 0.049; OKLCH L 38.7% C 0.186 H 282.0°. Best body text is #FFFFFF at 10.58:1 contrast (WCAG AA passes).

Color values

HEX#3D25A2
RGBrgb(61, 37, 162)
HSLhsl(252, 63%, 39%)
HSVhsv(252, 77%, 64%)
CMYKcmyk(62.3%, 77.2%, 0%, 36.5%)
CIE-LABlab(26.51, 45.53, -63.24)
CIE-LCHlch(26.51, 77.92, 305.75°)
OKLaboklab(38.67% 0.0389 -0.1824)
OKLCHoklch(38.67% 0.187 282)
XYZxyz(9.1056, 4.9232, 34.6459)
Luminance0.0492 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3D25A2 #8AA225
analogous
#254CA2 #3D25A2 #7C25A2
triadic
#3D25A2 #A23D25 #25A23D
tetradic
#3D25A2 #A2254C #8AA225 #25A27C
square
#3D25A2 #A2254C #8AA225 #25A27C
split-complementary
#3D25A2 #A27C25 #4CA225
monochromatic
#170E3E #2A1A70 #3D25A2 #5234D1 #7C65DC

Accessibility & contrast

On white

10.58
#3D25A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.98
#3D25A2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3D25A2
10.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3D25A2#FFFFFF#000000##FFFFFF
##3D25A21.0010.581.9810.58
#FFFFFF10.581.0021.001.00
#0000001.9821.001.0021.00
##FFFFFF10.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0043A6
Deuteranopia (green-blind)
#003AA0
Tritanopia (blue-blind)
#004962
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #3d25a2;
/* rgb */ color: rgb(61, 37, 162);
/* oklch */ color: oklch(38.7% 0.186 282.0);
Tailwind
colors: {
  custom: {
    50: '#8063bf',
    500: '#3d25a2',
    950: '#000000',
  },
}
SCSS
$custom: #3d25a2;
$custom-light: #8063bf;
$custom-dark: #000000;
JSON
{
  "hex": "#3d25a2",
  "rgb": {
    "r": 61,
    "g": 37,
    "b": 162
  },
  "hsl": {
    "h": 251.52,
    "s": 62.814,
    "l": 39.02
  },
  "oklch": {
    "l": 0.38672,
    "c": 0.1865,
    "h": 282
  },
  "luminance": 0.04924
}

Semantic roles & 50–950 ramp

primary
#3D25A2
secondary
#AFC261
accent
#E642C6
background
#F8F6FB
surface
#F0EBF7
border
#CBC6D0
text
#0B0512
muted
#7C7A81

Preview Lab

Preview with #3D25A2

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

Preview Lab → · Contrast checker → · Palette generator →

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