#4540CB#4540CB

#4540CB is a mid, highly saturated blue. Relative luminance 0.092; OKLCH L 47.1% C 0.207 H 276.5°. Best body text is #FFFFFF at 7.37:1 contrast (WCAG AA passes).

Color values

HEX#4540CB
RGBrgb(69, 64, 203)
HSLhsl(242, 57%, 52%)
HSVhsv(242, 68%, 80%)
CMYKcmyk(66%, 68.5%, 0%, 20.4%)
CIE-LABlab(36.45, 44.52, -71.21)
CIE-LCHlch(36.45, 83.98, 302.01°)
OKLaboklab(47.09% 0.0234 -0.2056)
OKLCHoklch(47.09% 0.207 276.5)
XYZxyz(15.0636, 9.2425, 57.4785)
Luminance0.0924 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4540CB #C6CB40
analogous
#4081CB #4540CB #8A40CB
triadic
#4540CB #CB4540 #40CB45
tetradic
#4540CB #CB4081 #C6CB40 #40CB8A
square
#4540CB #CB4081 #C6CB40 #40CB8A
split-complementary
#4540CB #CB8A40 #81CB40
monochromatic
#221F72 #302CA2 #4540CB #7470D8 #A3A0E5

Accessibility & contrast

On white

7.37
#4540CB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.85
#4540CB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4540CB
7.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4540CB#FFFFFF#000000##FFFFFF
##4540CB1.007.372.857.37
#FFFFFF7.371.0021.001.00
#0000002.8521.001.0021.00
##FFFFFF7.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CCF
Deuteranopia (green-blind)
#0050C8
Tritanopia (blue-blind)
#006580
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #4540cb;
/* rgb */ color: rgb(69, 64, 203);
/* oklch */ color: oklch(47.1% 0.207 276.5);
Tailwind
colors: {
  custom: {
    50: '#8976dc',
    500: '#4540cb',
    950: '#000000',
  },
}
SCSS
$custom: #4540cb;
$custom-light: #8976dc;
$custom-dark: #000000;
JSON
{
  "hex": "#4540cb",
  "rgb": {
    "r": 69,
    "g": 64,
    "b": 203
  },
  "hsl": {
    "h": 242.158,
    "s": 57.202,
    "l": 52.353
  },
  "oklch": {
    "l": 0.47086,
    "c": 0.20693,
    "h": 276.5
  },
  "luminance": 0.09244
}

Semantic roles & 50–950 ramp

primary
#4540CB
secondary
#CFD295
accent
#E047DB
background
#F9F7FD
surface
#F1EDFB
border
#CBC8D4
text
#0D0815
muted
#7E7B83

Preview Lab

Preview with #4540CB

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

Preview Lab → · Contrast checker → · Palette generator →

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