#545495#545495

#545495 is a mid, moderate blue. Relative luminance 0.104; OKLCH L 47.7% C 0.103 H 281.8°. Best body text is #FFFFFF at 6.82:1 contrast (WCAG AA passes).

Color values

HEX#545495
RGBrgb(84, 84, 149)
HSLhsl(240, 28%, 46%)
HSVhsv(240, 44%, 58%)
CMYKcmyk(43.6%, 43.6%, 0%, 41.6%)
CIE-LABlab(38.54, 17.47, -35.80)
CIE-LCHlch(38.54, 39.83, 296.01°)
OKLaboklab(47.7% 0.021 -0.1011)
OKLCHoklch(47.7% 0.103 281.8)
XYZxyz(12.2497, 10.3949, 29.7889)
Luminance0.1040 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#545495 #959554
analogous
#547495 #545495 #745495
triadic
#545495 #955454 #549554
tetradic
#545495 #955474 #959554 #549574
square
#545495 #955474 #959554 #549574
split-complementary
#545495 #957454 #749554
monochromatic
#282847 #3E3E6E #545495 #7575B1 #9C9CC7

Accessibility & contrast

On white

6.82
#545495 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.08
#545495 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #545495
6.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##545495#FFFFFF#000000##FFFFFF
##5454951.006.823.086.82
#FFFFFF6.821.0021.001.00
#0000003.0821.001.0021.00
##FFFFFF6.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3C5D97
Deuteranopia (green-blind)
#395894
Tritanopia (blue-blind)
#40616D
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #545495;
/* rgb */ color: rgb(84, 84, 149);
/* oklch */ color: oklch(47.7% 0.103 281.8);
Tailwind
colors: {
  custom: {
    50: '#8784b4',
    500: '#545495',
    950: '#000000',
  },
}
SCSS
$custom: #545495;
$custom-light: #8784b4;
$custom-dark: #000000;
JSON
{
  "hex": "#545495",
  "rgb": {
    "r": 84,
    "g": 84,
    "b": 149
  },
  "hsl": {
    "h": 240,
    "s": 27.897,
    "l": 45.686
  },
  "oklch": {
    "l": 0.47695,
    "c": 0.10327,
    "h": 281.8
  },
  "luminance": 0.10395
}

Semantic roles & 50–950 ramp

primary
#545495
secondary
#B4B490
accent
#C464C4
background
#F8F8FB
surface
#F0EFF6
border
#CBCAD0
text
#0C0A11
muted
#7D7C80

Preview Lab

Preview with #545495

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

Preview Lab → · Contrast checker → · Palette generator →

#545495 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva