#3540A5#3540A5

#3540A5 is a dark, vivid blue. Relative luminance 0.071; OKLCH L 42.6% C 0.161 H 272.8°. Best body text is #FFFFFF at 8.65:1 contrast (WCAG AA passes).

Color values

HEX#3540A5
RGBrgb(53, 64, 165)
HSLhsl(234, 51%, 43%)
HSVhsv(234, 68%, 65%)
CMYKcmyk(67.9%, 61.2%, 0%, 35.3%)
CIE-LABlab(32.12, 29.33, -55.88)
CIE-LCHlch(32.12, 63.11, 297.69°)
OKLaboklab(42.65% 0.0077 -0.1611)
OKLCHoklch(42.65% 0.161 272.8)
XYZxyz(10.0909, 7.1394, 36.4363)
Luminance0.0714 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3540A5 #A59A35
analogous
#3578A5 #3540A5 #6235A5
triadic
#3540A5 #A53540 #40A535
tetradic
#3540A5 #A53578 #A59A35 #35A562
square
#3540A5 #A53578 #A59A35 #35A562
split-complementary
#3540A5 #A56235 #78A535
monochromatic
#171C48 #262E77 #3540A5 #505CC7 #7F87D6

Accessibility & contrast

On white

8.65
#3540A5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.43
#3540A5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3540A5
8.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3540A5#FFFFFF#000000##FFFFFF
##3540A51.008.652.438.65
#FFFFFF8.651.0021.001.00
#0000002.4321.001.0021.00
##FFFFFF8.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051A8
Deuteranopia (green-blind)
#0047A3
Tritanopia (blue-blind)
#00596C
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #3540a5;
/* rgb */ color: rgb(53, 64, 165);
/* oklch */ color: oklch(42.6% 0.161 272.8);
Tailwind
colors: {
  custom: {
    50: '#7a74c1',
    500: '#3540a5',
    950: '#000000',
  },
}
SCSS
$custom: #3540a5;
$custom-light: #7a74c1;
$custom-dark: #000000;
JSON
{
  "hex": "#3540a5",
  "rgb": {
    "r": 53,
    "g": 64,
    "b": 165
  },
  "hsl": {
    "h": 234.107,
    "s": 51.376,
    "l": 42.745
  },
  "oklch": {
    "l": 0.42648,
    "c": 0.16127,
    "h": 272.8
  },
  "luminance": 0.0714
}

Semantic roles & 50–950 ramp

primary
#3540A5
secondary
#BFB877
accent
#CD4DDB
background
#F8F7FB
surface
#EFEDF7
border
#CAC8D0
text
#0A0812
muted
#7C7B81

Preview Lab

Preview with #3540A5

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

Preview Lab → · Contrast checker → · Palette generator →

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