#3540BC#3540BC

#3540BC is a dark, vivid blue. Relative luminance 0.081; OKLCH L 44.7% C 0.192 H 271.9°. Best body text is #FFFFFF at 8.04:1 contrast (WCAG AA passes).

Color values

HEX#3540BC
RGBrgb(53, 64, 188)
HSLhsl(235, 56%, 47%)
HSVhsv(235, 72%, 74%)
CMYKcmyk(71.8%, 66%, 0%, 26.3%)
CIE-LABlab(34.09, 37.50, -66.34)
CIE-LCHlch(34.09, 76.21, 299.48°)
OKLaboklab(44.71% 0.0065 -0.1917)
OKLCHoklch(44.71% 0.192 271.9)
XYZxyz(12.3756, 8.0533, 48.4694)
Luminance0.0805 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3540BC #BCB135
analogous
#3584BC #3540BC #6D35BC
triadic
#3540BC #BC3540 #40BC35
tetradic
#3540BC #BC3584 #BCB135 #35BC6D
square
#3540BC #BC3584 #BCB135 #35BC6D
split-complementary
#3540BC #BC6D35 #84BC35
monochromatic
#1A1F5D #28308C #3540BC #5D66D1 #8D93DF

Accessibility & contrast

On white

8.04
#3540BC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.61
#3540BC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3540BC
8.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3540BC#FFFFFF#000000##FFFFFF
##3540BC1.008.042.618.04
#FFFFFF8.041.0021.001.00
#0000002.6121.001.0021.00
##FFFFFF8.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057C0
Deuteranopia (green-blind)
#004ABA
Tritanopia (blue-blind)
#006178
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #3540bc;
/* rgb */ color: rgb(53, 64, 188);
/* oklch */ color: oklch(44.7% 0.192 271.9);
Tailwind
colors: {
  custom: {
    50: '#7f75d1',
    500: '#3540bc',
    950: '#000000',
  },
}
SCSS
$custom: #3540bc;
$custom-light: #7f75d1;
$custom-dark: #000000;
JSON
{
  "hex": "#3540bc",
  "rgb": {
    "r": 53,
    "g": 64,
    "b": 188
  },
  "hsl": {
    "h": 235.111,
    "s": 56.017,
    "l": 47.255
  },
  "oklch": {
    "l": 0.44705,
    "c": 0.19185,
    "h": 271.9
  },
  "luminance": 0.08055
}

Semantic roles & 50–950 ramp

primary
#3540BC
secondary
#C9C384
accent
#D348DF
background
#F8F7FD
surface
#F0EDFA
border
#CBC8D3
text
#0C0814
muted
#7D7B83

Preview Lab

Preview with #3540BC

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

Preview Lab → · Contrast checker → · Palette generator →

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