#3540B9#3540B9

#3540B9 is a dark, vivid blue. Relative luminance 0.079; OKLCH L 44.4% C 0.188 H 272.1°. Best body text is #FFFFFF at 8.12:1 contrast (WCAG AA passes).

Color values

HEX#3540B9
RGBrgb(53, 64, 185)
HSLhsl(235, 55%, 47%)
HSVhsv(235, 71%, 73%)
CMYKcmyk(71.4%, 65.4%, 0%, 27.5%)
CIE-LABlab(33.83, 36.45, -65.01)
CIE-LCHlch(33.83, 74.53, 299.28°)
OKLaboklab(44.43% 0.0068 -0.1878)
OKLCHoklch(44.43% 0.188 272.1)
XYZxyz(12.0556, 7.9253, 46.7839)
Luminance0.0793 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3540B9 #B9AE35
analogous
#3582B9 #3540B9 #6C35B9
triadic
#3540B9 #B93540 #40B935
tetradic
#3540B9 #B93582 #B9AE35 #35B96C
square
#3540B9 #B93582 #B9AE35 #35B96C
split-complementary
#3540B9 #B96C35 #82B935
monochromatic
#1A1F5A #273089 #3540B9 #5B65D0 #8B92DE

Accessibility & contrast

On white

8.12
#3540B9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.59
#3540B9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3540B9
8.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3540B9#FFFFFF#000000##FFFFFF
##3540B91.008.122.598.12
#FFFFFF8.121.0021.001.00
#0000002.5921.001.0021.00
##FFFFFF8.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056BD
Deuteranopia (green-blind)
#0049B7
Tritanopia (blue-blind)
#006077
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #3540b9;
/* rgb */ color: rgb(53, 64, 185);
/* oklch */ color: oklch(44.4% 0.188 272.1);
Tailwind
colors: {
  custom: {
    50: '#7f75cf',
    500: '#3540b9',
    950: '#000000',
  },
}
SCSS
$custom: #3540b9;
$custom-light: #7f75cf;
$custom-dark: #000000;
JSON
{
  "hex": "#3540b9",
  "rgb": {
    "r": 53,
    "g": 64,
    "b": 185
  },
  "hsl": {
    "h": 235,
    "s": 55.462,
    "l": 46.667
  },
  "oklch": {
    "l": 0.44428,
    "c": 0.18797,
    "h": 272.1
  },
  "luminance": 0.07926
}

Semantic roles & 50–950 ramp

primary
#3540B9
secondary
#C8C282
accent
#D249DF
background
#F8F7FC
surface
#F0EDF9
border
#CBC8D2
text
#0B0814
muted
#7C7B82

Preview Lab

Preview with #3540B9

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

Preview Lab → · Contrast checker → · Palette generator →

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