#4E42B2#4E42B2

#4E42B2 is a mid, vivid blue. Relative luminance 0.087; OKLCH L 45.9% C 0.171 H 282.2°. Best body text is #FFFFFF at 7.65:1 contrast (WCAG AA passes).

Color values

HEX#4E42B2
RGBrgb(78, 66, 178)
HSLhsl(246, 46%, 48%)
HSVhsv(246, 63%, 70%)
CMYKcmyk(56.2%, 62.9%, 0%, 30.2%)
CIE-LABlab(35.46, 36.62, -58.13)
CIE-LCHlch(35.46, 68.71, 302.21°)
OKLaboklab(45.89% 0.036 -0.167)
OKLCHoklch(45.89% 0.171 282.2)
XYZxyz(13.1235, 8.7297, 43.1043)
Luminance0.0873 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E42B2 #A6B242
analogous
#426EB2 #4E42B2 #8642B2
triadic
#4E42B2 #B24E42 #42B24E
tetradic
#4E42B2 #B2426E #A6B242 #42B286
square
#4E42B2 #B2426E #A6B242 #42B286
split-complementary
#4E42B2 #B28642 #6EB242
monochromatic
#272159 #3A3185 #4E42B2 #746AC8 #9D96D8

Accessibility & contrast

On white

7.65
#4E42B2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.75
#4E42B2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E42B2
7.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E42B2#FFFFFF#000000##FFFFFF
##4E42B21.007.652.757.65
#FFFFFF7.651.0021.001.00
#0000002.7521.001.0021.00
##FFFFFF7.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057B6
Deuteranopia (green-blind)
#004FB0
Tritanopia (blue-blind)
#1C5D74
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #4e42b2;
/* rgb */ color: rgb(78, 66, 178);
/* oklch */ color: oklch(45.9% 0.171 282.2);
Tailwind
colors: {
  custom: {
    50: '#8977ca',
    500: '#4e42b2',
    950: '#000000',
  },
}
SCSS
$custom: #4e42b2;
$custom-light: #8977ca;
$custom-dark: #000000;
JSON
{
  "hex": "#4e42b2",
  "rgb": {
    "r": 78,
    "g": 66,
    "b": 178
  },
  "hsl": {
    "h": 246.429,
    "s": 45.902,
    "l": 47.843
  },
  "oklch": {
    "l": 0.4589,
    "c": 0.1708,
    "h": 282.2
  },
  "luminance": 0.0873
}

Semantic roles & 50–950 ramp

primary
#4E42B2
secondary
#BEC48C
accent
#D652C7
background
#F8F7FC
surface
#F0EDF8
border
#CBC8D1
text
#0C0913
muted
#7D7B82

Preview Lab

Preview with #4E42B2

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

Preview Lab → · Contrast checker → · Palette generator →

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