#4E42B8#4E42B8

#4E42B8 is a mid, vivid blue. Relative luminance 0.090; OKLCH L 46.4% C 0.179 H 281.5°. Best body text is #FFFFFF at 7.51:1 contrast (WCAG AA passes).

Color values

HEX#4E42B8
RGBrgb(78, 66, 184)
HSLhsl(246, 47%, 49%)
HSVhsv(246, 64%, 72%)
CMYKcmyk(57.6%, 64.1%, 0%, 27.8%)
CIE-LABlab(35.94, 38.54, -60.90)
CIE-LCHlch(35.94, 72.07, 302.33°)
OKLaboklab(46.39% 0.0355 -0.1751)
OKLCHoklch(46.39% 0.179 281.5)
XYZxyz(13.7391, 8.9759, 46.3467)
Luminance0.0898 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E42B8 #ACB842
analogous
#4271B8 #4E42B8 #8942B8
triadic
#4E42B8 #B84E42 #42B84E
tetradic
#4E42B8 #B84271 #ACB842 #42B889
square
#4E42B8 #B84271 #ACB842 #42B889
split-complementary
#4E42B8 #B88942 #71B842
monochromatic
#28225E #3B328B #4E42B8 #766DCB #A09ADB

Accessibility & contrast

On white

7.51
#4E42B8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.80
#4E42B8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E42B8
7.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E42B8#FFFFFF#000000##FFFFFF
##4E42B81.007.512.807.51
#FFFFFF7.511.0021.001.00
#0000002.8021.001.0021.00
##FFFFFF7.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059BC
Deuteranopia (green-blind)
#0050B6
Tritanopia (blue-blind)
#115F77
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #4e42b8;
/* rgb */ color: rgb(78, 66, 184);
/* oklch */ color: oklch(46.4% 0.179 281.5);
Tailwind
colors: {
  custom: {
    50: '#8a77ce',
    500: '#4e42b8',
    950: '#000000',
  },
}
SCSS
$custom: #4e42b8;
$custom-light: #8a77ce;
$custom-dark: #000000;
JSON
{
  "hex": "#4e42b8",
  "rgb": {
    "r": 78,
    "g": 66,
    "b": 184
  },
  "hsl": {
    "h": 246.102,
    "s": 47.2,
    "l": 49.02
  },
  "oklch": {
    "l": 0.46389,
    "c": 0.17866,
    "h": 281.5
  },
  "luminance": 0.08977
}

Semantic roles & 50–950 ramp

primary
#4E42B8
secondary
#C1C78F
accent
#D751C9
background
#F9F7FC
surface
#F1EDF9
border
#CBC8D2
text
#0D0914
muted
#7E7B82

Preview Lab

Preview with #4E42B8

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

Preview Lab → · Contrast checker → · Palette generator →

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