#3540AD#3540AD

#3540AD is a dark, vivid blue. Relative luminance 0.074; OKLCH L 43.3% C 0.172 H 272.5°. Best body text is #FFFFFF at 8.44:1 contrast (WCAG AA passes).

Color values

HEX#3540AD
RGBrgb(53, 64, 173)
HSLhsl(235, 53%, 44%)
HSVhsv(235, 69%, 68%)
CMYKcmyk(69.4%, 63%, 0%, 32.2%)
CIE-LABlab(32.79, 32.20, -59.59)
CIE-LCHlch(32.79, 67.73, 298.38°)
OKLaboklab(43.35% 0.0075 -0.172)
OKLCHoklch(43.35% 0.172 272.5)
XYZxyz(10.8419, 7.4398, 40.3917)
Luminance0.0744 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3540AD #ADA235
analogous
#357CAD #3540AD #6635AD
triadic
#3540AD #AD3540 #40AD35
tetradic
#3540AD #AD357C #ADA235 #35AD66
square
#3540AD #AD357C #ADA235 #35AD66
split-complementary
#3540AD #AD6635 #7CAD35
monochromatic
#181D4F #272F7E #3540AD #545FCB #838BD9

Accessibility & contrast

On white

8.44
#3540AD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.49
#3540AD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3540AD
8.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3540AD#FFFFFF#000000##FFFFFF
##3540AD1.008.442.498.44
#FFFFFF8.441.0021.001.00
#0000002.4921.001.0021.00
##FFFFFF8.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053B1
Deuteranopia (green-blind)
#0048AB
Tritanopia (blue-blind)
#005C70
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #3540ad;
/* rgb */ color: rgb(53, 64, 173);
/* oklch */ color: oklch(43.3% 0.172 272.5);
Tailwind
colors: {
  custom: {
    50: '#7c75c6',
    500: '#3540ad',
    950: '#000000',
  },
}
SCSS
$custom: #3540ad;
$custom-light: #7c75c6;
$custom-dark: #000000;
JSON
{
  "hex": "#3540ad",
  "rgb": {
    "r": 53,
    "g": 64,
    "b": 173
  },
  "hsl": {
    "h": 234.5,
    "s": 53.097,
    "l": 44.314
  },
  "oklch": {
    "l": 0.43346,
    "c": 0.17212,
    "h": 272.5
  },
  "luminance": 0.07441
}

Semantic roles & 50–950 ramp

primary
#3540AD
secondary
#C3BC7B
accent
#CF4BDD
background
#F8F7FC
surface
#EFEDF8
border
#CAC8D1
text
#0B0813
muted
#7C7B82

Preview Lab

Preview with #3540AD

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

Preview Lab → · Contrast checker → · Palette generator →

#3540AD Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva