#4E40B2#4E40B2

#4E40B2 is a mid, vivid blue. Relative luminance 0.085; OKLCH L 45.6% C 0.173 H 282.6°. Best body text is #FFFFFF at 7.78:1 contrast (WCAG AA passes).

Color values

HEX#4E40B2
RGBrgb(78, 64, 178)
HSLhsl(247, 47%, 47%)
HSVhsv(247, 64%, 70%)
CMYKcmyk(56.2%, 64%, 0%, 30.2%)
CIE-LABlab(35.00, 37.83, -58.87)
CIE-LCHlch(35.00, 69.98, 302.72°)
OKLaboklab(45.56% 0.0379 -0.1691)
OKLCHoklch(45.56% 0.173 282.6)
XYZxyz(13.0087, 8.5000, 43.0660)
Luminance0.0850 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E40B2 #A4B240
analogous
#406BB2 #4E40B2 #8740B2
triadic
#4E40B2 #B24E40 #40B24E
tetradic
#4E40B2 #B2406B #A4B240 #40B287
square
#4E40B2 #B2406B #A4B240 #40B287
split-complementary
#4E40B2 #B28740 #6BB240
monochromatic
#272058 #3A3085 #4E40B2 #7367C8 #9C94D8

Accessibility & contrast

On white

7.78
#4E40B2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.70
#4E40B2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E40B2
7.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E40B2#FFFFFF#000000##FFFFFF
##4E40B21.007.782.707.78
#FFFFFF7.781.0021.001.00
#0000002.7021.001.0021.00
##FFFFFF7.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056B6
Deuteranopia (green-blind)
#004EB0
Tritanopia (blue-blind)
#1D5C73
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #4e40b2;
/* rgb */ color: rgb(78, 64, 178);
/* oklch */ color: oklch(45.6% 0.173 282.6);
Tailwind
colors: {
  custom: {
    50: '#8976ca',
    500: '#4e40b2',
    950: '#000000',
  },
}
SCSS
$custom: #4e40b2;
$custom-light: #8976ca;
$custom-dark: #000000;
JSON
{
  "hex": "#4e40b2",
  "rgb": {
    "r": 78,
    "g": 64,
    "b": 178
  },
  "hsl": {
    "h": 247.368,
    "s": 47.107,
    "l": 47.451
  },
  "oklch": {
    "l": 0.45558,
    "c": 0.17335,
    "h": 282.6
  },
  "luminance": 0.08501
}

Semantic roles & 50–950 ramp

primary
#4E40B2
secondary
#BDC48A
accent
#D751C6
background
#F8F7FC
surface
#F0EDF8
border
#CBC8D1
text
#0D0813
muted
#7D7B82

Preview Lab

Preview with #4E40B2

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

Preview Lab → · Contrast checker → · Palette generator →

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