#3540B2#3540B2

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

Color values

HEX#3540B2
RGBrgb(53, 64, 178)
HSLhsl(235, 54%, 45%)
HSVhsv(235, 70%, 70%)
CMYKcmyk(70.2%, 64%, 0%, 30.2%)
CIE-LABlab(33.21, 33.98, -61.87)
CIE-LCHlch(33.21, 70.58, 298.77°)
OKLaboklab(43.79% 0.0072 -0.1786)
OKLCHoklch(43.79% 0.179 272.3)
XYZxyz(11.3348, 7.6369, 42.9876)
Luminance0.0764 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3540B2 #B2A735
analogous
#357EB2 #3540B2 #6835B2
triadic
#3540B2 #B23540 #40B235
tetradic
#3540B2 #B2357E #B2A735 #35B268
square
#3540B2 #B2357E #B2A735 #35B268
split-complementary
#3540B2 #B26835 #7EB235
monochromatic
#191E54 #272F83 #3540B2 #5762CD #868EDB

Accessibility & contrast

On white

8.31
#3540B2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.53
#3540B2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3540B2
8.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3540B2#FFFFFF#000000##FFFFFF
##3540B21.008.312.538.31
#FFFFFF8.311.0021.001.00
#0000002.5321.001.0021.00
##FFFFFF8.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054B6
Deuteranopia (green-blind)
#0048B0
Tritanopia (blue-blind)
#005D73
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #3540b2;
/* rgb */ color: rgb(53, 64, 178);
/* oklch */ color: oklch(43.8% 0.179 272.3);
Tailwind
colors: {
  custom: {
    50: '#7d75ca',
    500: '#3540b2',
    950: '#000000',
  },
}
SCSS
$custom: #3540b2;
$custom-light: #7d75ca;
$custom-dark: #000000;
JSON
{
  "hex": "#3540b2",
  "rgb": {
    "r": 53,
    "g": 64,
    "b": 178
  },
  "hsl": {
    "h": 234.72,
    "s": 54.113,
    "l": 45.294
  },
  "oklch": {
    "l": 0.43792,
    "c": 0.17879,
    "h": 272.3
  },
  "luminance": 0.07638
}

Semantic roles & 50–950 ramp

primary
#3540B2
secondary
#C5BF7E
accent
#D14ADD
background
#F8F7FC
surface
#EFEDF8
border
#CAC8D1
text
#0B0813
muted
#7C7B82

Preview Lab

Preview with #3540B2

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

Preview Lab → · Contrast checker → · Palette generator →

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