#4540D8#4540D8

#4540D8 is a mid, highly saturated blue. Relative luminance 0.099; OKLCH L 48.3% C 0.223 H 275.5°. Best body text is #FFFFFF at 7.05:1 contrast (WCAG AA passes).

Color values

HEX#4540D8
RGBrgb(69, 64, 216)
HSLhsl(242, 66%, 55%)
HSVhsv(242, 70%, 85%)
CMYKcmyk(68.1%, 70.4%, 0%, 15.3%)
CIE-LABlab(37.64, 48.71, -76.76)
CIE-LCHlch(37.64, 90.91, 302.40°)
OKLaboklab(48.31% 0.0215 -0.2218)
OKLCHoklch(48.31% 0.223 275.5)
XYZxyz(16.6782, 9.8883, 65.9821)
Luminance0.0989 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4540D8 #D3D840
analogous
#4087D8 #4540D8 #9140D8
triadic
#4540D8 #D84540 #40D845
tetradic
#4540D8 #D84087 #D3D840 #40D891
square
#4540D8 #D84087 #D3D840 #40D891
split-complementary
#4540D8 #D89140 #87D840
monochromatic
#1E1B83 #2A25B6 #4540D8 #7673E2 #A8A6ED

Accessibility & contrast

On white

7.05
#4540D8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.98
#4540D8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4540D8
7.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4540D8#FFFFFF#000000##FFFFFF
##4540D81.007.052.987.05
#FFFFFF7.051.0021.001.00
#0000002.9821.001.0021.00
##FFFFFF7.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FDD
Deuteranopia (green-blind)
#0052D5
Tritanopia (blue-blind)
#006A88
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #4540d8;
/* rgb */ color: rgb(69, 64, 216);
/* oklch */ color: oklch(48.3% 0.223 275.5);
Tailwind
colors: {
  custom: {
    50: '#8c76e5',
    500: '#4540d8',
    950: '#000000',
  },
}
SCSS
$custom: #4540d8;
$custom-light: #8c76e5;
$custom-dark: #000000;
JSON
{
  "hex": "#4540d8",
  "rgb": {
    "r": 69,
    "g": 64,
    "b": 216
  },
  "hsl": {
    "h": 241.974,
    "s": 66.087,
    "l": 54.902
  },
  "oklch": {
    "l": 0.48306,
    "c": 0.22285,
    "h": 275.5
  },
  "luminance": 0.0989
}

Semantic roles & 50–950 ramp

primary
#4540D8
secondary
#D8DA9A
accent
#E93FE3
background
#F9F7FE
surface
#F2EDFC
border
#CCC8D5
text
#0E0916
muted
#7E7B84

Preview Lab

Preview with #4540D8

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

Preview Lab → · Contrast checker → · Palette generator →

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