#4540D7#4540D7

#4540D7 is a mid, highly saturated blue. Relative luminance 0.098; OKLCH L 48.2% C 0.222 H 275.6°. Best body text is #FFFFFF at 7.08:1 contrast (WCAG AA passes).

Color values

HEX#4540D7
RGBrgb(69, 64, 215)
HSLhsl(242, 65%, 55%)
HSVhsv(242, 70%, 84%)
CMYKcmyk(67.9%, 70.2%, 0%, 15.7%)
CIE-LABlab(37.55, 48.39, -76.34)
CIE-LCHlch(37.55, 90.39, 302.37°)
OKLaboklab(48.21% 0.0216 -0.2206)
OKLCHoklch(48.21% 0.222 275.6)
XYZxyz(16.5493, 9.8368, 65.3033)
Luminance0.0984 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4540D7 #D2D740
analogous
#4086D7 #4540D7 #9140D7
triadic
#4540D7 #D74540 #40D745
tetradic
#4540D7 #D74086 #D2D740 #40D791
square
#4540D7 #D74086 #D2D740 #40D791
split-complementary
#4540D7 #D79140 #86D740
monochromatic
#1F1B81 #2A26B4 #4540D7 #7673E2 #A8A5EC

Accessibility & contrast

On white

7.08
#4540D7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.97
#4540D7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4540D7
7.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4540D7#FFFFFF#000000##FFFFFF
##4540D71.007.082.977.08
#FFFFFF7.081.0021.001.00
#0000002.9721.001.0021.00
##FFFFFF7.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FDC
Deuteranopia (green-blind)
#0052D4
Tritanopia (blue-blind)
#006A87
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #4540d7;
/* rgb */ color: rgb(69, 64, 215);
/* oklch */ color: oklch(48.2% 0.222 275.6);
Tailwind
colors: {
  custom: {
    50: '#8c76e5',
    500: '#4540d7',
    950: '#000000',
  },
}
SCSS
$custom: #4540d7;
$custom-light: #8c76e5;
$custom-dark: #000000;
JSON
{
  "hex": "#4540d7",
  "rgb": {
    "r": 69,
    "g": 64,
    "b": 215
  },
  "hsl": {
    "h": 241.987,
    "s": 65.368,
    "l": 54.706
  },
  "oklch": {
    "l": 0.48211,
    "c": 0.22164,
    "h": 275.6
  },
  "luminance": 0.09838
}

Semantic roles & 50–950 ramp

primary
#4540D7
secondary
#D7D99A
accent
#E83FE3
background
#F9F7FE
surface
#F2EDFC
border
#CCC8D5
text
#0E0916
muted
#7E7B84

Preview Lab

Preview with #4540D7

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

Preview Lab → · Contrast checker → · Palette generator →

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