#3540B7#3540B7

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

Color values

HEX#3540B7
RGBrgb(53, 64, 183)
HSLhsl(235, 55%, 46%)
HSVhsv(235, 71%, 72%)
CMYKcmyk(71%, 65%, 0%, 28.2%)
CIE-LABlab(33.65, 35.74, -64.12)
CIE-LCHlch(33.65, 73.41, 299.14°)
OKLaboklab(44.25% 0.0069 -0.1852)
OKLCHoklch(44.25% 0.185 272.1)
XYZxyz(11.8460, 7.8414, 45.6798)
Luminance0.0784 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3540B7 #B7AC35
analogous
#3581B7 #3540B7 #6B35B7
triadic
#3540B7 #B73540 #40B735
tetradic
#3540B7 #B73581 #B7AC35 #35B76B
square
#3540B7 #B73581 #B7AC35 #35B76B
split-complementary
#3540B7 #B76B35 #81B735
monochromatic
#1A1F58 #272F88 #3540B7 #5A64CF #8991DD

Accessibility & contrast

On white

8.18
#3540B7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.57
#3540B7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3540B7
8.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3540B7#FFFFFF#000000##FFFFFF
##3540B71.008.182.578.18
#FFFFFF8.181.0021.001.00
#0000002.5721.001.0021.00
##FFFFFF8.181.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #3540b7;
/* rgb */ color: rgb(53, 64, 183);
/* oklch */ color: oklch(44.2% 0.185 272.1);
Tailwind
colors: {
  custom: {
    50: '#7e75ce',
    500: '#3540b7',
    950: '#000000',
  },
}
SCSS
$custom: #3540b7;
$custom-light: #7e75ce;
$custom-dark: #000000;
JSON
{
  "hex": "#3540b7",
  "rgb": {
    "r": 53,
    "g": 64,
    "b": 183
  },
  "hsl": {
    "h": 234.923,
    "s": 55.085,
    "l": 46.275
  },
  "oklch": {
    "l": 0.44245,
    "c": 0.18536,
    "h": 272.1
  },
  "luminance": 0.07843
}

Semantic roles & 50–950 ramp

primary
#3540B7
secondary
#C7C181
accent
#D249DE
background
#F8F7FC
surface
#EFEDF9
border
#CAC8D2
text
#0B0814
muted
#7C7B82

Preview Lab

Preview with #3540B7

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

Preview Lab → · Contrast checker → · Palette generator →

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