#4E40C2#4E40C2

#4E40C2 is a mid, vivid blue. Relative luminance 0.092; OKLCH L 46.9% C 0.194 H 280.7°. Best body text is #FFFFFF at 7.40:1 contrast (WCAG AA passes).

Color values

HEX#4E40C2
RGBrgb(78, 64, 194)
HSLhsl(246, 52%, 51%)
HSVhsv(246, 67%, 76%)
CMYKcmyk(59.8%, 67%, 0%, 23.9%)
CIE-LABlab(36.33, 42.89, -66.13)
CIE-LCHlch(36.33, 78.82, 302.96°)
OKLaboklab(46.93% 0.0361 -0.1905)
OKLCHoklch(46.93% 0.194 280.7)
XYZxyz(14.7098, 9.1805, 52.0253)
Luminance0.0918 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E40C2 #B4C240
analogous
#4073C2 #4E40C2 #8F40C2
triadic
#4E40C2 #C24E40 #40C24E
tetradic
#4E40C2 #C24073 #B4C240 #40C28F
square
#4E40C2 #C24073 #B4C240 #40C28F
split-complementary
#4E40C2 #C28F40 #73C240
monochromatic
#282167 #3B3095 #4E40C2 #796ED1 #A49DE0

Accessibility & contrast

On white

7.40
#4E40C2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.84
#4E40C2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E40C2
7.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E40C2#FFFFFF#000000##FFFFFF
##4E40C21.007.402.847.40
#FFFFFF7.401.0021.001.00
#0000002.8421.001.0021.00
##FFFFFF7.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005AC6
Deuteranopia (green-blind)
#0051BF
Tritanopia (blue-blind)
#00627B
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #4e40c2;
/* rgb */ color: rgb(78, 64, 194);
/* oklch */ color: oklch(46.9% 0.194 280.7);
Tailwind
colors: {
  custom: {
    50: '#8c76d5',
    500: '#4e40c2',
    950: '#000000',
  },
}
SCSS
$custom: #4e40c2;
$custom-light: #8c76d5;
$custom-dark: #000000;
JSON
{
  "hex": "#4e40c2",
  "rgb": {
    "r": 78,
    "g": 64,
    "b": 194
  },
  "hsl": {
    "h": 246.462,
    "s": 51.587,
    "l": 50.588
  },
  "oklch": {
    "l": 0.46931,
    "c": 0.19385,
    "h": 280.7
  },
  "luminance": 0.09182
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #4E40C2

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

Preview Lab → · Contrast checker → · Palette generator →

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