#545CB4#545CB4

#545CB4 is a mid, vivid blue. Relative luminance 0.128; OKLCH L 51.3% C 0.137 H 276.5°. Best body text is #FFFFFF at 5.89:1 contrast (WCAG AA passes).

Color values

HEX#545CB4
RGBrgb(84, 92, 180)
HSLhsl(235, 39%, 52%)
HSVhsv(235, 53%, 71%)
CMYKcmyk(53.3%, 48.9%, 0%, 29.4%)
CIE-LABlab(42.51, 22.25, -47.90)
CIE-LCHlch(42.51, 52.81, 294.92°)
OKLaboklab(51.3% 0.0156 -0.1365)
OKLCHoklch(51.3% 0.137 276.5)
XYZxyz(15.7189, 12.8334, 44.8200)
Luminance0.1283 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#545CB4 #B4AC54
analogous
#548CB4 #545CB4 #7C54B4
triadic
#545CB4 #B4545C #5CB454
tetradic
#545CB4 #B4548C #B4AC54 #54B47C
square
#545CB4 #B4548C #B4AC54 #54B47C
split-complementary
#545CB4 #B47C54 #8CB454
monochromatic
#2B3062 #3E448D #545CB4 #7F85C7 #A9ADD9

Accessibility & contrast

On white

5.89
#545CB4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.57
#545CB4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #545CB4
5.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##545CB4#FFFFFF#000000##FFFFFF
##545CB41.005.893.575.89
#FFFFFF5.891.0021.001.00
#0000003.5721.001.0021.00
##FFFFFF5.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3368B7
Deuteranopia (green-blind)
#2761B2
Tritanopia (blue-blind)
#286F7F
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #545cb4;
/* rgb */ color: rgb(84, 92, 180);
/* oklch */ color: oklch(51.3% 0.137 276.5);
Tailwind
colors: {
  custom: {
    50: '#8b8acb',
    500: '#545cb4',
    950: '#000000',
  },
}
SCSS
$custom: #545cb4;
$custom-light: #8b8acb;
$custom-dark: #000000;
JSON
{
  "hex": "#545cb4",
  "rgb": {
    "r": 84,
    "g": 92,
    "b": 180
  },
  "hsl": {
    "h": 235,
    "s": 39.024,
    "l": 51.765
  },
  "oklch": {
    "l": 0.51298,
    "c": 0.13739,
    "h": 276.5
  },
  "luminance": 0.12834
}

Semantic roles & 50–950 ramp

primary
#545CB4
secondary
#C7C39D
accent
#C559CF
background
#F8F8FC
surface
#F0F0F8
border
#CBCBD1
text
#0C0B13
muted
#7D7C82

Preview Lab

Preview with #545CB4

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

Preview Lab → · Contrast checker → · Palette generator →

#545CB4 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva