#4E40C3#4E40C3

#4E40C3 is a mid, vivid blue. Relative luminance 0.092; OKLCH L 47.0% C 0.195 H 280.6°. Best body text is #FFFFFF at 7.38:1 contrast (WCAG AA passes).

Color values

HEX#4E40C3
RGBrgb(78, 64, 195)
HSLhsl(246, 52%, 51%)
HSVhsv(246, 67%, 76%)
CMYKcmyk(60%, 67.2%, 0%, 23.5%)
CIE-LABlab(36.42, 43.20, -66.58)
CIE-LCHlch(36.42, 79.37, 302.98°)
OKLaboklab(47.02% 0.036 -0.1918)
OKLCHoklch(47.02% 0.195 280.6)
XYZxyz(14.8225, 9.2256, 52.6188)
Luminance0.0923 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E40C3 #B5C340
analogous
#4073C3 #4E40C3 #8F40C3
triadic
#4E40C3 #C34E40 #40C34E
tetradic
#4E40C3 #C34073 #B5C340 #40C38F
square
#4E40C3 #C34073 #B5C340 #40C38F
split-complementary
#4E40C3 #C38F40 #73C340
monochromatic
#282168 #3A2F97 #4E40C3 #796FD2 #A49DE0

Accessibility & contrast

On white

7.38
#4E40C3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4E40C3
7.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E40C3#FFFFFF#000000##FFFFFF
##4E40C31.007.382.857.38
#FFFFFF7.381.0021.001.00
#0000002.8521.001.0021.00
##FFFFFF7.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005AC7
Deuteranopia (green-blind)
#0051C0
Tritanopia (blue-blind)
#00627C
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #4e40c3;
/* rgb */ color: rgb(78, 64, 195);
/* oklch */ color: oklch(47.0% 0.195 280.6);
Tailwind
colors: {
  custom: {
    50: '#8c76d6',
    500: '#4e40c3',
    950: '#000000',
  },
}
SCSS
$custom: #4e40c3;
$custom-light: #8c76d6;
$custom-dark: #000000;
JSON
{
  "hex": "#4e40c3",
  "rgb": {
    "r": 78,
    "g": 64,
    "b": 195
  },
  "hsl": {
    "h": 246.412,
    "s": 52.191,
    "l": 50.784
  },
  "oklch": {
    "l": 0.47019,
    "c": 0.19512,
    "h": 280.6
  },
  "luminance": 0.09227
}

Semantic roles & 50–950 ramp

primary
#4E40C3
secondary
#C6CC92
accent
#DC4CCC
background
#F9F7FD
surface
#F1EDFA
border
#CBC8D3
text
#0D0814
muted
#7E7B83

Preview Lab

Preview with #4E40C3

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

Preview Lab → · Contrast checker → · Palette generator →

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