#4D478C#4D478C

#4D478C is a dark, moderate blue. Relative luminance 0.080; OKLCH L 43.9% C 0.111 H 284.8°. Best body text is #FFFFFF at 8.09:1 contrast (WCAG AA passes).

Color values

HEX#4D478C
RGBrgb(77, 71, 140)
HSLhsl(245, 33%, 41%)
HSVhsv(245, 49%, 55%)
CMYKcmyk(45%, 49.3%, 0%, 45.1%)
CIE-LABlab(33.94, 21.17, -37.69)
CIE-LCHlch(33.94, 43.23, 299.32°)
OKLaboklab(43.89% 0.0283 -0.1069)
OKLCHoklch(43.89% 0.111 284.8)
XYZxyz(10.0461, 7.9773, 25.8163)
Luminance0.0798 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D478C #868C47
analogous
#47648C #4D478C #70478C
triadic
#4D478C #8C4D47 #478C4D
tetradic
#4D478C #8C4764 #868C47 #478C70
square
#4D478C #8C4764 #868C47 #478C70
split-complementary
#4D478C #8C7047 #648C47
monochromatic
#201E3B #373263 #4D478C #6861AF #8F8AC4

Accessibility & contrast

On white

8.09
#4D478C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.60
#4D478C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D478C
8.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D478C#FFFFFF#000000##FFFFFF
##4D478C1.008.092.608.09
#FFFFFF8.091.0021.001.00
#0000002.6021.001.0021.00
##FFFFFF8.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2B528E
Deuteranopia (green-blind)
#294E8A
Tritanopia (blue-blind)
#395563
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #4d478c;
/* rgb */ color: rgb(77, 71, 140);
/* oklch */ color: oklch(43.9% 0.111 284.8);
Tailwind
colors: {
  custom: {
    50: '#837aae',
    500: '#4d478c',
    950: '#000000',
  },
}
SCSS
$custom: #4d478c;
$custom-light: #837aae;
$custom-dark: #000000;
JSON
{
  "hex": "#4d478c",
  "rgb": {
    "r": 77,
    "g": 71,
    "b": 140
  },
  "hsl": {
    "h": 245.217,
    "s": 32.701,
    "l": 41.373
  },
  "oklch": {
    "l": 0.4389,
    "c": 0.11056,
    "h": 284.8
  },
  "luminance": 0.07978
}

Semantic roles & 50–950 ramp

primary
#4D478C
secondary
#ABAF80
accent
#C95FC0
background
#F8F7FA
surface
#EFEDF4
border
#CAC8CE
text
#0B0910
muted
#7C7B7F

Preview Lab

Preview with #4D478C

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

Preview Lab → · Contrast checker → · Palette generator →

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