#4E40A2#4E40A2

#4E40A2 is a dark, vivid blue. Relative luminance 0.079; OKLCH L 44.3% C 0.152 H 284.8°. Best body text is #FFFFFF at 8.14:1 contrast (WCAG AA passes).

Color values

HEX#4E40A2
RGBrgb(78, 64, 162)
HSLhsl(249, 43%, 44%)
HSVhsv(249, 60%, 64%)
CMYKcmyk(51.9%, 60.5%, 0%, 36.5%)
CIE-LABlab(33.76, 32.77, -51.33)
CIE-LCHlch(33.76, 60.90, 302.56°)
OKLaboklab(44.26% 0.039 -0.147)
OKLCHoklch(44.26% 0.152 284.8)
XYZxyz(11.4949, 7.8945, 35.0935)
Luminance0.0790 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E40A2 #94A240
analogous
#4063A2 #4E40A2 #7F40A2
triadic
#4E40A2 #A24E40 #40A24E
tetradic
#4E40A2 #A24063 #94A240 #40A27F
square
#4E40A2 #A24063 #94A240 #40A27F
split-complementary
#4E40A2 #A27F40 #63A240
monochromatic
#241D4A #392F76 #4E40A2 #6D5FC0 #958BD1

Accessibility & contrast

On white

8.14
#4E40A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.58
#4E40A2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E40A2
8.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E40A2#FFFFFF#000000##FFFFFF
##4E40A21.008.142.588.14
#FFFFFF8.141.0021.001.00
#0000002.5821.001.0021.00
##FFFFFF8.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052A5
Deuteranopia (green-blind)
#004CA0
Tritanopia (blue-blind)
#2E576B
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #4e40a2;
/* rgb */ color: rgb(78, 64, 162);
/* oklch */ color: oklch(44.3% 0.152 284.8);
Tailwind
colors: {
  custom: {
    50: '#8775be',
    500: '#4e40a2',
    950: '#000000',
  },
}
SCSS
$custom: #4e40a2;
$custom-light: #8775be;
$custom-dark: #000000;
JSON
{
  "hex": "#4e40a2",
  "rgb": {
    "r": 78,
    "g": 64,
    "b": 162
  },
  "hsl": {
    "h": 248.571,
    "s": 43.363,
    "l": 44.314
  },
  "oklch": {
    "l": 0.44261,
    "c": 0.15204,
    "h": 284.8
  },
  "luminance": 0.07895
}

Semantic roles & 50–950 ramp

primary
#4E40A2
secondary
#B4BC82
accent
#D355C1
background
#F8F7FB
surface
#F0EDF7
border
#CBC8D0
text
#0C0812
muted
#7D7B81

Preview Lab

Preview with #4E40A2

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

Preview Lab → · Contrast checker → · Palette generator →

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