#3540AF#3540AF

#3540AF is a dark, vivid blue. Relative luminance 0.075; OKLCH L 43.5% C 0.175 H 272.4°. Best body text is #FFFFFF at 8.39:1 contrast (WCAG AA passes).

Color values

HEX#3540AF
RGBrgb(53, 64, 175)
HSLhsl(235, 54%, 45%)
HSVhsv(235, 70%, 69%)
CMYKcmyk(69.7%, 63.4%, 0%, 31.4%)
CIE-LABlab(32.96, 32.91, -60.50)
CIE-LCHlch(32.96, 68.87, 298.54°)
OKLaboklab(43.52% 0.0074 -0.1746)
OKLCHoklch(43.52% 0.175 272.4)
XYZxyz(11.0369, 7.5178, 41.4186)
Luminance0.0752 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3540AF #AFA435
analogous
#357DAF #3540AF #6735AF
triadic
#3540AF #AF3540 #40AF35
tetradic
#3540AF #AF357D #AFA435 #35AF67
square
#3540AF #AF357D #AFA435 #35AF67
split-complementary
#3540AF #AF6735 #7DAF35
monochromatic
#191E51 #272F80 #3540AF #5660CC #858CDA

Accessibility & contrast

On white

8.39
#3540AF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.50
#3540AF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3540AF
8.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3540AF#FFFFFF#000000##FFFFFF
##3540AF1.008.392.508.39
#FFFFFF8.391.0021.001.00
#0000002.5021.001.0021.00
##FFFFFF8.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053B3
Deuteranopia (green-blind)
#0048AD
Tritanopia (blue-blind)
#005C71
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #3540af;
/* rgb */ color: rgb(53, 64, 175);
/* oklch */ color: oklch(43.5% 0.175 272.4);
Tailwind
colors: {
  custom: {
    50: '#7c75c8',
    500: '#3540af',
    950: '#000000',
  },
}
SCSS
$custom: #3540af;
$custom-light: #7c75c8;
$custom-dark: #000000;
JSON
{
  "hex": "#3540af",
  "rgb": {
    "r": 53,
    "g": 64,
    "b": 175
  },
  "hsl": {
    "h": 234.59,
    "s": 53.509,
    "l": 44.706
  },
  "oklch": {
    "l": 0.43524,
    "c": 0.1748,
    "h": 272.4
  },
  "luminance": 0.07519
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #3540AF

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

Preview Lab → · Contrast checker → · Palette generator →

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