#3D25A8#3D25A8

#3D25A8 is a dark, vivid violet. Relative luminance 0.051; OKLCH L 39.3% C 0.194 H 281.1°. Best body text is #FFFFFF at 10.35:1 contrast (WCAG AA passes).

Color values

HEX#3D25A8
RGBrgb(61, 37, 168)
HSLhsl(251, 64%, 40%)
HSVhsv(251, 78%, 66%)
CMYKcmyk(63.7%, 78%, 0%, 34.1%)
CIE-LABlab(27.13, 47.34, -65.85)
CIE-LCHlch(27.13, 81.10, 305.72°)
OKLaboklab(39.29% 0.0373 -0.19)
OKLCHoklch(39.29% 0.194 281.1)
XYZxyz(9.6517, 5.1417, 37.5220)
Luminance0.0514 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3D25A8 #90A825
analogous
#254FA8 #3D25A8 #7E25A8
triadic
#3D25A8 #A83D25 #25A83D
tetradic
#3D25A8 #A8254F #90A825 #25A87E
square
#3D25A8 #A8254F #90A825 #25A87E
split-complementary
#3D25A8 #A87E25 #4FA825
monochromatic
#190F44 #2B1A76 #3D25A8 #5437D3 #7F69DE

Accessibility & contrast

On white

10.35
#3D25A8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3D25A8
10.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3D25A8#FFFFFF#000000##FFFFFF
##3D25A81.0010.352.0310.35
#FFFFFF10.351.0021.001.00
#0000002.0321.001.0021.00
##FFFFFF10.351.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #3d25a8;
/* rgb */ color: rgb(61, 37, 168);
/* oklch */ color: oklch(39.3% 0.194 281.1);
Tailwind
colors: {
  custom: {
    50: '#8163c3',
    500: '#3d25a8',
    950: '#000000',
  },
}
SCSS
$custom: #3d25a8;
$custom-light: #8163c3;
$custom-dark: #000000;
JSON
{
  "hex": "#3d25a8",
  "rgb": {
    "r": 61,
    "g": 37,
    "b": 168
  },
  "hsl": {
    "h": 250.992,
    "s": 63.902,
    "l": 40.196
  },
  "oklch": {
    "l": 0.39291,
    "c": 0.19363,
    "h": 281.1
  },
  "luminance": 0.05142
}

Semantic roles & 50–950 ramp

primary
#3D25A8
secondary
#B3C465
accent
#E741C8
background
#F8F6FC
surface
#F0EBF8
border
#CBC6D1
text
#0C0513
muted
#7D7A82

Preview Lab

Preview with #3D25A8

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

Preview Lab → · Contrast checker → · Palette generator →

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