#4E40D3#4E40D3

#4E40D3 is a mid, highly saturated blue. Relative luminance 0.100; OKLCH L 48.5% C 0.215 H 279.0°. Best body text is #FFFFFF at 7.00:1 contrast (WCAG AA passes).

Color values

HEX#4E40D3
RGBrgb(78, 64, 211)
HSLhsl(246, 63%, 54%)
HSVhsv(246, 70%, 83%)
CMYKcmyk(63%, 69.7%, 0%, 17.3%)
CIE-LABlab(37.82, 48.22, -73.56)
CIE-LCHlch(37.82, 87.96, 303.25°)
OKLaboklab(48.46% 0.0336 -0.2122)
OKLCHoklch(48.46% 0.215 279)
XYZxyz(16.7294, 9.9883, 62.6617)
Luminance0.0999 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E40D3 #C5D340
analogous
#407CD3 #4E40D3 #9840D3
triadic
#4E40D3 #D34E40 #40D34E
tetradic
#4E40D3 #D3407C #C5D340 #40D398
square
#4E40D3 #D3407C #C5D340 #40D398
split-complementary
#4E40D3 #D39840 #7CD340
monochromatic
#261D7C #3528AE #4E40D3 #7C72DE #AAA3EA

Accessibility & contrast

On white

7.00
#4E40D3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

3.00
#4E40D3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4E40D3
7.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E40D3#FFFFFF#000000##FFFFFF
##4E40D31.007.003.007.00
#FFFFFF7.001.0021.001.00
#0000003.0021.001.0021.00
##FFFFFF7.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FD7
Deuteranopia (green-blind)
#0053D0
Tritanopia (blue-blind)
#006885
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #4e40d3;
/* rgb */ color: rgb(78, 64, 211);
/* oklch */ color: oklch(48.5% 0.215 279.0);
Tailwind
colors: {
  custom: {
    50: '#8f77e2',
    500: '#4e40d3',
    950: '#000000',
  },
}
SCSS
$custom: #4e40d3;
$custom-light: #8f77e2;
$custom-dark: #000000;
JSON
{
  "hex": "#4e40d3",
  "rgb": {
    "r": 78,
    "g": 64,
    "b": 211
  },
  "hsl": {
    "h": 245.714,
    "s": 62.553,
    "l": 53.922
  },
  "oklch": {
    "l": 0.4846,
    "c": 0.21487,
    "h": 279
  },
  "luminance": 0.0999
}

Semantic roles & 50–950 ramp

primary
#4E40D3
secondary
#D1D798
accent
#E642D6
background
#F9F7FE
surface
#F2EDFC
border
#CCC8D5
text
#0E0915
muted
#7E7B84

Preview Lab

Preview with #4E40D3

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

Preview Lab → · Contrast checker → · Palette generator →

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