#4E40D0#4E40D0

#4E40D0 is a mid, highly saturated blue. Relative luminance 0.098; OKLCH L 48.2% C 0.211 H 279.3°. Best body text is #FFFFFF at 7.07:1 contrast (WCAG AA passes).

Color values

HEX#4E40D0
RGBrgb(78, 64, 208)
HSLhsl(246, 61%, 53%)
HSVhsv(246, 69%, 82%)
CMYKcmyk(62.5%, 69.2%, 0%, 18.4%)
CIE-LABlab(37.55, 47.28, -72.27)
CIE-LCHlch(37.55, 86.37, 303.20°)
OKLaboklab(48.19% 0.0341 -0.2084)
OKLCHoklch(48.19% 0.211 279.3)
XYZxyz(16.3568, 9.8393, 60.6995)
Luminance0.0984 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E40D0 #C2D040
analogous
#407AD0 #4E40D0 #9640D0
triadic
#4E40D0 #D04E40 #40D04E
tetradic
#4E40D0 #D0407A #C2D040 #40D096
square
#4E40D0 #D0407A #C2D040 #40D096
split-complementary
#4E40D0 #D09640 #7AD040
monochromatic
#261E78 #362AA9 #4E40D0 #7C71DC #A9A2E8

Accessibility & contrast

On white

7.07
#4E40D0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.97
#4E40D0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E40D0
7.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E40D0#FFFFFF#000000##FFFFFF
##4E40D01.007.072.977.07
#FFFFFF7.071.0021.001.00
#0000002.9721.001.0021.00
##FFFFFF7.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005ED4
Deuteranopia (green-blind)
#0053CD
Tritanopia (blue-blind)
#006783
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #4e40d0;
/* rgb */ color: rgb(78, 64, 208);
/* oklch */ color: oklch(48.2% 0.211 279.3);
Tailwind
colors: {
  custom: {
    50: '#8e76e0',
    500: '#4e40d0',
    950: '#000000',
  },
}
SCSS
$custom: #4e40d0;
$custom-light: #8e76e0;
$custom-dark: #000000;
JSON
{
  "hex": "#4e40d0",
  "rgb": {
    "r": 78,
    "g": 64,
    "b": 208
  },
  "hsl": {
    "h": 245.833,
    "s": 60.504,
    "l": 53.333
  },
  "oklch": {
    "l": 0.48186,
    "c": 0.21121,
    "h": 279.3
  },
  "luminance": 0.09841
}

Semantic roles & 50–950 ramp

primary
#4E40D0
secondary
#CFD597
accent
#E444D4
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0E0915
muted
#7E7B83

Preview Lab

Preview with #4E40D0

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

Preview Lab → · Contrast checker → · Palette generator →

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