#545FB2#545FB2

#545FB2 is a mid, vivid blue. Relative luminance 0.133; OKLCH L 51.8% C 0.130 H 275.2°. Best body text is #FFFFFF at 5.74:1 contrast (WCAG AA passes).

Color values

HEX#545FB2
RGBrgb(84, 95, 178)
HSLhsl(233, 38%, 51%)
HSVhsv(233, 53%, 70%)
CMYKcmyk(52.8%, 46.6%, 0%, 30.2%)
CIE-LABlab(43.19, 19.70, -45.64)
CIE-LCHlch(43.19, 49.71, 293.35°)
OKLaboklab(51.77% 0.0118 -0.1299)
OKLCHoklch(51.77% 0.13 275.2)
XYZxyz(15.7817, 13.2826, 43.8430)
Luminance0.1328 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#545FB2 #B2A754
analogous
#548EB2 #545FB2 #7854B2
triadic
#545FB2 #B2545F #5FB254
tetradic
#545FB2 #B2548E #B2A754 #54B278
square
#545FB2 #B2548E #B2A754 #54B278
split-complementary
#545FB2 #B27854 #8EB254
monochromatic
#2B3260 #3E478A #545FB2 #7E86C5 #A8AED8

Accessibility & contrast

On white

5.74
#545FB2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.66
#545FB2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #545FB2
5.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##545FB2#FFFFFF#000000##FFFFFF
##545FB21.005.743.665.74
#FFFFFF5.741.0021.001.00
#0000003.6621.001.0021.00
##FFFFFF5.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3A6AB5
Deuteranopia (green-blind)
#3062B0
Tritanopia (blue-blind)
#2A7180
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #545fb2;
/* rgb */ color: rgb(84, 95, 178);
/* oklch */ color: oklch(51.8% 0.130 275.2);
Tailwind
colors: {
  custom: {
    50: '#8b8cc9',
    500: '#545fb2',
    950: '#000000',
  },
}
SCSS
$custom: #545fb2;
$custom-light: #8b8cc9;
$custom-dark: #000000;
JSON
{
  "hex": "#545fb2",
  "rgb": {
    "r": 84,
    "g": 95,
    "b": 178
  },
  "hsl": {
    "h": 232.979,
    "s": 37.903,
    "l": 51.373
  },
  "oklch": {
    "l": 0.51771,
    "c": 0.13041,
    "h": 275.2
  },
  "luminance": 0.13284
}

Semantic roles & 50–950 ramp

primary
#545FB2
secondary
#C6C19C
accent
#C05ACE
background
#F8F8FC
surface
#F0F0F8
border
#CBCBD1
text
#0C0C13
muted
#7D7D82

Preview Lab

Preview with #545FB2

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

Preview Lab → · Contrast checker → · Palette generator →

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