#545AB7#545AB7

#545AB7 is a mid, vivid blue. Relative luminance 0.126; OKLCH L 51.1% C 0.144 H 277.2°. Best body text is #FFFFFF at 5.96:1 contrast (WCAG AA passes).

Color values

HEX#545AB7
RGBrgb(84, 90, 183)
HSLhsl(236, 41%, 52%)
HSVhsv(236, 54%, 72%)
CMYKcmyk(54.1%, 50.8%, 0%, 28.2%)
CIE-LABlab(42.18, 24.49, -50.19)
CIE-LCHlch(42.18, 55.84, 296.01°)
OKLaboklab(51.11% 0.0181 -0.1433)
OKLCHoklch(51.11% 0.144 277.2)
XYZxyz(15.8569, 12.6150, 46.3899)
Luminance0.1262 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#545AB7 #B7B154
analogous
#548BB7 #545AB7 #8054B7
triadic
#545AB7 #B7545A #5AB754
tetradic
#545AB7 #B7548B #B7B154 #54B780
square
#545AB7 #B7548B #B7B154 #54B780
split-complementary
#545AB7 #B78054 #8BB754
monochromatic
#2B2E66 #3D4291 #545AB7 #7F84C9 #AAADDB

Accessibility & contrast

On white

5.96
#545AB7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.52
#545AB7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #545AB7
5.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##545AB7#FFFFFF#000000##FFFFFF
##545AB71.005.963.525.96
#FFFFFF5.961.0021.001.00
#0000003.5221.001.0021.00
##FFFFFF5.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2B68BA
Deuteranopia (green-blind)
#1D60B5
Tritanopia (blue-blind)
#256F80
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #545ab7;
/* rgb */ color: rgb(84, 90, 183);
/* oklch */ color: oklch(51.1% 0.144 277.2);
Tailwind
colors: {
  custom: {
    50: '#8c88cd',
    500: '#545ab7',
    950: '#000000',
  },
}
SCSS
$custom: #545ab7;
$custom-light: #8c88cd;
$custom-dark: #000000;
JSON
{
  "hex": "#545ab7",
  "rgb": {
    "r": 84,
    "g": 90,
    "b": 183
  },
  "hsl": {
    "h": 236.364,
    "s": 40.741,
    "l": 52.353
  },
  "oklch": {
    "l": 0.51107,
    "c": 0.14441,
    "h": 277.2
  },
  "luminance": 0.12616
}

Semantic roles & 50–950 ramp

primary
#545AB7
secondary
#C9C69E
accent
#C957D1
background
#F8F8FC
surface
#F0EFF9
border
#CBCAD2
text
#0D0B13
muted
#7D7C82

Preview Lab

Preview with #545AB7

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

Preview Lab → · Contrast checker → · Palette generator →

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