#545AB1#545AB1

#545AB1 is a mid, vivid blue. Relative luminance 0.124; OKLCH L 50.7% C 0.136 H 277.4°. Best body text is #FFFFFF at 6.04:1 contrast (WCAG AA passes).

Color values

HEX#545AB1
RGBrgb(84, 90, 177)
HSLhsl(236, 37%, 51%)
HSVhsv(236, 53%, 69%)
CMYKcmyk(52.5%, 49.2%, 0%, 30.6%)
CIE-LABlab(41.80, 22.53, -47.28)
CIE-LCHlch(41.80, 52.37, 295.49°)
OKLaboklab(50.7% 0.0175 -0.1347)
OKLCHoklch(50.7% 0.136 277.4)
XYZxyz(15.2456, 12.3705, 43.1708)
Luminance0.1237 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#545AB1 #B1AB54
analogous
#5488B1 #545AB1 #7C54B1
triadic
#545AB1 #B1545A #5AB154
tetradic
#545AB1 #B15488 #B1AB54 #54B17C
square
#545AB1 #B15488 #B1AB54 #54B17C
split-complementary
#545AB1 #B17C54 #88B154
monochromatic
#2B2F5F #3F4389 #545AB1 #7E83C4 #A8ABD7

Accessibility & contrast

On white

6.04
#545AB1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.47
#545AB1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #545AB1
6.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##545AB1#FFFFFF#000000##FFFFFF
##545AB11.006.043.476.04
#FFFFFF6.041.0021.001.00
#0000003.4721.001.0021.00
##FFFFFF6.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3166B4
Deuteranopia (green-blind)
#275FAF
Tritanopia (blue-blind)
#2C6D7D
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #545ab1;
/* rgb */ color: rgb(84, 90, 177);
/* oklch */ color: oklch(50.7% 0.136 277.4);
Tailwind
colors: {
  custom: {
    50: '#8b88c9',
    500: '#545ab1',
    950: '#000000',
  },
}
SCSS
$custom: #545ab1;
$custom-light: #8b88c9;
$custom-dark: #000000;
JSON
{
  "hex": "#545ab1",
  "rgb": {
    "r": 84,
    "g": 90,
    "b": 177
  },
  "hsl": {
    "h": 236.129,
    "s": 37.349,
    "l": 51.176
  },
  "oklch": {
    "l": 0.507,
    "c": 0.13585,
    "h": 277.4
  },
  "luminance": 0.12371
}

Semantic roles & 50–950 ramp

primary
#545AB1
secondary
#C5C29C
accent
#C65ACD
background
#F8F8FC
surface
#F0EFF8
border
#CBCAD1
text
#0C0B13
muted
#7D7C82

Preview Lab

Preview with #545AB1

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

Preview Lab → · Contrast checker → · Palette generator →

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