#3540A9#3540A9

#3540A9 is a dark, vivid blue. Relative luminance 0.073; OKLCH L 43.0% C 0.167 H 272.6°. Best body text is #FFFFFF at 8.54:1 contrast (WCAG AA passes).

Color values

HEX#3540A9
RGBrgb(53, 64, 169)
HSLhsl(234, 52%, 44%)
HSVhsv(234, 69%, 66%)
CMYKcmyk(68.6%, 62.1%, 0%, 33.7%)
CIE-LABlab(32.45, 30.77, -57.75)
CIE-LCHlch(32.45, 65.43, 298.05°)
OKLaboklab(43% 0.0076 -0.1665)
OKLCHoklch(43% 0.167 272.6)
XYZxyz(10.4606, 7.2873, 38.3837)
Luminance0.0729 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3540A9 #A99E35
analogous
#357AA9 #3540A9 #6435A9
triadic
#3540A9 #A93540 #40A935
tetradic
#3540A9 #A9357A #A99E35 #35A964
square
#3540A9 #A9357A #A99E35 #35A964
split-complementary
#3540A9 #A96435 #7AA935
monochromatic
#181D4C #262E7A #3540A9 #525EC9 #8189D7

Accessibility & contrast

On white

8.54
#3540A9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.46
#3540A9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3540A9
8.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3540A9#FFFFFF#000000##FFFFFF
##3540A91.008.542.468.54
#FFFFFF8.541.0021.001.00
#0000002.4621.001.0021.00
##FFFFFF8.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052AC
Deuteranopia (green-blind)
#0047A7
Tritanopia (blue-blind)
#005B6E
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #3540a9;
/* rgb */ color: rgb(53, 64, 169);
/* oklch */ color: oklch(43.0% 0.167 272.6);
Tailwind
colors: {
  custom: {
    50: '#7b75c3',
    500: '#3540a9',
    950: '#000000',
  },
}
SCSS
$custom: #3540a9;
$custom-light: #7b75c3;
$custom-dark: #000000;
JSON
{
  "hex": "#3540a9",
  "rgb": {
    "r": 53,
    "g": 64,
    "b": 169
  },
  "hsl": {
    "h": 234.31,
    "s": 52.252,
    "l": 43.529
  },
  "oklch": {
    "l": 0.42995,
    "c": 0.16672,
    "h": 272.6
  },
  "luminance": 0.07288
}

Semantic roles & 50–950 ramp

primary
#3540A9
secondary
#C1BA79
accent
#CE4CDC
background
#F8F7FC
surface
#EFEDF8
border
#CAC8D1
text
#0B0813
muted
#7C7B82

Preview Lab

Preview with #3540A9

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

Preview Lab → · Contrast checker → · Palette generator →

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