#4E40B1#4E40B1

#4E40B1 is a mid, vivid blue. Relative luminance 0.085; OKLCH L 45.5% C 0.172 H 282.8°. Best body text is #FFFFFF at 7.80:1 contrast (WCAG AA passes).

Color values

HEX#4E40B1
RGBrgb(78, 64, 177)
HSLhsl(247, 47%, 47%)
HSVhsv(247, 64%, 69%)
CMYKcmyk(55.9%, 63.8%, 0%, 30.6%)
CIE-LABlab(34.92, 37.51, -58.41)
CIE-LCHlch(34.92, 69.42, 302.71°)
OKLaboklab(45.48% 0.038 -0.1678)
OKLCHoklch(45.48% 0.172 282.8)
XYZxyz(12.9087, 8.4600, 42.5392)
Luminance0.0846 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E40B1 #A3B140
analogous
#406AB1 #4E40B1 #8740B1
triadic
#4E40B1 #B14E40 #40B14E
tetradic
#4E40B1 #B1406A #A3B140 #40B187
square
#4E40B1 #B1406A #A3B140 #40B187
split-complementary
#4E40B1 #B18740 #6AB140
monochromatic
#261F57 #3A3084 #4E40B1 #7266C8 #9C93D8

Accessibility & contrast

On white

7.80
#4E40B1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.69
#4E40B1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E40B1
7.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E40B1#FFFFFF#000000##FFFFFF
##4E40B11.007.802.697.80
#FFFFFF7.801.0021.001.00
#0000002.6921.001.0021.00
##FFFFFF7.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056B5
Deuteranopia (green-blind)
#004EAF
Tritanopia (blue-blind)
#1E5C72
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #4e40b1;
/* rgb */ color: rgb(78, 64, 177);
/* oklch */ color: oklch(45.5% 0.172 282.8);
Tailwind
colors: {
  custom: {
    50: '#8976c9',
    500: '#4e40b1',
    950: '#000000',
  },
}
SCSS
$custom: #4e40b1;
$custom-light: #8976c9;
$custom-dark: #000000;
JSON
{
  "hex": "#4e40b1",
  "rgb": {
    "r": 78,
    "g": 64,
    "b": 177
  },
  "hsl": {
    "h": 247.434,
    "s": 46.888,
    "l": 47.255
  },
  "oklch": {
    "l": 0.45475,
    "c": 0.17204,
    "h": 282.8
  },
  "luminance": 0.08461
}

Semantic roles & 50–950 ramp

primary
#4E40B1
secondary
#BCC389
accent
#D751C6
background
#F8F7FC
surface
#F0EDF8
border
#CBC8D1
text
#0C0813
muted
#7D7B82

Preview Lab

Preview with #4E40B1

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

Preview Lab → · Contrast checker → · Palette generator →

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