#4540CF#4540CF

#4540CF is a mid, highly saturated blue. Relative luminance 0.094; OKLCH L 47.5% C 0.212 H 276.2°. Best body text is #FFFFFF at 7.27:1 contrast (WCAG AA passes).

Color values

HEX#4540CF
RGBrgb(69, 64, 207)
HSLhsl(242, 60%, 53%)
HSVhsv(242, 69%, 81%)
CMYKcmyk(66.7%, 69.1%, 0%, 18.8%)
CIE-LABlab(36.81, 45.81, -72.94)
CIE-LCHlch(36.81, 86.13, 302.13°)
OKLaboklab(47.46% 0.0228 -0.2106)
OKLCHoklch(47.46% 0.212 276.2)
XYZxyz(15.5464, 9.4356, 60.0214)
Luminance0.0944 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4540CF #CACF40
analogous
#4082CF #4540CF #8C40CF
triadic
#4540CF #CF4540 #40CF45
tetradic
#4540CF #CF4082 #CACF40 #40CF8C
square
#4540CF #CF4082 #CACF40 #40CF8C
split-complementary
#4540CF #CF8C40 #82CF40
monochromatic
#211E77 #2F2AA8 #4540CF #7571DB #A4A2E8

Accessibility & contrast

On white

7.27
#4540CF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.89
#4540CF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4540CF
7.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4540CF#FFFFFF#000000##FFFFFF
##4540CF1.007.272.897.27
#FFFFFF7.271.0021.001.00
#0000002.8921.001.0021.00
##FFFFFF7.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DD3
Deuteranopia (green-blind)
#0050CC
Tritanopia (blue-blind)
#006783
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #4540cf;
/* rgb */ color: rgb(69, 64, 207);
/* oklch */ color: oklch(47.5% 0.212 276.2);
Tailwind
colors: {
  custom: {
    50: '#8a76df',
    500: '#4540cf',
    950: '#000000',
  },
}
SCSS
$custom: #4540cf;
$custom-light: #8a76df;
$custom-dark: #000000;
JSON
{
  "hex": "#4540cf",
  "rgb": {
    "r": 69,
    "g": 64,
    "b": 207
  },
  "hsl": {
    "h": 242.098,
    "s": 59.833,
    "l": 53.137
  },
  "oklch": {
    "l": 0.47458,
    "c": 0.21187,
    "h": 276.2
  },
  "luminance": 0.09437
}

Semantic roles & 50–950 ramp

primary
#4540CF
secondary
#D2D497
accent
#E345DD
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0D0815
muted
#7E7B83

Preview Lab

Preview with #4540CF

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

Preview Lab → · Contrast checker → · Palette generator →

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