#4540CA#4540CA

#4540CA is a mid, highly saturated blue. Relative luminance 0.092; OKLCH L 47.0% C 0.206 H 276.6°. Best body text is #FFFFFF at 7.40:1 contrast (WCAG AA passes).

Color values

HEX#4540CA
RGBrgb(69, 64, 202)
HSLhsl(242, 57%, 52%)
HSVhsv(242, 68%, 79%)
CMYKcmyk(65.8%, 68.3%, 0%, 20.8%)
CIE-LABlab(36.36, 44.19, -70.78)
CIE-LCHlch(36.36, 83.44, 301.98°)
OKLaboklab(46.99% 0.0235 -0.2043)
OKLCHoklch(46.99% 0.206 276.6)
XYZxyz(14.9448, 9.1950, 56.8529)
Luminance0.0920 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4540CA #C5CA40
analogous
#4080CA #4540CA #8A40CA
triadic
#4540CA #CA4540 #40CA45
tetradic
#4540CA #CA4080 #C5CA40 #40CA8A
square
#4540CA #CA4080 #C5CA40 #40CA8A
split-complementary
#4540CA #CA8A40 #80CA40
monochromatic
#221F70 #312CA0 #4540CA #7470D7 #A2A0E5

Accessibility & contrast

On white

7.40
#4540CA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.84
#4540CA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4540CA
7.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4540CA#FFFFFF#000000##FFFFFF
##4540CA1.007.402.847.40
#FFFFFF7.401.0021.001.00
#0000002.8421.001.0021.00
##FFFFFF7.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BCE
Deuteranopia (green-blind)
#004FC7
Tritanopia (blue-blind)
#006580
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #4540ca;
/* rgb */ color: rgb(69, 64, 202);
/* oklch */ color: oklch(47.0% 0.206 276.6);
Tailwind
colors: {
  custom: {
    50: '#8976db',
    500: '#4540ca',
    950: '#000000',
  },
}
SCSS
$custom: #4540ca;
$custom-light: #8976db;
$custom-dark: #000000;
JSON
{
  "hex": "#4540ca",
  "rgb": {
    "r": 69,
    "g": 64,
    "b": 202
  },
  "hsl": {
    "h": 242.174,
    "s": 56.557,
    "l": 52.157
  },
  "oklch": {
    "l": 0.46994,
    "c": 0.20568,
    "h": 276.6
  },
  "luminance": 0.09196
}

Semantic roles & 50–950 ramp

primary
#4540CA
secondary
#CFD195
accent
#E048DA
background
#F9F7FD
surface
#F1EDFB
border
#CBC8D4
text
#0D0815
muted
#7E7B83

Preview Lab

Preview with #4540CA

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

Preview Lab → · Contrast checker → · Palette generator →

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