#545FB5#545FB5

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

Color values

HEX#545FB5
RGBrgb(84, 95, 181)
HSLhsl(233, 40%, 52%)
HSVhsv(233, 54%, 71%)
CMYKcmyk(53.6%, 47.5%, 0%, 29%)
CIE-LABlab(43.37, 20.68, -47.11)
CIE-LCHlch(43.37, 51.45, 293.70°)
OKLaboklab(51.97% 0.0122 -0.1342)
OKLCHoklch(51.97% 0.135 275.2)
XYZxyz(16.0862, 13.4044, 45.4468)
Luminance0.1341 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#545FB5 #B5AA54
analogous
#5490B5 #545FB5 #7A54B5
triadic
#545FB5 #B5545F #5FB554
tetradic
#545FB5 #B55490 #B5AA54 #54B57A
square
#545FB5 #B55490 #B5AA54 #54B57A
split-complementary
#545FB5 #B57A54 #90B554
monochromatic
#2B3164 #3E478E #545FB5 #7F87C7 #A9AFDA

Accessibility & contrast

On white

5.70
#545FB5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.68
#545FB5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #545FB5
5.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##545FB5#FFFFFF#000000##FFFFFF
##545FB51.005.703.685.70
#FFFFFF5.701.0021.001.00
#0000003.6821.001.0021.00
##FFFFFF5.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#386BB8
Deuteranopia (green-blind)
#2D63B3
Tritanopia (blue-blind)
#277281
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #545fb5;
/* rgb */ color: rgb(84, 95, 181);
/* oklch */ color: oklch(52.0% 0.135 275.2);
Tailwind
colors: {
  custom: {
    50: '#8b8ccc',
    500: '#545fb5',
    950: '#000000',
  },
}
SCSS
$custom: #545fb5;
$custom-light: #8b8ccc;
$custom-dark: #000000;
JSON
{
  "hex": "#545fb5",
  "rgb": {
    "r": 84,
    "g": 95,
    "b": 181
  },
  "hsl": {
    "h": 233.196,
    "s": 39.592,
    "l": 51.961
  },
  "oklch": {
    "l": 0.51966,
    "c": 0.13474,
    "h": 275.2
  },
  "luminance": 0.13405
}

Semantic roles & 50–950 ramp

primary
#545FB5
secondary
#C8C39D
accent
#C258CF
background
#F8F8FC
surface
#F0F0F9
border
#CBCBD2
text
#0C0C13
muted
#7D7D82

Preview Lab

Preview with #545FB5

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

Preview Lab → · Contrast checker → · Palette generator →

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