#4540C2#4540C2

#4540C2 is a mid, vivid blue. Relative luminance 0.088; OKLCH L 46.3% C 0.196 H 277.2°. Best body text is #FFFFFF at 7.59:1 contrast (WCAG AA passes).

Color values

HEX#4540C2
RGBrgb(69, 64, 194)
HSLhsl(242, 52%, 51%)
HSVhsv(242, 67%, 76%)
CMYKcmyk(64.4%, 67%, 0%, 23.9%)
CIE-LABlab(35.65, 41.58, -67.28)
CIE-LCHlch(35.65, 79.09, 301.72°)
OKLaboklab(46.26% 0.0246 -0.1941)
OKLCHoklch(46.26% 0.196 277.2)
XYZxyz(14.0221, 8.8259, 51.9931)
Luminance0.0883 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4540C2 #BDC240
analogous
#407CC2 #4540C2 #8640C2
triadic
#4540C2 #C24540 #40C245
tetradic
#4540C2 #C2407C #BDC240 #40C286
square
#4540C2 #C2407C #BDC240 #40C286
split-complementary
#4540C2 #C28640 #7CC240
monochromatic
#242167 #343095 #4540C2 #726ED1 #9F9DE0

Accessibility & contrast

On white

7.59
#4540C2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.77
#4540C2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4540C2
7.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4540C2#FFFFFF#000000##FFFFFF
##4540C21.007.592.777.59
#FFFFFF7.591.0021.001.00
#0000002.7721.001.0021.00
##FFFFFF7.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059C6
Deuteranopia (green-blind)
#004EC0
Tritanopia (blue-blind)
#00627B
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #4540c2;
/* rgb */ color: rgb(69, 64, 194);
/* oklch */ color: oklch(46.3% 0.196 277.2);
Tailwind
colors: {
  custom: {
    50: '#8776d6',
    500: '#4540c2',
    950: '#000000',
  },
}
SCSS
$custom: #4540c2;
$custom-light: #8776d6;
$custom-dark: #000000;
JSON
{
  "hex": "#4540c2",
  "rgb": {
    "r": 69,
    "g": 64,
    "b": 194
  },
  "hsl": {
    "h": 242.308,
    "s": 51.587,
    "l": 50.588
  },
  "oklch": {
    "l": 0.46264,
    "c": 0.19563,
    "h": 277.2
  },
  "luminance": 0.08827
}

Semantic roles & 50–950 ramp

primary
#4540C2
secondary
#CACC92
accent
#DB4DD6
background
#F9F7FD
surface
#F1EDFA
border
#CBC8D3
text
#0D0814
muted
#7E7B83

Preview Lab

Preview with #4540C2

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

Preview Lab → · Contrast checker → · Palette generator →

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