#3D28A3#3D28A3

#3D28A3 is a dark, vivid violet. Relative luminance 0.052; OKLCH L 39.2% C 0.185 H 281.4°. Best body text is #FFFFFF at 10.34:1 contrast (WCAG AA passes).

Color values

HEX#3D28A3
RGBrgb(61, 40, 163)
HSLhsl(250, 61%, 40%)
HSVhsv(250, 75%, 64%)
CMYKcmyk(62.6%, 75.5%, 0%, 36.1%)
CIE-LABlab(27.17, 44.27, -62.77)
CIE-LCHlch(27.17, 76.81, 305.19°)
OKLaboklab(39.16% 0.0367 -0.181)
OKLCHoklch(39.16% 0.185 281.4)
XYZxyz(9.2920, 5.1534, 35.1483)
Luminance0.0515 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3D28A3 #8EA328
analogous
#2851A3 #3D28A3 #7B28A3
triadic
#3D28A3 #A33D28 #28A33D
tetradic
#3D28A3 #A32851 #8EA328 #28A37B
square
#3D28A3 #A32851 #8EA328 #28A37B
split-complementary
#3D28A3 #A37B28 #51A328
monochromatic
#181041 #2B1C72 #3D28A3 #533ACF #7E6BDB

Accessibility & contrast

On white

10.34
#3D28A3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3D28A3
10.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3D28A3#FFFFFF#000000##FFFFFF
##3D28A31.0010.342.0310.34
#FFFFFF10.341.0021.001.00
#0000002.0321.001.0021.00
##FFFFFF10.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0044A7
Deuteranopia (green-blind)
#003CA1
Tritanopia (blue-blind)
#004B64
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #3d28a3;
/* rgb */ color: rgb(61, 40, 163);
/* oklch */ color: oklch(39.2% 0.185 281.4);
Tailwind
colors: {
  custom: {
    50: '#8065bf',
    500: '#3d28a3',
    950: '#000000',
  },
}
SCSS
$custom: #3d28a3;
$custom-light: #8065bf;
$custom-dark: #000000;
JSON
{
  "hex": "#3d28a3",
  "rgb": {
    "r": 61,
    "g": 40,
    "b": 163
  },
  "hsl": {
    "h": 250.244,
    "s": 60.591,
    "l": 39.804
  },
  "oklch": {
    "l": 0.39161,
    "c": 0.18472,
    "h": 281.4
  },
  "luminance": 0.05154
}

Semantic roles & 50–950 ramp

primary
#3D28A3
secondary
#B1C166
accent
#E444C8
background
#F8F6FB
surface
#F0EBF7
border
#CBC6D0
text
#0B0612
muted
#7C7A81

Preview Lab

Preview with #3D28A3

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

Preview Lab → · Contrast checker → · Palette generator →

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