#4540B9#4540B9

#4540B9 is a mid, vivid blue. Relative luminance 0.084; OKLCH L 45.5% C 0.184 H 278.0°. Best body text is #FFFFFF at 7.82:1 contrast (WCAG AA passes).

Color values

HEX#4540B9
RGBrgb(69, 64, 185)
HSLhsl(242, 49%, 49%)
HSVhsv(242, 65%, 73%)
CMYKcmyk(62.7%, 65.4%, 0%, 27.5%)
CIE-LABlab(34.87, 38.62, -63.26)
CIE-LCHlch(34.87, 74.12, 301.40°)
OKLaboklab(45.46% 0.0256 -0.1823)
OKLCHoklch(45.46% 0.184 278)
XYZxyz(13.0418, 8.4338, 46.8301)
Luminance0.0843 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4540B9 #B4B940
analogous
#4078B9 #4540B9 #8240B9
triadic
#4540B9 #B94540 #40B945
tetradic
#4540B9 #B94078 #B4B940 #40B982
square
#4540B9 #B94078 #B4B940 #40B982
split-complementary
#4540B9 #B98240 #78B940
monochromatic
#23215E #34308C #4540B9 #6F6BCC #9B98DB

Accessibility & contrast

On white

7.82
#4540B9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.69
#4540B9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4540B9
7.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4540B9#FFFFFF#000000##FFFFFF
##4540B91.007.822.697.82
#FFFFFF7.821.0021.001.00
#0000002.6921.001.0021.00
##FFFFFF7.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057BD
Deuteranopia (green-blind)
#004DB7
Tritanopia (blue-blind)
#005F77
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #4540b9;
/* rgb */ color: rgb(69, 64, 185);
/* oklch */ color: oklch(45.5% 0.184 278.0);
Tailwind
colors: {
  custom: {
    50: '#8675cf',
    500: '#4540b9',
    950: '#000000',
  },
}
SCSS
$custom: #4540b9;
$custom-light: #8675cf;
$custom-dark: #000000;
JSON
{
  "hex": "#4540b9",
  "rgb": {
    "r": 69,
    "g": 64,
    "b": 185
  },
  "hsl": {
    "h": 242.479,
    "s": 48.594,
    "l": 48.824
  },
  "oklch": {
    "l": 0.45462,
    "c": 0.18408,
    "h": 278
  },
  "luminance": 0.08435
}

Semantic roles & 50–950 ramp

primary
#4540B9
secondary
#C5C78E
accent
#D850D3
background
#F8F7FC
surface
#F0EDF9
border
#CBC8D2
text
#0C0814
muted
#7D7B82

Preview Lab

Preview with #4540B9

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

Preview Lab → · Contrast checker → · Palette generator →

#4540B9 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva