#3E28A8#3E28A8

#3E28A8 is a dark, vivid violet. Relative luminance 0.054; OKLCH L 39.8% C 0.191 H 281.2°. Best body text is #FFFFFF at 10.13:1 contrast (WCAG AA passes).

Color values

HEX#3E28A8
RGBrgb(62, 40, 168)
HSLhsl(250, 62%, 41%)
HSVhsv(250, 76%, 66%)
CMYKcmyk(63.1%, 76.2%, 0%, 34.1%)
CIE-LABlab(27.76, 45.93, -64.82)
CIE-LCHlch(27.76, 79.44, 305.32°)
OKLaboklab(39.75% 0.0369 -0.187)
OKLCHoklch(39.75% 0.191 281.2)
XYZxyz(9.8111, 5.3681, 37.5573)
Luminance0.0537 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E28A8 #92A828
analogous
#2852A8 #3E28A8 #7E28A8
triadic
#3E28A8 #A83E28 #28A83E
tetradic
#3E28A8 #A82852 #92A828 #28A87E
square
#3E28A8 #A82852 #92A828 #28A87E
split-complementary
#3E28A8 #A87E28 #52A828
monochromatic
#1A1045 #2C1C77 #3E28A8 #563DD1 #816EDC

Accessibility & contrast

On white

10.13
#3E28A8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.07
#3E28A8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E28A8
10.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E28A8#FFFFFF#000000##FFFFFF
##3E28A81.0010.132.0710.13
#FFFFFF10.131.0021.001.00
#0000002.0721.001.0021.00
##FFFFFF10.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0046AC
Deuteranopia (green-blind)
#003DA6
Tritanopia (blue-blind)
#004D66
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #3e28a8;
/* rgb */ color: rgb(62, 40, 168);
/* oklch */ color: oklch(39.8% 0.191 281.2);
Tailwind
colors: {
  custom: {
    50: '#8165c3',
    500: '#3e28a8',
    950: '#000000',
  },
}
SCSS
$custom: #3e28a8;
$custom-light: #8165c3;
$custom-dark: #000000;
JSON
{
  "hex": "#3e28a8",
  "rgb": {
    "r": 62,
    "g": 40,
    "b": 168
  },
  "hsl": {
    "h": 250.313,
    "s": 61.538,
    "l": 40.784
  },
  "oklch": {
    "l": 0.39751,
    "c": 0.1906,
    "h": 281.2
  },
  "luminance": 0.05369
}

Semantic roles & 50–950 ramp

primary
#3E28A8
secondary
#B4C369
accent
#E543C9
background
#F8F6FC
surface
#F0EBF8
border
#CBC6D1
text
#0C0613
muted
#7D7A82

Preview Lab

Preview with #3E28A8

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

Preview Lab → · Contrast checker → · Palette generator →

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