#4E509F#4E509F

#4E509F is a mid, vivid blue. Relative luminance 0.099; OKLCH L 47.0% C 0.125 H 279.3°. Best body text is #FFFFFF at 7.07:1 contrast (WCAG AA passes).

Color values

HEX#4E509F
RGBrgb(78, 80, 159)
HSLhsl(239, 34%, 46%)
HSVhsv(239, 51%, 62%)
CMYKcmyk(50.9%, 49.7%, 0%, 37.6%)
CIE-LABlab(37.59, 21.69, -43.36)
CIE-LCHlch(37.59, 48.48, 296.58°)
OKLaboklab(47.05% 0.0203 -0.1234)
OKLCHoklch(47.05% 0.125 279.3)
XYZxyz(12.2666, 9.8595, 34.0509)
Luminance0.0986 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E509F #9F9D4E
analogous
#4E799F #4E509F #754E9F
triadic
#4E509F #9F4E50 #509F4E
tetradic
#4E509F #9F4E79 #9F9D4E #4E9F75
square
#4E509F #9F4E79 #9F9D4E #4E9F75
split-complementary
#4E509F #9F754E #799F4E
monochromatic
#26274D #3A3B76 #4E509F #7173B9 #9A9BCD

Accessibility & contrast

On white

7.07
#4E509F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.97
#4E509F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E509F
7.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E509F#FFFFFF#000000##FFFFFF
##4E509F1.007.072.977.07
#FFFFFF7.071.0021.001.00
#0000002.9721.001.0021.00
##FFFFFF7.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2C5CA2
Deuteranopia (green-blind)
#24559D
Tritanopia (blue-blind)
#2E6170
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #4e509f;
/* rgb */ color: rgb(78, 80, 159);
/* oklch */ color: oklch(47.0% 0.125 279.3);
Tailwind
colors: {
  custom: {
    50: '#8581bc',
    500: '#4e509f',
    950: '#000000',
  },
}
SCSS
$custom: #4e509f;
$custom-light: #8581bc;
$custom-dark: #000000;
JSON
{
  "hex": "#4e509f",
  "rgb": {
    "r": 78,
    "g": 80,
    "b": 159
  },
  "hsl": {
    "h": 238.519,
    "s": 34.177,
    "l": 46.471
  },
  "oklch": {
    "l": 0.47046,
    "c": 0.1251,
    "h": 279.3
  },
  "luminance": 0.0986
}

Semantic roles & 50–950 ramp

primary
#4E509F
secondary
#BAB98F
accent
#C85ECA
background
#F8F7FB
surface
#F0EEF6
border
#CBC9D0
text
#0B0A12
muted
#7C7C81

Preview Lab

Preview with #4E509F

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

Preview Lab → · Contrast checker → · Palette generator →

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