#3540B3#3540B3

#3540B3 is a dark, vivid blue. Relative luminance 0.077; OKLCH L 43.9% C 0.180 H 272.3°. Best body text is #FFFFFF at 8.28:1 contrast (WCAG AA passes).

Color values

HEX#3540B3
RGBrgb(53, 64, 179)
HSLhsl(235, 54%, 45%)
HSVhsv(235, 70%, 70%)
CMYKcmyk(70.4%, 64.2%, 0%, 29.8%)
CIE-LABlab(33.30, 34.33, -62.32)
CIE-LCHlch(33.30, 71.15, 298.85°)
OKLaboklab(43.88% 0.0072 -0.18)
OKLCHoklch(43.88% 0.18 272.3)
XYZxyz(11.4355, 7.6772, 43.5183)
Luminance0.0768 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3540B3 #B3A835
analogous
#357FB3 #3540B3 #6935B3
triadic
#3540B3 #B33540 #40B335
tetradic
#3540B3 #B3357F #B3A835 #35B369
square
#3540B3 #B3357F #B3A835 #35B369
split-complementary
#3540B3 #B36935 #7FB335
monochromatic
#191E55 #272F84 #3540B3 #5862CD #878EDB

Accessibility & contrast

On white

8.28
#3540B3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.54
#3540B3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3540B3
8.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3540B3#FFFFFF#000000##FFFFFF
##3540B31.008.282.548.28
#FFFFFF8.281.0021.001.00
#0000002.5421.001.0021.00
##FFFFFF8.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054B7
Deuteranopia (green-blind)
#0049B1
Tritanopia (blue-blind)
#005E73
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #3540b3;
/* rgb */ color: rgb(53, 64, 179);
/* oklch */ color: oklch(43.9% 0.180 272.3);
Tailwind
colors: {
  custom: {
    50: '#7d75cb',
    500: '#3540b3',
    950: '#000000',
  },
}
SCSS
$custom: #3540b3;
$custom-light: #7d75cb;
$custom-dark: #000000;
JSON
{
  "hex": "#3540b3",
  "rgb": {
    "r": 53,
    "g": 64,
    "b": 179
  },
  "hsl": {
    "h": 234.762,
    "s": 54.31,
    "l": 45.49
  },
  "oklch": {
    "l": 0.43882,
    "c": 0.1801,
    "h": 272.3
  },
  "luminance": 0.07678
}

Semantic roles & 50–950 ramp

primary
#3540B3
secondary
#C5BF7F
accent
#D14ADE
background
#F8F7FC
surface
#EFEDF9
border
#CAC8D2
text
#0B0813
muted
#7C7B82

Preview Lab

Preview with #3540B3

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

Preview Lab → · Contrast checker → · Palette generator →

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