#4540AF#4540AF

#4540AF is a dark, vivid blue. Relative luminance 0.080; OKLCH L 44.6% C 0.171 H 278.9°. Best body text is #FFFFFF at 8.06:1 contrast (WCAG AA passes).

Color values

HEX#4540AF
RGBrgb(69, 64, 175)
HSLhsl(243, 46%, 47%)
HSVhsv(243, 63%, 69%)
CMYKcmyk(60.6%, 63.4%, 0%, 31.4%)
CIE-LABlab(34.04, 35.31, -58.70)
CIE-LCHlch(34.04, 68.50, 301.03°)
OKLaboklab(44.6% 0.0264 -0.1689)
OKLCHoklch(44.6% 0.171 278.9)
XYZxyz(12.0230, 8.0263, 41.4648)
Luminance0.0803 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4540AF #AAAF40
analogous
#4073AF #4540AF #7D40AF
triadic
#4540AF #AF4540 #40AF45
tetradic
#4540AF #AF4073 #AAAF40 #40AF7D
square
#4540AF #AF4073 #AAAF40 #40AF7D
split-complementary
#4540AF #AF7D40 #73AF40
monochromatic
#221F55 #333082 #4540AF #6A65C7 #9592D7

Accessibility & contrast

On white

8.06
#4540AF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.61
#4540AF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4540AF
8.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4540AF#FFFFFF#000000##FFFFFF
##4540AF1.008.062.618.06
#FFFFFF8.061.0021.001.00
#0000002.6121.001.0021.00
##FFFFFF8.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054B3
Deuteranopia (green-blind)
#004CAD
Tritanopia (blue-blind)
#005C71
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #4540af;
/* rgb */ color: rgb(69, 64, 175);
/* oklch */ color: oklch(44.6% 0.171 278.9);
Tailwind
colors: {
  custom: {
    50: '#8475c8',
    500: '#4540af',
    950: '#000000',
  },
}
SCSS
$custom: #4540af;
$custom-light: #8475c8;
$custom-dark: #000000;
JSON
{
  "hex": "#4540af",
  "rgb": {
    "r": 69,
    "g": 64,
    "b": 175
  },
  "hsl": {
    "h": 242.703,
    "s": 46.444,
    "l": 46.863
  },
  "oklch": {
    "l": 0.44596,
    "c": 0.17096,
    "h": 278.9
  },
  "luminance": 0.08027
}

Semantic roles & 50–950 ramp

primary
#4540AF
secondary
#C0C388
accent
#D652D0
background
#F8F7FC
surface
#F0EDF8
border
#CBC8D1
text
#0C0813
muted
#7D7B82

Preview Lab

Preview with #4540AF

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

Preview Lab → · Contrast checker → · Palette generator →

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