#3540A3#3540A3

#3540A3 is a dark, vivid blue. Relative luminance 0.071; OKLCH L 42.5% C 0.159 H 272.8°. Best body text is #FFFFFF at 8.70:1 contrast (WCAG AA passes).

Color values

HEX#3540A3
RGBrgb(53, 64, 163)
HSLhsl(234, 51%, 42%)
HSVhsv(234, 67%, 64%)
CMYKcmyk(67.5%, 60.7%, 0%, 36.1%)
CIE-LABlab(31.96, 28.61, -54.95)
CIE-LCHlch(31.96, 61.95, 297.51°)
OKLaboklab(42.48% 0.0078 -0.1583)
OKLCHoklch(42.48% 0.159 272.8)
XYZxyz(9.9102, 7.0671, 35.4851)
Luminance0.0707 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3540A3 #A39835
analogous
#3577A3 #3540A3 #6135A3
triadic
#3540A3 #A33540 #40A335
tetradic
#3540A3 #A33577 #A39835 #35A361
square
#3540A3 #A33577 #A39835 #35A361
split-complementary
#3540A3 #A36135 #77A335
monochromatic
#171C47 #262E75 #3540A3 #4F5BC6 #7E86D5

Accessibility & contrast

On white

8.70
#3540A3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.41
#3540A3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3540A3
8.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3540A3#FFFFFF#000000##FFFFFF
##3540A31.008.702.418.70
#FFFFFF8.701.0021.001.00
#0000002.4121.001.0021.00
##FFFFFF8.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050A6
Deuteranopia (green-blind)
#0046A1
Tritanopia (blue-blind)
#00596B
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #3540a3;
/* rgb */ color: rgb(53, 64, 163);
/* oklch */ color: oklch(42.5% 0.159 272.8);
Tailwind
colors: {
  custom: {
    50: '#7a74bf',
    500: '#3540a3',
    950: '#000000',
  },
}
SCSS
$custom: #3540a3;
$custom-light: #7a74bf;
$custom-dark: #000000;
JSON
{
  "hex": "#3540a3",
  "rgb": {
    "r": 53,
    "g": 64,
    "b": 163
  },
  "hsl": {
    "h": 234,
    "s": 50.926,
    "l": 42.353
  },
  "oklch": {
    "l": 0.42477,
    "c": 0.15852,
    "h": 272.8
  },
  "luminance": 0.07068
}

Semantic roles & 50–950 ramp

primary
#3540A3
secondary
#BEB776
accent
#CC4DDA
background
#F7F7FB
surface
#EEEDF7
border
#C9C8D0
text
#0A0812
muted
#7C7B81

Preview Lab

Preview with #3540A3

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

Preview Lab → · Contrast checker → · Palette generator →

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