#4E40A8#4E40A8

#4E40A8 is a dark, vivid blue. Relative luminance 0.081; OKLCH L 44.7% C 0.160 H 284.0°. Best body text is #FFFFFF at 8.01:1 contrast (WCAG AA passes).

Color values

HEX#4E40A8
RGBrgb(78, 64, 168)
HSLhsl(248, 45%, 45%)
HSVhsv(248, 62%, 66%)
CMYKcmyk(53.6%, 61.9%, 0%, 34.1%)
CIE-LABlab(34.22, 34.66, -54.19)
CIE-LCHlch(34.22, 64.33, 302.61°)
OKLaboklab(44.74% 0.0387 -0.1554)
OKLCHoklch(44.74% 0.16 284)
XYZxyz(12.0410, 8.1130, 37.9697)
Luminance0.0811 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E40A8 #9AA840
analogous
#4066A8 #4E40A8 #8240A8
triadic
#4E40A8 #A84E40 #40A84E
tetradic
#4E40A8 #A84066 #9AA840 #40A882
square
#4E40A8 #A84066 #9AA840 #40A882
split-complementary
#4E40A8 #A88240 #66A840
monochromatic
#251E4F #392F7C #4E40A8 #6F62C3 #988ED4

Accessibility & contrast

On white

8.01
#4E40A8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.62
#4E40A8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E40A8
8.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E40A8#FFFFFF#000000##FFFFFF
##4E40A81.008.012.628.01
#FFFFFF8.011.0021.001.00
#0000002.6221.001.0021.00
##FFFFFF8.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054AB
Deuteranopia (green-blind)
#004DA6
Tritanopia (blue-blind)
#29596E
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #4e40a8;
/* rgb */ color: rgb(78, 64, 168);
/* oklch */ color: oklch(44.7% 0.160 284.0);
Tailwind
colors: {
  custom: {
    50: '#8875c3',
    500: '#4e40a8',
    950: '#000000',
  },
}
SCSS
$custom: #4e40a8;
$custom-light: #8875c3;
$custom-dark: #000000;
JSON
{
  "hex": "#4e40a8",
  "rgb": {
    "r": 78,
    "g": 64,
    "b": 168
  },
  "hsl": {
    "h": 248.077,
    "s": 44.828,
    "l": 45.49
  },
  "oklch": {
    "l": 0.44738,
    "c": 0.16014,
    "h": 284
  },
  "luminance": 0.08114
}

Semantic roles & 50–950 ramp

primary
#4E40A8
secondary
#B7BF85
accent
#D553C3
background
#F8F7FC
surface
#F0EDF8
border
#CBC8D1
text
#0C0812
muted
#7D7B81

Preview Lab

Preview with #4E40A8

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

Preview Lab → · Contrast checker → · Palette generator →

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