#3540B6#3540B6

#3540B6 is a dark, vivid blue. Relative luminance 0.078; OKLCH L 44.2% C 0.184 H 272.2°. Best body text is #FFFFFF at 8.20:1 contrast (WCAG AA passes).

Color values

HEX#3540B6
RGBrgb(53, 64, 182)
HSLhsl(235, 55%, 46%)
HSVhsv(235, 71%, 71%)
CMYKcmyk(70.9%, 64.8%, 0%, 28.6%)
CIE-LABlab(33.56, 35.39, -63.67)
CIE-LCHlch(33.56, 72.84, 299.07°)
OKLaboklab(44.15% 0.007 -0.1839)
OKLCHoklch(44.15% 0.184 272.2)
XYZxyz(11.7422, 7.7999, 45.1336)
Luminance0.0780 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3540B6 #B6AB35
analogous
#3580B6 #3540B6 #6A35B6
triadic
#3540B6 #B63540 #40B635
tetradic
#3540B6 #B63580 #B6AB35 #35B66A
square
#3540B6 #B63580 #B6AB35 #35B66A
split-complementary
#3540B6 #B66A35 #80B635
monochromatic
#191F57 #272F87 #3540B6 #5963CF #8990DD

Accessibility & contrast

On white

8.20
#3540B6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.56
#3540B6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3540B6
8.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3540B6#FFFFFF#000000##FFFFFF
##3540B61.008.202.568.20
#FFFFFF8.201.0021.001.00
#0000002.5621.001.0021.00
##FFFFFF8.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055BA
Deuteranopia (green-blind)
#0049B4
Tritanopia (blue-blind)
#005F75
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #3540b6;
/* rgb */ color: rgb(53, 64, 182);
/* oklch */ color: oklch(44.2% 0.184 272.2);
Tailwind
colors: {
  custom: {
    50: '#7e75cd',
    500: '#3540b6',
    950: '#000000',
  },
}
SCSS
$custom: #3540b6;
$custom-light: #7e75cd;
$custom-dark: #000000;
JSON
{
  "hex": "#3540b6",
  "rgb": {
    "r": 53,
    "g": 64,
    "b": 182
  },
  "hsl": {
    "h": 234.884,
    "s": 54.894,
    "l": 46.078
  },
  "oklch": {
    "l": 0.44154,
    "c": 0.18405,
    "h": 272.2
  },
  "luminance": 0.07801
}

Semantic roles & 50–950 ramp

primary
#3540B6
secondary
#C7C180
accent
#D24ADE
background
#F8F7FC
surface
#EFEDF9
border
#CAC8D2
text
#0B0814
muted
#7C7B82

Preview Lab

Preview with #3540B6

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

Preview Lab → · Contrast checker → · Palette generator →

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