#4540B7#4540B7

#4540B7 is a mid, vivid blue. Relative luminance 0.084; OKLCH L 45.3% C 0.181 H 278.2°. Best body text is #FFFFFF at 7.86:1 contrast (WCAG AA passes).

Color values

HEX#4540B7
RGBrgb(69, 64, 183)
HSLhsl(243, 48%, 48%)
HSVhsv(243, 65%, 72%)
CMYKcmyk(62.3%, 65%, 0%, 28.2%)
CIE-LABlab(34.70, 37.96, -62.36)
CIE-LCHlch(34.70, 73.00, 301.33°)
OKLaboklab(45.29% 0.0258 -0.1796)
OKLCHoklch(45.29% 0.181 278.2)
XYZxyz(12.8321, 8.3499, 45.7260)
Luminance0.0835 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4540B7 #B2B740
analogous
#4076B7 #4540B7 #8040B7
triadic
#4540B7 #B74540 #40B745
tetradic
#4540B7 #B74076 #B2B740 #40B780
square
#4540B7 #B74076 #B2B740 #40B780
split-complementary
#4540B7 #B78040 #76B740
monochromatic
#23205C #34308A #4540B7 #6E69CB #9A97DB

Accessibility & contrast

On white

7.86
#4540B7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.67
#4540B7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4540B7
7.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4540B7#FFFFFF#000000##FFFFFF
##4540B71.007.862.677.86
#FFFFFF7.861.0021.001.00
#0000002.6721.001.0021.00
##FFFFFF7.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056BB
Deuteranopia (green-blind)
#004DB5
Tritanopia (blue-blind)
#005E76
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #4540b7;
/* rgb */ color: rgb(69, 64, 183);
/* oklch */ color: oklch(45.3% 0.181 278.2);
Tailwind
colors: {
  custom: {
    50: '#8575ce',
    500: '#4540b7',
    950: '#000000',
  },
}
SCSS
$custom: #4540b7;
$custom-light: #8575ce;
$custom-dark: #000000;
JSON
{
  "hex": "#4540b7",
  "rgb": {
    "r": 69,
    "g": 64,
    "b": 183
  },
  "hsl": {
    "h": 242.521,
    "s": 48.178,
    "l": 48.431
  },
  "oklch": {
    "l": 0.45286,
    "c": 0.18149,
    "h": 278.2
  },
  "luminance": 0.08351
}

Semantic roles & 50–950 ramp

primary
#4540B7
secondary
#C4C68D
accent
#D850D2
background
#F8F7FC
surface
#F0EDF9
border
#CBC8D2
text
#0C0814
muted
#7D7B82

Preview Lab

Preview with #4540B7

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

Preview Lab → · Contrast checker → · Palette generator →

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