#3540B1#3540B1

#3540B1 is a dark, vivid blue. Relative luminance 0.076; OKLCH L 43.7% C 0.177 H 272.3°. Best body text is #FFFFFF at 8.33:1 contrast (WCAG AA passes).

Color values

HEX#3540B1
RGBrgb(53, 64, 177)
HSLhsl(235, 54%, 45%)
HSVhsv(235, 70%, 69%)
CMYKcmyk(70.1%, 63.8%, 0%, 30.6%)
CIE-LABlab(33.13, 33.62, -61.41)
CIE-LCHlch(33.13, 70.01, 298.70°)
OKLaboklab(43.7% 0.0073 -0.1773)
OKLCHoklch(43.7% 0.177 272.3)
XYZxyz(11.2347, 7.5969, 42.4607)
Luminance0.0760 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3540B1 #B1A635
analogous
#357EB1 #3540B1 #6835B1
triadic
#3540B1 #B13540 #40B135
tetradic
#3540B1 #B1357E #B1A635 #35B168
square
#3540B1 #B1357E #B1A635 #35B168
split-complementary
#3540B1 #B16835 #7EB135
monochromatic
#191E53 #272F82 #3540B1 #5761CD #868DDB

Accessibility & contrast

On white

8.33
#3540B1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.52
#3540B1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3540B1
8.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3540B1#FFFFFF#000000##FFFFFF
##3540B11.008.332.528.33
#FFFFFF8.331.0021.001.00
#0000002.5221.001.0021.00
##FFFFFF8.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054B5
Deuteranopia (green-blind)
#0048AF
Tritanopia (blue-blind)
#005D72
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #3540b1;
/* rgb */ color: rgb(53, 64, 177);
/* oklch */ color: oklch(43.7% 0.177 272.3);
Tailwind
colors: {
  custom: {
    50: '#7d75c9',
    500: '#3540b1',
    950: '#000000',
  },
}
SCSS
$custom: #3540b1;
$custom-light: #7d75c9;
$custom-dark: #000000;
JSON
{
  "hex": "#3540b1",
  "rgb": {
    "r": 53,
    "g": 64,
    "b": 177
  },
  "hsl": {
    "h": 234.677,
    "s": 53.913,
    "l": 45.098
  },
  "oklch": {
    "l": 0.43702,
    "c": 0.17746,
    "h": 272.3
  },
  "luminance": 0.07598
}

Semantic roles & 50–950 ramp

primary
#3540B1
secondary
#C4BE7D
accent
#D04BDD
background
#F8F7FC
surface
#EFEDF8
border
#CAC8D1
text
#0B0813
muted
#7C7B82

Preview Lab

Preview with #3540B1

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

Preview Lab → · Contrast checker → · Palette generator →

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