#3E28A4#3E28A4

#3E28A4 is a dark, vivid violet. Relative luminance 0.052; OKLCH L 39.3% C 0.186 H 281.8°. Best body text is #FFFFFF at 10.27:1 contrast (WCAG AA passes).

Color values

HEX#3E28A4
RGBrgb(62, 40, 164)
HSLhsl(251, 61%, 40%)
HSVhsv(251, 76%, 64%)
CMYKcmyk(62.2%, 75.6%, 0%, 35.7%)
CIE-LABlab(27.36, 44.70, -63.06)
CIE-LCHlch(27.36, 77.30, 305.33°)
OKLaboklab(39.35% 0.0379 -0.1819)
OKLCHoklch(39.35% 0.186 281.8)
XYZxyz(9.4441, 5.2214, 35.6249)
Luminance0.0522 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E28A4 #8EA428
analogous
#2850A4 #3E28A4 #7C28A4
triadic
#3E28A4 #A43E28 #28A43E
tetradic
#3E28A4 #A42850 #8EA428 #28A47C
square
#3E28A4 #A42850 #8EA428 #28A47C
split-complementary
#3E28A4 #A47C28 #50A428
monochromatic
#191042 #2B1C73 #3E28A4 #553ACF #7F6BDB

Accessibility & contrast

On white

10.27
#3E28A4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.04
#3E28A4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E28A4
10.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E28A4#FFFFFF#000000##FFFFFF
##3E28A41.0010.272.0410.27
#FFFFFF10.271.0021.001.00
#0000002.0421.001.0021.00
##FFFFFF10.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0045A8
Deuteranopia (green-blind)
#003CA2
Tritanopia (blue-blind)
#004B64
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #3e28a4;
/* rgb */ color: rgb(62, 40, 164);
/* oklch */ color: oklch(39.3% 0.186 281.8);
Tailwind
colors: {
  custom: {
    50: '#8065c0',
    500: '#3e28a4',
    950: '#000000',
  },
}
SCSS
$custom: #3e28a4;
$custom-light: #8065c0;
$custom-dark: #000000;
JSON
{
  "hex": "#3e28a4",
  "rgb": {
    "r": 62,
    "g": 40,
    "b": 164
  },
  "hsl": {
    "h": 250.645,
    "s": 60.784,
    "l": 40
  },
  "oklch": {
    "l": 0.39347,
    "c": 0.18578,
    "h": 281.8
  },
  "luminance": 0.05222
}

Semantic roles & 50–950 ramp

primary
#3E28A4
secondary
#B1C166
accent
#E444C8
background
#F8F6FC
surface
#F0EBF8
border
#CBC6D1
text
#0B0612
muted
#7C7A81

Preview Lab

Preview with #3E28A4

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

Preview Lab → · Contrast checker → · Palette generator →

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