#4C4FA5#4C4FA5

#4C4FA5 is a mid, vivid blue. Relative luminance 0.098; OKLCH L 47.1% C 0.136 H 278.3°. Best body text is #FFFFFF at 7.07:1 contrast (WCAG AA passes).

Color values

HEX#4C4FA5
RGBrgb(76, 79, 165)
HSLhsl(238, 37%, 47%)
HSVhsv(238, 54%, 65%)
CMYKcmyk(53.9%, 52.1%, 0%, 35.3%)
CIE-LABlab(37.56, 23.85, -47.00)
CIE-LCHlch(37.56, 52.70, 296.90°)
OKLaboklab(47.11% 0.0196 -0.1342)
OKLCHoklch(47.11% 0.136 278.3)
XYZxyz(12.5659, 9.8443, 36.8280)
Luminance0.0984 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C4FA5 #A5A24C
analogous
#4C7BA5 #4C4FA5 #764CA5
triadic
#4C4FA5 #A54C4F #4FA54C
tetradic
#4C4FA5 #A54C7B #A5A24C #4CA576
square
#4C4FA5 #A54C7B #A5A24C #4CA576
split-complementary
#4C4FA5 #A5764C #7BA54C
monochromatic
#252751 #393B7B #4C4FA5 #7173BD #9B9CD1

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##4C4FA5#FFFFFF#000000##FFFFFF
##4C4FA51.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)
#225CA8
Deuteranopia (green-blind)
#1655A3
Tritanopia (blue-blind)
#246272
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #4c4fa5;
/* rgb */ color: rgb(76, 79, 165);
/* oklch */ color: oklch(47.1% 0.136 278.3);
Tailwind
colors: {
  custom: {
    50: '#8580c0',
    500: '#4c4fa5',
    950: '#000000',
  },
}
SCSS
$custom: #4c4fa5;
$custom-light: #8580c0;
$custom-dark: #000000;
JSON
{
  "hex": "#4c4fa5",
  "rgb": {
    "r": 76,
    "g": 79,
    "b": 165
  },
  "hsl": {
    "h": 237.978,
    "s": 36.929,
    "l": 47.255
  },
  "oklch": {
    "l": 0.47111,
    "c": 0.13563,
    "h": 278.3
  },
  "luminance": 0.09845
}

Semantic roles & 50–950 ramp

primary
#4C4FA5
secondary
#BDBC8F
accent
#C95BCD
background
#F8F7FB
surface
#F0EEF7
border
#CBC9D0
text
#0C0A12
muted
#7D7C81

Preview Lab

Preview with #4C4FA5

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

Preview Lab → · Contrast checker → · Palette generator →

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