#4540DF#4540DF

#4540DF is a mid, highly saturated blue. Relative luminance 0.103; OKLCH L 49.0% C 0.231 H 275.0°. Best body text is #FFFFFF at 6.88:1 contrast (WCAG AA passes).

Color values

HEX#4540DF
RGBrgb(69, 64, 223)
HSLhsl(242, 71%, 56%)
HSVhsv(242, 71%, 87%)
CMYKcmyk(69.1%, 71.3%, 0%, 12.5%)
CIE-LABlab(38.30, 50.94, -79.69)
CIE-LCHlch(38.30, 94.58, 302.59°)
OKLaboklab(48.98% 0.0204 -0.2303)
OKLCHoklch(48.98% 0.231 275)
XYZxyz(17.6025, 10.2581, 70.8501)
Luminance0.1026 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4540DF #DADF40
analogous
#408BDF #4540DF #9540DF
triadic
#4540DF #DF4540 #40DF45
tetradic
#4540DF #DF408B #DADF40 #40DF95
square
#4540DF #DF408B #DADF40 #40DF95
split-complementary
#4540DF #DF9540 #8BDF40
monochromatic
#1B188D #2520C1 #4540DF #7874E8 #ABA9F1

Accessibility & contrast

On white

6.88
#4540DF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.05
#4540DF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4540DF
6.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4540DF#FFFFFF#000000##FFFFFF
##4540DF1.006.883.056.88
#FFFFFF6.881.0021.001.00
#0000003.0521.001.0021.00
##FFFFFF6.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061E4
Deuteranopia (green-blind)
#0053DC
Tritanopia (blue-blind)
#006D8B
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #4540df;
/* rgb */ color: rgb(69, 64, 223);
/* oklch */ color: oklch(49.0% 0.231 275.0);
Tailwind
colors: {
  custom: {
    50: '#8d77ea',
    500: '#4540df',
    950: '#000000',
  },
}
SCSS
$custom: #4540df;
$custom-light: #8d77ea;
$custom-dark: #000000;
JSON
{
  "hex": "#4540df",
  "rgb": {
    "r": 69,
    "g": 64,
    "b": 223
  },
  "hsl": {
    "h": 241.887,
    "s": 71.3,
    "l": 56.275
  },
  "oklch": {
    "l": 0.48977,
    "c": 0.23125,
    "h": 275
  },
  "luminance": 0.1026
}

Semantic roles & 50–950 ramp

primary
#4540DF
secondary
#DCDE9D
accent
#EE3AE8
background
#F9F7FE
surface
#F2EDFD
border
#CCC8D5
text
#0E0916
muted
#7E7B84

Preview Lab

Preview with #4540DF

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

Preview Lab → · Contrast checker → · Palette generator →

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