#4E40A0#4E40A0

#4E40A0 is a dark, vivid blue. Relative luminance 0.078; OKLCH L 44.1% C 0.149 H 285.1°. Best body text is #FFFFFF at 8.19:1 contrast (WCAG AA passes).

Color values

HEX#4E40A0
RGBrgb(78, 64, 160)
HSLhsl(249, 43%, 44%)
HSVhsv(249, 60%, 63%)
CMYKcmyk(51.2%, 60%, 0%, 37.3%)
CIE-LABlab(33.61, 32.14, -50.36)
CIE-LCHlch(33.61, 59.75, 302.54°)
OKLaboklab(44.11% 0.039 -0.1441)
OKLCHoklch(44.11% 0.149 285.1)
XYZxyz(11.3186, 7.8240, 34.1647)
Luminance0.0783 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E40A0 #92A040
analogous
#4062A0 #4E40A0 #7E40A0
triadic
#4E40A0 #A04E40 #40A04E
tetradic
#4E40A0 #A04062 #92A040 #40A07E
square
#4E40A0 #A04062 #92A040 #40A07E
split-complementary
#4E40A0 #A07E40 #62A040
monochromatic
#231D49 #392F74 #4E40A0 #6C5EBF #948AD0

Accessibility & contrast

On white

8.19
#4E40A0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.57
#4E40A0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E40A0
8.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E40A0#FFFFFF#000000##FFFFFF
##4E40A01.008.192.578.19
#FFFFFF8.191.0021.001.00
#0000002.5721.001.0021.00
##FFFFFF8.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052A3
Deuteranopia (green-blind)
#004C9E
Tritanopia (blue-blind)
#2F5669
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #4e40a0;
/* rgb */ color: rgb(78, 64, 160);
/* oklch */ color: oklch(44.1% 0.149 285.1);
Tailwind
colors: {
  custom: {
    50: '#8675bd',
    500: '#4e40a0',
    950: '#000000',
  },
}
SCSS
$custom: #4e40a0;
$custom-light: #8675bd;
$custom-dark: #000000;
JSON
{
  "hex": "#4e40a0",
  "rgb": {
    "r": 78,
    "g": 64,
    "b": 160
  },
  "hsl": {
    "h": 248.75,
    "s": 42.857,
    "l": 43.922
  },
  "oklch": {
    "l": 0.44105,
    "c": 0.14933,
    "h": 285.1
  },
  "luminance": 0.07825
}

Semantic roles & 50–950 ramp

primary
#4E40A0
secondary
#B3BB81
accent
#D355C0
background
#F8F7FB
surface
#F0EDF7
border
#CBC8D0
text
#0C0812
muted
#7D7B81

Preview Lab

Preview with #4E40A0

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

Preview Lab → · Contrast checker → · Palette generator →

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