#4E4798#4E4798

#4E4798 is a dark, vivid blue. Relative luminance 0.084; OKLCH L 44.8% C 0.128 H 283.9°. Best body text is #FFFFFF at 7.84:1 contrast (WCAG AA passes).

Color values

HEX#4E4798
RGBrgb(78, 71, 152)
HSLhsl(245, 36%, 44%)
HSVhsv(245, 53%, 60%)
CMYKcmyk(48.7%, 53.3%, 0%, 40.4%)
CIE-LABlab(34.79, 25.20, -43.63)
CIE-LCHlch(34.79, 50.39, 300.01°)
OKLaboklab(44.8% 0.0307 -0.1243)
OKLCHoklch(44.8% 0.128 283.9)
XYZxyz(11.0609, 8.3926, 30.7368)
Luminance0.0839 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E4798 #919847
analogous
#476898 #4E4798 #764798
triadic
#4E4798 #984E47 #47984E
tetradic
#4E4798 #984768 #919847 #479876
square
#4E4798 #984768 #919847 #479876
split-complementary
#4E4798 #987647 #689847
monochromatic
#232045 #39346E #4E4798 #6C65B7 #948FCB

Accessibility & contrast

On white

7.84
#4E4798 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.68
#4E4798 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E4798
7.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E4798#FFFFFF#000000##FFFFFF
##4E47981.007.842.687.84
#FFFFFF7.841.0021.001.00
#0000002.6821.001.0021.00
##FFFFFF7.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1F549B
Deuteranopia (green-blind)
#1A4F96
Tritanopia (blue-blind)
#345968
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #4e4798;
/* rgb */ color: rgb(78, 71, 152);
/* oklch */ color: oklch(44.8% 0.128 283.9);
Tailwind
colors: {
  custom: {
    50: '#857ab7',
    500: '#4e4798',
    950: '#000000',
  },
}
SCSS
$custom: #4e4798;
$custom-light: #857ab7;
$custom-dark: #000000;
JSON
{
  "hex": "#4e4798",
  "rgb": {
    "r": 78,
    "g": 71,
    "b": 152
  },
  "hsl": {
    "h": 245.185,
    "s": 36.323,
    "l": 43.725
  },
  "oklch": {
    "l": 0.44797,
    "c": 0.12804,
    "h": 283.9
  },
  "luminance": 0.08393
}

Semantic roles & 50–950 ramp

primary
#4E4798
secondary
#B2B685
accent
#CC5BC3
background
#F8F7FB
surface
#F0EDF6
border
#CBC8D0
text
#0B0911
muted
#7C7B80

Preview Lab

Preview with #4E4798

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

Preview Lab → · Contrast checker → · Palette generator →

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