#4540D5#4540D5

#4540D5 is a mid, highly saturated blue. Relative luminance 0.097; OKLCH L 48.0% C 0.219 H 275.7°. Best body text is #FFFFFF at 7.13:1 contrast (WCAG AA passes).

Color values

HEX#4540D5
RGBrgb(69, 64, 213)
HSLhsl(242, 64%, 54%)
HSVhsv(242, 70%, 84%)
CMYKcmyk(67.6%, 70%, 0%, 16.5%)
CIE-LABlab(37.36, 47.75, -75.49)
CIE-LCHlch(37.36, 89.33, 302.31°)
OKLaboklab(48.02% 0.022 -0.2181)
OKLCHoklch(48.02% 0.219 275.7)
XYZxyz(16.2939, 9.7346, 63.9582)
Luminance0.0974 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4540D5 #D0D540
analogous
#4086D5 #4540D5 #8F40D5
triadic
#4540D5 #D54540 #40D545
tetradic
#4540D5 #D54086 #D0D540 #40D58F
square
#4540D5 #D54086 #D0D540 #40D58F
split-complementary
#4540D5 #D58F40 #86D540
monochromatic
#1F1C7F #2C27B1 #4540D5 #7672E0 #A7A4EB

Accessibility & contrast

On white

7.13
#4540D5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.95
#4540D5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4540D5
7.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4540D5#FFFFFF#000000##FFFFFF
##4540D51.007.132.957.13
#FFFFFF7.131.0021.001.00
#0000002.9521.001.0021.00
##FFFFFF7.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005ED9
Deuteranopia (green-blind)
#0051D2
Tritanopia (blue-blind)
#006986
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #4540d5;
/* rgb */ color: rgb(69, 64, 213);
/* oklch */ color: oklch(48.0% 0.219 275.7);
Tailwind
colors: {
  custom: {
    50: '#8b76e3',
    500: '#4540d5',
    950: '#000000',
  },
}
SCSS
$custom: #4540d5;
$custom-light: #8b76e3;
$custom-dark: #000000;
JSON
{
  "hex": "#4540d5",
  "rgb": {
    "r": 69,
    "g": 64,
    "b": 213
  },
  "hsl": {
    "h": 242.013,
    "s": 63.948,
    "l": 54.314
  },
  "oklch": {
    "l": 0.48022,
    "c": 0.21921,
    "h": 275.7
  },
  "luminance": 0.09736
}

Semantic roles & 50–950 ramp

primary
#4540D5
secondary
#D6D899
accent
#E741E1
background
#F9F7FE
surface
#F2EDFC
border
#CCC8D5
text
#0E0916
muted
#7E7B84

Preview Lab

Preview with #4540D5

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

Preview Lab → · Contrast checker → · Palette generator →

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