#4E4796#4E4796

#4E4796 is a dark, vivid blue. Relative luminance 0.083; OKLCH L 44.7% C 0.125 H 284.1°. Best body text is #FFFFFF at 7.88:1 contrast (WCAG AA passes).

Color values

HEX#4E4796
RGBrgb(78, 71, 150)
HSLhsl(245, 36%, 43%)
HSVhsv(245, 53%, 59%)
CMYKcmyk(48%, 52.7%, 0%, 41.2%)
CIE-LABlab(34.66, 24.56, -42.63)
CIE-LCHlch(34.66, 49.20, 299.95°)
OKLaboklab(44.66% 0.0305 -0.1214)
OKLCHoklch(44.66% 0.125 284.1)
XYZxyz(10.8985, 8.3277, 29.8814)
Luminance0.0833 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E4796 #8F9647
analogous
#476796 #4E4796 #754796
triadic
#4E4796 #964E47 #47964E
tetradic
#4E4796 #964767 #8F9647 #479675
square
#4E4796 #964767 #8F9647 #479675
split-complementary
#4E4796 #967547 #679647
monochromatic
#232043 #38336C #4E4796 #6C64B6 #938EC9

Accessibility & contrast

On white

7.88
#4E4796 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.67
#4E4796 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E4796
7.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E4796#FFFFFF#000000##FFFFFF
##4E47961.007.882.677.88
#FFFFFF7.881.0021.001.00
#0000002.6721.001.0021.00
##FFFFFF7.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#215499
Deuteranopia (green-blind)
#1E4F94
Tritanopia (blue-blind)
#365867
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #4e4796;
/* rgb */ color: rgb(78, 71, 150);
/* oklch */ color: oklch(44.7% 0.125 284.1);
Tailwind
colors: {
  custom: {
    50: '#847ab5',
    500: '#4e4796',
    950: '#000000',
  },
}
SCSS
$custom: #4e4796;
$custom-light: #847ab5;
$custom-dark: #000000;
JSON
{
  "hex": "#4e4796",
  "rgb": {
    "r": 78,
    "g": 71,
    "b": 150
  },
  "hsl": {
    "h": 245.316,
    "s": 35.747,
    "l": 43.333
  },
  "oklch": {
    "l": 0.44657,
    "c": 0.12514,
    "h": 284.1
  },
  "luminance": 0.08328
}

Semantic roles & 50–950 ramp

primary
#4E4796
secondary
#B1B584
accent
#CC5CC2
background
#F8F7FB
surface
#F0EDF6
border
#CBC8D0
text
#0B0911
muted
#7C7B80

Preview Lab

Preview with #4E4796

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

Preview Lab → · Contrast checker → · Palette generator →

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