#4540D4#4540D4

#4540D4 is a mid, highly saturated blue. Relative luminance 0.097; OKLCH L 47.9% C 0.218 H 275.8°. Best body text is #FFFFFF at 7.15:1 contrast (WCAG AA passes).

Color values

HEX#4540D4
RGBrgb(69, 64, 212)
HSLhsl(242, 63%, 54%)
HSVhsv(242, 70%, 83%)
CMYKcmyk(67.5%, 69.8%, 0%, 16.9%)
CIE-LABlab(37.27, 47.43, -75.07)
CIE-LCHlch(37.27, 88.80, 302.28°)
OKLaboklab(47.93% 0.0221 -0.2169)
OKLCHoklch(47.93% 0.218 275.8)
XYZxyz(16.1674, 9.6840, 63.2918)
Luminance0.0969 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4540D4 #CFD440
analogous
#4085D4 #4540D4 #8F40D4
triadic
#4540D4 #D44540 #40D445
tetradic
#4540D4 #D44085 #CFD440 #40D48F
square
#4540D4 #D44085 #CFD440 #40D48F
split-complementary
#4540D4 #D48F40 #85D440
monochromatic
#201C7D #2C27AF #4540D4 #7672DF #A6A4EA

Accessibility & contrast

On white

7.15
#4540D4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.94
#4540D4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4540D4
7.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4540D4#FFFFFF#000000##FFFFFF
##4540D41.007.152.947.15
#FFFFFF7.151.0021.001.00
#0000002.9421.001.0021.00
##FFFFFF7.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005ED8
Deuteranopia (green-blind)
#0051D1
Tritanopia (blue-blind)
#006985
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #4540d4;
/* rgb */ color: rgb(69, 64, 212);
/* oklch */ color: oklch(47.9% 0.218 275.8);
Tailwind
colors: {
  custom: {
    50: '#8b76e2',
    500: '#4540d4',
    950: '#000000',
  },
}
SCSS
$custom: #4540d4;
$custom-light: #8b76e2;
$custom-dark: #000000;
JSON
{
  "hex": "#4540d4",
  "rgb": {
    "r": 69,
    "g": 64,
    "b": 212
  },
  "hsl": {
    "h": 242.027,
    "s": 63.248,
    "l": 54.118
  },
  "oklch": {
    "l": 0.47927,
    "c": 0.21799,
    "h": 275.8
  },
  "luminance": 0.09685
}

Semantic roles & 50–950 ramp

primary
#4540D4
secondary
#D5D798
accent
#E642E1
background
#F9F7FE
surface
#F2EDFC
border
#CCC8D5
text
#0E0816
muted
#7E7B84

Preview Lab

Preview with #4540D4

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

Preview Lab → · Contrast checker → · Palette generator →

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