#4E40CF#4E40CF

#4E40CF is a mid, highly saturated blue. Relative luminance 0.098; OKLCH L 48.1% C 0.210 H 279.4°. Best body text is #FFFFFF at 7.10:1 contrast (WCAG AA passes).

Color values

HEX#4E40CF
RGBrgb(78, 64, 207)
HSLhsl(246, 60%, 53%)
HSVhsv(246, 69%, 81%)
CMYKcmyk(62.3%, 69.1%, 0%, 18.8%)
CIE-LABlab(37.46, 46.97, -71.84)
CIE-LCHlch(37.46, 85.83, 303.18°)
OKLaboklab(48.1% 0.0342 -0.2072)
OKLCHoklch(48.1% 0.21 279.4)
XYZxyz(16.2342, 9.7902, 60.0536)
Luminance0.0979 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E40CF #C1CF40
analogous
#4079CF #4E40CF #9540CF
triadic
#4E40CF #CF4E40 #40CF4E
tetradic
#4E40CF #CF4079 #C1CF40 #40CF95
square
#4E40CF #CF4079 #C1CF40 #40CF95
split-complementary
#4E40CF #CF9540 #79CF40
monochromatic
#271E77 #362AA8 #4E40CF #7B71DB #A9A2E8

Accessibility & contrast

On white

7.10
#4E40CF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.96
#4E40CF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E40CF
7.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E40CF#FFFFFF#000000##FFFFFF
##4E40CF1.007.102.967.10
#FFFFFF7.101.0021.001.00
#0000002.9621.001.0021.00
##FFFFFF7.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005ED3
Deuteranopia (green-blind)
#0052CC
Tritanopia (blue-blind)
#006683
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #4e40cf;
/* rgb */ color: rgb(78, 64, 207);
/* oklch */ color: oklch(48.1% 0.210 279.4);
Tailwind
colors: {
  custom: {
    50: '#8e76df',
    500: '#4e40cf',
    950: '#000000',
  },
}
SCSS
$custom: #4e40cf;
$custom-light: #8e76df;
$custom-dark: #000000;
JSON
{
  "hex": "#4e40cf",
  "rgb": {
    "r": 78,
    "g": 64,
    "b": 207
  },
  "hsl": {
    "h": 245.874,
    "s": 59.833,
    "l": 53.137
  },
  "oklch": {
    "l": 0.48095,
    "c": 0.20999,
    "h": 279.4
  },
  "luminance": 0.09791
}

Semantic roles & 50–950 ramp

primary
#4E40CF
secondary
#CED497
accent
#E345D4
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0E0915
muted
#7E7B83

Preview Lab

Preview with #4E40CF

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

Preview Lab → · Contrast checker → · Palette generator →

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