#4E42A2#4E42A2

#4E42A2 is a dark, vivid blue. Relative luminance 0.081; OKLCH L 44.6% C 0.149 H 284.3°. Best body text is #FFFFFF at 8.00:1 contrast (WCAG AA passes).

Color values

HEX#4E42A2
RGBrgb(78, 66, 162)
HSLhsl(248, 42%, 45%)
HSVhsv(248, 59%, 64%)
CMYKcmyk(51.9%, 59.3%, 0%, 36.5%)
CIE-LABlab(34.24, 31.53, -50.55)
CIE-LCHlch(34.24, 59.58, 301.95°)
OKLaboklab(44.61% 0.0368 -0.1447)
OKLCHoklch(44.61% 0.149 284.3)
XYZxyz(11.6097, 8.1242, 35.1318)
Luminance0.0813 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E42A2 #96A242
analogous
#4266A2 #4E42A2 #7E42A2
triadic
#4E42A2 #A24E42 #42A24E
tetradic
#4E42A2 #A24266 #96A242 #42A27E
square
#4E42A2 #A24266 #96A242 #42A27E
split-complementary
#4E42A2 #A27E42 #66A242
monochromatic
#241F4B #393077 #4E42A2 #6E62BF #968ED1

Accessibility & contrast

On white

8.00
#4E42A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.63
#4E42A2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E42A2
8.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E42A2#FFFFFF#000000##FFFFFF
##4E42A21.008.002.638.00
#FFFFFF8.001.0021.001.00
#0000002.6321.001.0021.00
##FFFFFF8.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053A5
Deuteranopia (green-blind)
#004DA0
Tritanopia (blue-blind)
#2E586B
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #4e42a2;
/* rgb */ color: rgb(78, 66, 162);
/* oklch */ color: oklch(44.6% 0.149 284.3);
Tailwind
colors: {
  custom: {
    50: '#8777be',
    500: '#4e42a2',
    950: '#000000',
  },
}
SCSS
$custom: #4e42a2;
$custom-light: #8777be;
$custom-dark: #000000;
JSON
{
  "hex": "#4e42a2",
  "rgb": {
    "r": 78,
    "g": 66,
    "b": 162
  },
  "hsl": {
    "h": 247.5,
    "s": 42.105,
    "l": 44.706
  },
  "oklch": {
    "l": 0.44613,
    "c": 0.14928,
    "h": 284.3
  },
  "luminance": 0.08125
}

Semantic roles & 50–950 ramp

primary
#4E42A2
secondary
#B5BC84
accent
#D256C2
background
#F8F7FB
surface
#F0EDF7
border
#CBC8D0
text
#0C0812
muted
#7D7B81

Preview Lab

Preview with #4E42A2

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

Preview Lab → · Contrast checker → · Palette generator →

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