#4E40C4#4E40C4

#4E40C4 is a mid, vivid blue. Relative luminance 0.093; OKLCH L 47.1% C 0.196 H 280.5°. Best body text is #FFFFFF at 7.36:1 contrast (WCAG AA passes).

Color values

HEX#4E40C4
RGBrgb(78, 64, 196)
HSLhsl(246, 53%, 51%)
HSVhsv(246, 67%, 77%)
CMYKcmyk(60.2%, 67.3%, 0%, 23.1%)
CIE-LABlab(36.50, 43.52, -67.02)
CIE-LCHlch(36.50, 79.91, 303.00°)
OKLaboklab(47.11% 0.0359 -0.1931)
OKLCHoklch(47.11% 0.196 280.5)
XYZxyz(14.9359, 9.2709, 53.2163)
Luminance0.0927 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E40C4 #B6C440
analogous
#4074C4 #4E40C4 #9040C4
triadic
#4E40C4 #C44E40 #40C44E
tetradic
#4E40C4 #C44074 #B6C440 #40C490
square
#4E40C4 #C44074 #B6C440 #40C490
split-complementary
#4E40C4 #C49040 #74C440
monochromatic
#282069 #3A2F98 #4E40C4 #796FD2 #A59EE1

Accessibility & contrast

On white

7.36
#4E40C4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.85
#4E40C4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E40C4
7.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E40C4#FFFFFF#000000##FFFFFF
##4E40C41.007.362.857.36
#FFFFFF7.361.0021.001.00
#0000002.8521.001.0021.00
##FFFFFF7.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BC8
Deuteranopia (green-blind)
#0051C1
Tritanopia (blue-blind)
#00627D
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #4e40c4;
/* rgb */ color: rgb(78, 64, 196);
/* oklch */ color: oklch(47.1% 0.196 280.5);
Tailwind
colors: {
  custom: {
    50: '#8c76d7',
    500: '#4e40c4',
    950: '#000000',
  },
}
SCSS
$custom: #4e40c4;
$custom-light: #8c76d7;
$custom-dark: #000000;
JSON
{
  "hex": "#4e40c4",
  "rgb": {
    "r": 78,
    "g": 64,
    "b": 196
  },
  "hsl": {
    "h": 246.364,
    "s": 52.8,
    "l": 50.98
  },
  "oklch": {
    "l": 0.47107,
    "c": 0.19637,
    "h": 280.5
  },
  "luminance": 0.09272
}

Semantic roles & 50–950 ramp

primary
#4E40C4
secondary
#C7CD93
accent
#DC4CCD
background
#F9F7FD
surface
#F2EDFA
border
#CCC8D3
text
#0D0814
muted
#7E7B83

Preview Lab

Preview with #4E40C4

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

Preview Lab → · Contrast checker → · Palette generator →

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