#545FA7#545FA7

#545FA7 is a mid, moderate blue. Relative luminance 0.129; OKLCH L 51.1% C 0.114 H 275.1°. Best body text is #FFFFFF at 5.88:1 contrast (WCAG AA passes).

Color values

HEX#545FA7
RGBrgb(84, 95, 167)
HSLhsl(232, 33%, 49%)
HSVhsv(232, 50%, 65%)
CMYKcmyk(49.7%, 43.1%, 0%, 34.5%)
CIE-LABlab(42.55, 16.15, -40.18)
CIE-LCHlch(42.55, 43.31, 291.90°)
OKLaboklab(51.08% 0.0101 -0.1139)
OKLCHoklch(51.08% 0.114 275.1)
XYZxyz(14.7212, 12.8584, 38.2579)
Luminance0.1286 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#545FA7 #A79C54
analogous
#5489A7 #545FA7 #7354A7
triadic
#545FA7 #A7545F #5FA754
tetradic
#545FA7 #A75489 #A79C54 #54A773
square
#545FA7 #A75489 #A79C54 #54A773
split-complementary
#545FA7 #A77354 #89A754
monochromatic
#2B3156 #40487E #545FA7 #7B84BD #A4AAD1

Accessibility & contrast

On white

5.88
#545FA7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #545FA7
5.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##545FA7#FFFFFF#000000##FFFFFF
##545FA71.005.883.575.88
#FFFFFF5.881.0021.001.00
#0000003.5721.001.0021.00
##FFFFFF5.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4268AA
Deuteranopia (green-blind)
#3A61A5
Tritanopia (blue-blind)
#336E7B
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #545fa7;
/* rgb */ color: rgb(84, 95, 167);
/* oklch */ color: oklch(51.1% 0.114 275.1);
Tailwind
colors: {
  custom: {
    50: '#898cc1',
    500: '#545fa7',
    950: '#000000',
  },
}
SCSS
$custom: #545fa7;
$custom-light: #898cc1;
$custom-dark: #000000;
JSON
{
  "hex": "#545fa7",
  "rgb": {
    "r": 84,
    "g": 95,
    "b": 167
  },
  "hsl": {
    "h": 232.048,
    "s": 33.068,
    "l": 49.216
  },
  "oklch": {
    "l": 0.51079,
    "c": 0.11431,
    "h": 275.1
  },
  "luminance": 0.12859
}

Semantic roles & 50–950 ramp

primary
#545FA7
secondary
#BFBA98
accent
#BB5FC9
background
#F8F8FB
surface
#F0F0F7
border
#CBCBD0
text
#0C0C12
muted
#7D7D81

Preview Lab

Preview with #545FA7

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

Preview Lab → · Contrast checker → · Palette generator →

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