#3540B0#3540B0

#3540B0 is a dark, vivid blue. Relative luminance 0.076; OKLCH L 43.6% C 0.176 H 272.4°. Best body text is #FFFFFF at 8.36:1 contrast (WCAG AA passes).

Color values

HEX#3540B0
RGBrgb(53, 64, 176)
HSLhsl(235, 54%, 45%)
HSVhsv(235, 70%, 69%)
CMYKcmyk(69.9%, 63.6%, 0%, 31%)
CIE-LABlab(33.04, 33.27, -60.96)
CIE-LCHlch(33.04, 69.44, 298.62°)
OKLaboklab(43.61% 0.0073 -0.176)
OKLCHoklch(43.61% 0.176 272.4)
XYZxyz(11.1354, 7.5572, 41.9377)
Luminance0.0756 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3540B0 #B0A535
analogous
#357EB0 #3540B0 #6735B0
triadic
#3540B0 #B03540 #40B035
tetradic
#3540B0 #B0357E #B0A535 #35B067
square
#3540B0 #B0357E #B0A535 #35B067
split-complementary
#3540B0 #B06735 #7EB035
monochromatic
#191E52 #272F81 #3540B0 #5661CC #858DDA

Accessibility & contrast

On white

8.36
#3540B0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.51
#3540B0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3540B0
8.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3540B0#FFFFFF#000000##FFFFFF
##3540B01.008.362.518.36
#FFFFFF8.361.0021.001.00
#0000002.5121.001.0021.00
##FFFFFF8.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053B4
Deuteranopia (green-blind)
#0048AE
Tritanopia (blue-blind)
#005D72
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #3540b0;
/* rgb */ color: rgb(53, 64, 176);
/* oklch */ color: oklch(43.6% 0.176 272.4);
Tailwind
colors: {
  custom: {
    50: '#7d75c9',
    500: '#3540b0',
    950: '#000000',
  },
}
SCSS
$custom: #3540b0;
$custom-light: #7d75c9;
$custom-dark: #000000;
JSON
{
  "hex": "#3540b0",
  "rgb": {
    "r": 53,
    "g": 64,
    "b": 176
  },
  "hsl": {
    "h": 234.634,
    "s": 53.712,
    "l": 44.902
  },
  "oklch": {
    "l": 0.43613,
    "c": 0.17613,
    "h": 272.4
  },
  "luminance": 0.07558
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #3540B0

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

Preview Lab → · Contrast checker → · Palette generator →

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