#3E28A2#3E28A2

#3E28A2 is a dark, vivid violet. Relative luminance 0.051; OKLCH L 39.1% C 0.183 H 282.1°. Best body text is #FFFFFF at 10.34:1 contrast (WCAG AA passes).

Color values

HEX#3E28A2
RGBrgb(62, 40, 162)
HSLhsl(251, 60%, 40%)
HSVhsv(251, 75%, 64%)
CMYKcmyk(61.7%, 75.3%, 0%, 36.5%)
CIE-LABlab(27.16, 44.09, -62.18)
CIE-LCHlch(27.16, 76.22, 305.34°)
OKLaboklab(39.15% 0.0384 -0.1793)
OKLCHoklch(39.15% 0.183 282.1)
XYZxyz(9.2649, 5.1497, 34.6812)
Luminance0.0515 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E28A2 #8CA228
analogous
#284FA2 #3E28A2 #7B28A2
triadic
#3E28A2 #A23E28 #28A23E
tetradic
#3E28A2 #A2284F #8CA228 #28A27B
square
#3E28A2 #A2284F #8CA228 #28A27B
split-complementary
#3E28A2 #A27B28 #4FA228
monochromatic
#181040 #2B1C71 #3E28A2 #5439CE #7E6ADA

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##3E28A2#FFFFFF#000000##FFFFFF
##3E28A21.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)
#0044A6
Deuteranopia (green-blind)
#003CA0
Tritanopia (blue-blind)
#004A63
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #3e28a2;
/* rgb */ color: rgb(62, 40, 162);
/* oklch */ color: oklch(39.1% 0.183 282.1);
Tailwind
colors: {
  custom: {
    50: '#8065bf',
    500: '#3e28a2',
    950: '#000000',
  },
}
SCSS
$custom: #3e28a2;
$custom-light: #8065bf;
$custom-dark: #000000;
JSON
{
  "hex": "#3e28a2",
  "rgb": {
    "r": 62,
    "g": 40,
    "b": 162
  },
  "hsl": {
    "h": 250.82,
    "s": 60.396,
    "l": 39.608
  },
  "oklch": {
    "l": 0.39146,
    "c": 0.18335,
    "h": 282.1
  },
  "luminance": 0.0515
}

Semantic roles & 50–950 ramp

primary
#3E28A2
secondary
#B0C165
accent
#E444C7
background
#F8F6FB
surface
#F0EBF7
border
#CBC6D0
text
#0B0612
muted
#7C7A81

Preview Lab

Preview with #3E28A2

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

Preview Lab → · Contrast checker → · Palette generator →

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