#545FB7#545FB7

#545FB7 is a mid, vivid blue. Relative luminance 0.135; OKLCH L 52.1% C 0.138 H 275.2°. Best body text is #FFFFFF at 5.68:1 contrast (WCAG AA passes).

Color values

HEX#545FB7
RGBrgb(84, 95, 183)
HSLhsl(233, 41%, 52%)
HSVhsv(233, 54%, 72%)
CMYKcmyk(54.1%, 48.1%, 0%, 28.2%)
CIE-LABlab(43.49, 21.34, -48.09)
CIE-LCHlch(43.49, 52.61, 293.93°)
OKLaboklab(52.1% 0.0125 -0.137)
OKLCHoklch(52.1% 0.138 275.2)
XYZxyz(16.2929, 13.4870, 46.5353)
Luminance0.1349 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#545FB7 #B7AC54
analogous
#5491B7 #545FB7 #7A54B7
triadic
#545FB7 #B7545F #5FB754
tetradic
#545FB7 #B75491 #B7AC54 #54B77A
square
#545FB7 #B75491 #B7AC54 #54B77A
split-complementary
#545FB7 #B77A54 #91B754
monochromatic
#2B3166 #3D4691 #545FB7 #7F87C9 #AAB0DB

Accessibility & contrast

On white

5.68
#545FB7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.70
#545FB7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #545FB7
5.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##545FB7#FFFFFF#000000##FFFFFF
##545FB71.005.683.705.68
#FFFFFF5.681.0021.001.00
#0000003.7021.001.0021.00
##FFFFFF5.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#366BBA
Deuteranopia (green-blind)
#2A63B5
Tritanopia (blue-blind)
#247282
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #545fb7;
/* rgb */ color: rgb(84, 95, 183);
/* oklch */ color: oklch(52.1% 0.138 275.2);
Tailwind
colors: {
  custom: {
    50: '#8b8ccd',
    500: '#545fb7',
    950: '#000000',
  },
}
SCSS
$custom: #545fb7;
$custom-light: #8b8ccd;
$custom-dark: #000000;
JSON
{
  "hex": "#545fb7",
  "rgb": {
    "r": 84,
    "g": 95,
    "b": 183
  },
  "hsl": {
    "h": 233.333,
    "s": 40.741,
    "l": 52.353
  },
  "oklch": {
    "l": 0.52097,
    "c": 0.13761,
    "h": 275.2
  },
  "luminance": 0.13488
}

Semantic roles & 50–950 ramp

primary
#545FB7
secondary
#C9C49E
accent
#C357D1
background
#F8F8FC
surface
#F0F0F9
border
#CBCBD2
text
#0D0C13
muted
#7D7D82

Preview Lab

Preview with #545FB7

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

Preview Lab → · Contrast checker → · Palette generator →

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