#3540B4#3540B4

#3540B4 is a dark, vivid blue. Relative luminance 0.077; OKLCH L 44.0% C 0.181 H 272.2°. Best body text is #FFFFFF at 8.26:1 contrast (WCAG AA passes).

Color values

HEX#3540B4
RGBrgb(53, 64, 180)
HSLhsl(235, 55%, 46%)
HSVhsv(235, 71%, 71%)
CMYKcmyk(70.6%, 64.4%, 0%, 29.4%)
CIE-LABlab(33.39, 34.68, -62.77)
CIE-LCHlch(33.39, 71.72, 298.92°)
OKLaboklab(43.97% 0.0071 -0.1813)
OKLCHoklch(43.97% 0.181 272.2)
XYZxyz(11.5370, 7.7178, 44.0528)
Luminance0.0772 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3540B4 #B4A935
analogous
#357FB4 #3540B4 #6935B4
triadic
#3540B4 #B43540 #40B435
tetradic
#3540B4 #B4357F #B4A935 #35B469
square
#3540B4 #B4357F #B4A935 #35B469
split-complementary
#3540B4 #B46935 #7FB435
monochromatic
#191E55 #272F85 #3540B4 #5862CE #888FDC

Accessibility & contrast

On white

8.26
#3540B4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.54
#3540B4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3540B4
8.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3540B4#FFFFFF#000000##FFFFFF
##3540B41.008.262.548.26
#FFFFFF8.261.0021.001.00
#0000002.5421.001.0021.00
##FFFFFF8.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054B8
Deuteranopia (green-blind)
#0049B2
Tritanopia (blue-blind)
#005E74
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #3540b4;
/* rgb */ color: rgb(53, 64, 180);
/* oklch */ color: oklch(44.0% 0.181 272.2);
Tailwind
colors: {
  custom: {
    50: '#7e75cb',
    500: '#3540b4',
    950: '#000000',
  },
}
SCSS
$custom: #3540b4;
$custom-light: #7e75cb;
$custom-dark: #000000;
JSON
{
  "hex": "#3540b4",
  "rgb": {
    "r": 53,
    "g": 64,
    "b": 180
  },
  "hsl": {
    "h": 234.803,
    "s": 54.506,
    "l": 45.686
  },
  "oklch": {
    "l": 0.43972,
    "c": 0.18143,
    "h": 272.2
  },
  "luminance": 0.07719
}

Semantic roles & 50–950 ramp

primary
#3540B4
secondary
#C6C07F
accent
#D14ADE
background
#F8F7FC
surface
#EFEDF9
border
#CAC8D2
text
#0B0813
muted
#7C7B82

Preview Lab

Preview with #3540B4

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

Preview Lab → · Contrast checker → · Palette generator →

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