#3540BA#3540BA

#3540BA is a dark, vivid blue. Relative luminance 0.080; OKLCH L 44.5% C 0.189 H 272.0°. Best body text is #FFFFFF at 8.10:1 contrast (WCAG AA passes).

Color values

HEX#3540BA
RGBrgb(53, 64, 186)
HSLhsl(235, 56%, 47%)
HSVhsv(235, 72%, 73%)
CMYKcmyk(71.5%, 65.6%, 0%, 27.1%)
CIE-LABlab(33.92, 36.80, -65.45)
CIE-LCHlch(33.92, 75.09, 299.35°)
OKLaboklab(44.52% 0.0067 -0.1892)
OKLCHoklch(44.52% 0.189 272)
XYZxyz(12.1615, 7.9676, 47.3418)
Luminance0.0797 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3540BA #BAAF35
analogous
#3582BA #3540BA #6D35BA
triadic
#3540BA #BA3540 #40BA35
tetradic
#3540BA #BA3582 #BAAF35 #35BA6D
square
#3540BA #BA3582 #BAAF35 #35BA6D
split-complementary
#3540BA #BA6D35 #82BA35
monochromatic
#1A1F5B #27308A #3540BA #5C65D0 #8B92DE

Accessibility & contrast

On white

8.10
#3540BA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.59
#3540BA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3540BA
8.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3540BA#FFFFFF#000000##FFFFFF
##3540BA1.008.102.598.10
#FFFFFF8.101.0021.001.00
#0000002.5921.001.0021.00
##FFFFFF8.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056BE
Deuteranopia (green-blind)
#004AB8
Tritanopia (blue-blind)
#006077
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #3540ba;
/* rgb */ color: rgb(53, 64, 186);
/* oklch */ color: oklch(44.5% 0.189 272.0);
Tailwind
colors: {
  custom: {
    50: '#7f75d0',
    500: '#3540ba',
    950: '#000000',
  },
}
SCSS
$custom: #3540ba;
$custom-light: #7f75d0;
$custom-dark: #000000;
JSON
{
  "hex": "#3540ba",
  "rgb": {
    "r": 53,
    "g": 64,
    "b": 186
  },
  "hsl": {
    "h": 235.038,
    "s": 55.649,
    "l": 46.863
  },
  "oklch": {
    "l": 0.4452,
    "c": 0.18927,
    "h": 272
  },
  "luminance": 0.07969
}

Semantic roles & 50–950 ramp

primary
#3540BA
secondary
#C8C382
accent
#D349DF
background
#F8F7FC
surface
#F0EDF9
border
#CBC8D2
text
#0B0814
muted
#7C7B82

Preview Lab

Preview with #3540BA

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

Preview Lab → · Contrast checker → · Palette generator →

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