#4540C8#4540C8

#4540C8 is a mid, highly saturated blue. Relative luminance 0.091; OKLCH L 46.8% C 0.203 H 276.7°. Best body text is #FFFFFF at 7.45:1 contrast (WCAG AA passes).

Color values

HEX#4540C8
RGBrgb(69, 64, 200)
HSLhsl(242, 55%, 52%)
HSVhsv(242, 68%, 78%)
CMYKcmyk(65.5%, 68%, 0%, 21.6%)
CIE-LABlab(36.18, 43.54, -69.91)
CIE-LCHlch(36.18, 82.36, 301.92°)
OKLaboklab(46.81% 0.0238 -0.2018)
OKLCHoklch(46.81% 0.203 276.7)
XYZxyz(14.7096, 9.1009, 55.6139)
Luminance0.0910 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4540C8 #C3C840
analogous
#407FC8 #4540C8 #8940C8
triadic
#4540C8 #C84540 #40C845
tetradic
#4540C8 #C8407F #C3C840 #40C889
square
#4540C8 #C8407F #C3C840 #40C889
split-complementary
#4540C8 #C88940 #7FC840
monochromatic
#23206E #312D9D #4540C8 #7370D6 #A29FE3

Accessibility & contrast

On white

7.45
#4540C8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.82
#4540C8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4540C8
7.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4540C8#FFFFFF#000000##FFFFFF
##4540C81.007.452.827.45
#FFFFFF7.451.0021.001.00
#0000002.8221.001.0021.00
##FFFFFF7.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BCC
Deuteranopia (green-blind)
#004FC5
Tritanopia (blue-blind)
#00647F
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #4540c8;
/* rgb */ color: rgb(69, 64, 200);
/* oklch */ color: oklch(46.8% 0.203 276.7);
Tailwind
colors: {
  custom: {
    50: '#8976da',
    500: '#4540c8',
    950: '#000000',
  },
}
SCSS
$custom: #4540c8;
$custom-light: #8976da;
$custom-dark: #000000;
JSON
{
  "hex": "#4540c8",
  "rgb": {
    "r": 69,
    "g": 64,
    "b": 200
  },
  "hsl": {
    "h": 242.206,
    "s": 55.285,
    "l": 51.765
  },
  "oklch": {
    "l": 0.4681,
    "c": 0.20318,
    "h": 276.7
  },
  "luminance": 0.09102
}

Semantic roles & 50–950 ramp

primary
#4540C8
secondary
#CED094
accent
#DF49D9
background
#F9F7FD
surface
#F1EDFB
border
#CBC8D4
text
#0D0815
muted
#7E7B83

Preview Lab

Preview with #4540C8

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

Preview Lab → · Contrast checker → · Palette generator →

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