#4540BD#4540BD

#4540BD is a mid, vivid blue. Relative luminance 0.086; OKLCH L 45.8% C 0.189 H 277.6°. Best body text is #FFFFFF at 7.72:1 contrast (WCAG AA passes).

Color values

HEX#4540BD
RGBrgb(69, 64, 189)
HSLhsl(242, 49%, 50%)
HSVhsv(242, 66%, 74%)
CMYKcmyk(63.5%, 66.1%, 0%, 25.9%)
CIE-LABlab(35.21, 39.94, -65.06)
CIE-LCHlch(35.21, 76.34, 301.55°)
OKLaboklab(45.82% 0.0252 -0.1876)
OKLCHoklch(45.82% 0.189 277.6)
XYZxyz(13.4700, 8.6050, 49.0853)
Luminance0.0861 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4540BD #B8BD40
analogous
#407ABD #4540BD #8440BD
triadic
#4540BD #BD4540 #40BD45
tetradic
#4540BD #BD407A #B8BD40 #40BD84
square
#4540BD #BD407A #B8BD40 #40BD84
split-complementary
#4540BD #BD8440 #7ABD40
monochromatic
#242162 #34318F #4540BD #716DCD #9D9ADD

Accessibility & contrast

On white

7.72
#4540BD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.72
#4540BD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4540BD
7.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4540BD#FFFFFF#000000##FFFFFF
##4540BD1.007.722.727.72
#FFFFFF7.721.0021.001.00
#0000002.7221.001.0021.00
##FFFFFF7.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058C1
Deuteranopia (green-blind)
#004EBB
Tritanopia (blue-blind)
#006079
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #4540bd;
/* rgb */ color: rgb(69, 64, 189);
/* oklch */ color: oklch(45.8% 0.189 277.6);
Tailwind
colors: {
  custom: {
    50: '#8675d2',
    500: '#4540bd',
    950: '#000000',
  },
}
SCSS
$custom: #4540bd;
$custom-light: #8675d2;
$custom-dark: #000000;
JSON
{
  "hex": "#4540bd",
  "rgb": {
    "r": 69,
    "g": 64,
    "b": 189
  },
  "hsl": {
    "h": 242.4,
    "s": 49.407,
    "l": 49.608
  },
  "oklch": {
    "l": 0.45816,
    "c": 0.18925,
    "h": 277.6
  },
  "luminance": 0.08606
}

Semantic roles & 50–950 ramp

primary
#4540BD
secondary
#C7C990
accent
#D94FD3
background
#F8F7FD
surface
#F0EDFA
border
#CBC8D3
text
#0C0814
muted
#7D7B83

Preview Lab

Preview with #4540BD

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

Preview Lab → · Contrast checker → · Palette generator →

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