#4E42A6#4E42A6

#4E42A6 is a dark, vivid blue. Relative luminance 0.083; OKLCH L 44.9% C 0.155 H 283.7°. Best body text is #FFFFFF at 7.91:1 contrast (WCAG AA passes).

Color values

HEX#4E42A6
RGBrgb(78, 66, 166)
HSLhsl(247, 43%, 45%)
HSVhsv(247, 60%, 65%)
CMYKcmyk(53%, 60.2%, 0%, 34.9%)
CIE-LABlab(34.54, 32.80, -52.48)
CIE-LCHlch(34.54, 61.89, 302.01°)
OKLaboklab(44.92% 0.0366 -0.1503)
OKLCHoklch(44.92% 0.155 283.7)
XYZxyz(11.9710, 8.2686, 37.0342)
Luminance0.0827 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E42A6 #9AA642
analogous
#4268A6 #4E42A6 #8042A6
triadic
#4E42A6 #A64E42 #42A64E
tetradic
#4E42A6 #A64268 #9AA642 #42A680
square
#4E42A6 #A64268 #9AA642 #42A680
split-complementary
#4E42A6 #A68042 #68A642
monochromatic
#251F4E #39317A #4E42A6 #6F64C1 #9890D3

Accessibility & contrast

On white

7.91
#4E42A6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.65
#4E42A6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E42A6
7.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E42A6#FFFFFF#000000##FFFFFF
##4E42A61.007.912.657.91
#FFFFFF7.911.0021.001.00
#0000002.6521.001.0021.00
##FFFFFF7.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054A9
Deuteranopia (green-blind)
#004EA4
Tritanopia (blue-blind)
#2A596D
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #4e42a6;
/* rgb */ color: rgb(78, 66, 166);
/* oklch */ color: oklch(44.9% 0.155 283.7);
Tailwind
colors: {
  custom: {
    50: '#8777c1',
    500: '#4e42a6',
    950: '#000000',
  },
}
SCSS
$custom: #4e42a6;
$custom-light: #8777c1;
$custom-dark: #000000;
JSON
{
  "hex": "#4e42a6",
  "rgb": {
    "r": 78,
    "g": 66,
    "b": 166
  },
  "hsl": {
    "h": 247.2,
    "s": 43.103,
    "l": 45.49
  },
  "oklch": {
    "l": 0.44924,
    "c": 0.15474,
    "h": 283.7
  },
  "luminance": 0.08269
}

Semantic roles & 50–950 ramp

primary
#4E42A6
secondary
#B7BE86
accent
#D355C4
background
#F8F7FC
surface
#F0EDF8
border
#CBC8D1
text
#0C0812
muted
#7D7B81

Preview Lab

Preview with #4E42A6

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

Preview Lab → · Contrast checker → · Palette generator →

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