#4540C6#4540C6

#4540C6 is a mid, highly saturated blue. Relative luminance 0.090; OKLCH L 46.6% C 0.201 H 276.9°. Best body text is #FFFFFF at 7.50:1 contrast (WCAG AA passes).

Color values

HEX#4540C6
RGBrgb(69, 64, 198)
HSLhsl(242, 54%, 51%)
HSVhsv(242, 68%, 78%)
CMYKcmyk(65.2%, 67.7%, 0%, 22.4%)
CIE-LABlab(36.00, 42.89, -69.04)
CIE-LCHlch(36.00, 81.27, 301.85°)
OKLaboklab(46.63% 0.0241 -0.1992)
OKLCHoklch(46.63% 0.201 276.9)
XYZxyz(14.4774, 9.0080, 54.3909)
Luminance0.0901 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4540C6 #C1C640
analogous
#407EC6 #4540C6 #8840C6
triadic
#4540C6 #C64540 #40C645
tetradic
#4540C6 #C6407E #C1C640 #40C688
square
#4540C6 #C6407E #C1C640 #40C688
split-complementary
#4540C6 #C68840 #7EC640
monochromatic
#23206C #322E9B #4540C6 #736FD4 #A19EE2

Accessibility & contrast

On white

7.50
#4540C6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.80
#4540C6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4540C6
7.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4540C6#FFFFFF#000000##FFFFFF
##4540C61.007.502.807.50
#FFFFFF7.501.0021.001.00
#0000002.8021.001.0021.00
##FFFFFF7.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005ACA
Deuteranopia (green-blind)
#004FC3
Tritanopia (blue-blind)
#00647E
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #4540c6;
/* rgb */ color: rgb(69, 64, 198);
/* oklch */ color: oklch(46.6% 0.201 276.9);
Tailwind
colors: {
  custom: {
    50: '#8876d8',
    500: '#4540c6',
    950: '#000000',
  },
}
SCSS
$custom: #4540c6;
$custom-light: #8876d8;
$custom-dark: #000000;
JSON
{
  "hex": "#4540c6",
  "rgb": {
    "r": 69,
    "g": 64,
    "b": 198
  },
  "hsl": {
    "h": 242.239,
    "s": 54.032,
    "l": 51.373
  },
  "oklch": {
    "l": 0.46627,
    "c": 0.20068,
    "h": 276.9
  },
  "luminance": 0.09009
}

Semantic roles & 50–950 ramp

primary
#4540C6
secondary
#CCCE93
accent
#DD4AD8
background
#F9F7FD
surface
#F1EDFB
border
#CBC8D4
text
#0D0815
muted
#7E7B83

Preview Lab

Preview with #4540C6

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

Preview Lab → · Contrast checker → · Palette generator →

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