#3540B5#3540B5

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

Color values

HEX#3540B5
RGBrgb(53, 64, 181)
HSLhsl(235, 55%, 46%)
HSVhsv(235, 71%, 71%)
CMYKcmyk(70.7%, 64.6%, 0%, 29%)
CIE-LABlab(33.48, 35.04, -63.22)
CIE-LCHlch(33.48, 72.28, 299.00°)
OKLaboklab(44.06% 0.007 -0.1826)
OKLCHoklch(44.06% 0.183 272.2)
XYZxyz(11.6393, 7.7587, 44.5913)
Luminance0.0776 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3540B5 #B5AA35
analogous
#3580B5 #3540B5 #6A35B5
triadic
#3540B5 #B53540 #40B535
tetradic
#3540B5 #B53580 #B5AA35 #35B56A
square
#3540B5 #B53580 #B5AA35 #35B56A
split-complementary
#3540B5 #B56A35 #80B535
monochromatic
#191F56 #272F86 #3540B5 #5963CE #888FDC

Accessibility & contrast

On white

8.23
#3540B5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.55
#3540B5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3540B5
8.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3540B5#FFFFFF#000000##FFFFFF
##3540B51.008.232.558.23
#FFFFFF8.231.0021.001.00
#0000002.5521.001.0021.00
##FFFFFF8.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055B9
Deuteranopia (green-blind)
#0049B3
Tritanopia (blue-blind)
#005E74
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #3540b5;
/* rgb */ color: rgb(53, 64, 181);
/* oklch */ color: oklch(44.1% 0.183 272.2);
Tailwind
colors: {
  custom: {
    50: '#7e75cc',
    500: '#3540b5',
    950: '#000000',
  },
}
SCSS
$custom: #3540b5;
$custom-light: #7e75cc;
$custom-dark: #000000;
JSON
{
  "hex": "#3540b5",
  "rgb": {
    "r": 53,
    "g": 64,
    "b": 181
  },
  "hsl": {
    "h": 234.844,
    "s": 54.701,
    "l": 45.882
  },
  "oklch": {
    "l": 0.44063,
    "c": 0.18274,
    "h": 272.2
  },
  "luminance": 0.0776
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #3540B5

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

Preview Lab → · Contrast checker → · Palette generator →

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