#4E40C1#4E40C1

#4E40C1 is a mid, vivid blue. Relative luminance 0.091; OKLCH L 46.8% C 0.193 H 280.8°. Best body text is #FFFFFF at 7.43:1 contrast (WCAG AA passes).

Color values

HEX#4E40C1
RGBrgb(78, 64, 193)
HSLhsl(247, 51%, 50%)
HSVhsv(247, 67%, 76%)
CMYKcmyk(59.6%, 66.8%, 0%, 24.3%)
CIE-LABlab(36.24, 42.57, -65.69)
CIE-LCHlch(36.24, 78.28, 302.95°)
OKLaboklab(46.84% 0.0363 -0.1892)
OKLCHoklch(46.84% 0.193 280.8)
XYZxyz(14.5979, 9.1357, 51.4359)
Luminance0.0914 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E40C1 #B3C140
analogous
#4072C1 #4E40C1 #8F40C1
triadic
#4E40C1 #C14E40 #40C14E
tetradic
#4E40C1 #C14072 #B3C140 #40C18F
square
#4E40C1 #C14072 #B3C140 #40C18F
split-complementary
#4E40C1 #C18F40 #72C140
monochromatic
#282166 #3B3094 #4E40C1 #796ED0 #A49CDF

Accessibility & contrast

On white

7.43
#4E40C1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.83
#4E40C1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E40C1
7.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E40C1#FFFFFF#000000##FFFFFF
##4E40C11.007.432.837.43
#FFFFFF7.431.0021.001.00
#0000002.8321.001.0021.00
##FFFFFF7.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005AC5
Deuteranopia (green-blind)
#0050BF
Tritanopia (blue-blind)
#00617B
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #4e40c1;
/* rgb */ color: rgb(78, 64, 193);
/* oklch */ color: oklch(46.8% 0.193 280.8);
Tailwind
colors: {
  custom: {
    50: '#8c76d5',
    500: '#4e40c1',
    950: '#000000',
  },
}
SCSS
$custom: #4e40c1;
$custom-light: #8c76d5;
$custom-dark: #000000;
JSON
{
  "hex": "#4e40c1",
  "rgb": {
    "r": 78,
    "g": 64,
    "b": 193
  },
  "hsl": {
    "h": 246.512,
    "s": 50.988,
    "l": 50.392
  },
  "oklch": {
    "l": 0.46843,
    "c": 0.1926,
    "h": 280.8
  },
  "luminance": 0.09137
}

Semantic roles & 50–950 ramp

primary
#4E40C1
secondary
#C5CB92
accent
#DA4DCB
background
#F9F7FD
surface
#F1EDFA
border
#CBC8D3
text
#0D0814
muted
#7E7B83

Preview Lab

Preview with #4E40C1

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

Preview Lab → · Contrast checker → · Palette generator →

#4E40C1 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva