#545CB2#545CB2

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

Color values

HEX#545CB2
RGBrgb(84, 92, 178)
HSLhsl(235, 38%, 51%)
HSVhsv(235, 53%, 70%)
CMYKcmyk(52.8%, 48.3%, 0%, 30.2%)
CIE-LABlab(42.39, 21.60, -46.92)
CIE-LCHlch(42.39, 51.65, 294.72°)
OKLaboklab(51.17% 0.0153 -0.1336)
OKLCHoklch(51.17% 0.135 276.5)
XYZxyz(15.5166, 12.7525, 43.7547)
Luminance0.1275 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#545CB2 #B2AA54
analogous
#548BB2 #545CB2 #7B54B2
triadic
#545CB2 #B2545C #5CB254
tetradic
#545CB2 #B2548B #B2AA54 #54B27B
square
#545CB2 #B2548B #B2AA54 #54B27B
split-complementary
#545CB2 #B27B54 #8BB254
monochromatic
#2B3060 #3E458A #545CB2 #7E84C5 #A8ACD8

Accessibility & contrast

On white

5.91
#545CB2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.55
#545CB2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #545CB2
5.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##545CB2#FFFFFF#000000##FFFFFF
##545CB21.005.913.555.91
#FFFFFF5.911.0021.001.00
#0000003.5521.001.0021.00
##FFFFFF5.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3468B5
Deuteranopia (green-blind)
#2A60B0
Tritanopia (blue-blind)
#2A6F7E
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #545cb2;
/* rgb */ color: rgb(84, 92, 178);
/* oklch */ color: oklch(51.2% 0.135 276.5);
Tailwind
colors: {
  custom: {
    50: '#8b8ac9',
    500: '#545cb2',
    950: '#000000',
  },
}
SCSS
$custom: #545cb2;
$custom-light: #8b8ac9;
$custom-dark: #000000;
JSON
{
  "hex": "#545cb2",
  "rgb": {
    "r": 84,
    "g": 92,
    "b": 178
  },
  "hsl": {
    "h": 234.894,
    "s": 37.903,
    "l": 51.373
  },
  "oklch": {
    "l": 0.51165,
    "c": 0.13452,
    "h": 276.5
  },
  "luminance": 0.12753
}

Semantic roles & 50–950 ramp

primary
#545CB2
secondary
#C6C29C
accent
#C45ACE
background
#F8F8FC
surface
#F0F0F8
border
#CBCBD1
text
#0C0B13
muted
#7D7C82

Preview Lab

Preview with #545CB2

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

Preview Lab → · Contrast checker → · Palette generator →

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