#4540B2#4540B2

#4540B2 is a dark, vivid blue. Relative luminance 0.081; OKLCH L 44.9% C 0.175 H 278.6°. Best body text is #FFFFFF at 7.99:1 contrast (WCAG AA passes).

Color values

HEX#4540B2
RGBrgb(69, 64, 178)
HSLhsl(243, 47%, 47%)
HSVhsv(243, 64%, 70%)
CMYKcmyk(61.2%, 64%, 0%, 30.2%)
CIE-LABlab(34.28, 36.31, -60.08)
CIE-LCHlch(34.28, 70.20, 301.15°)
OKLaboklab(44.85% 0.0262 -0.173)
OKLCHoklch(44.85% 0.175 278.6)
XYZxyz(12.3210, 8.1454, 43.0338)
Luminance0.0815 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4540B2 #ADB240
analogous
#4074B2 #4540B2 #7E40B2
triadic
#4540B2 #B24540 #40B245
tetradic
#4540B2 #B24074 #ADB240 #40B27E
square
#4540B2 #B24074 #ADB240 #40B27E
split-complementary
#4540B2 #B27E40 #74B240
monochromatic
#222058 #343085 #4540B2 #6B67C8 #9794D8

Accessibility & contrast

On white

7.99
#4540B2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.63
#4540B2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4540B2
7.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4540B2#FFFFFF#000000##FFFFFF
##4540B21.007.992.637.99
#FFFFFF7.991.0021.001.00
#0000002.6321.001.0021.00
##FFFFFF7.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055B6
Deuteranopia (green-blind)
#004CB0
Tritanopia (blue-blind)
#005D73
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #4540b2;
/* rgb */ color: rgb(69, 64, 178);
/* oklch */ color: oklch(44.9% 0.175 278.6);
Tailwind
colors: {
  custom: {
    50: '#8475ca',
    500: '#4540b2',
    950: '#000000',
  },
}
SCSS
$custom: #4540b2;
$custom-light: #8475ca;
$custom-dark: #000000;
JSON
{
  "hex": "#4540b2",
  "rgb": {
    "r": 69,
    "g": 64,
    "b": 178
  },
  "hsl": {
    "h": 242.632,
    "s": 47.107,
    "l": 47.451
  },
  "oklch": {
    "l": 0.44853,
    "c": 0.17493,
    "h": 278.6
  },
  "luminance": 0.08146
}

Semantic roles & 50–950 ramp

primary
#4540B2
secondary
#C1C48A
accent
#D751D1
background
#F8F7FC
surface
#F0EDF8
border
#CBC8D1
text
#0C0813
muted
#7D7B82

Preview Lab

Preview with #4540B2

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

Preview Lab → · Contrast checker → · Palette generator →

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