#3540A2#3540A2

#3540A2 is a dark, vivid blue. Relative luminance 0.070; OKLCH L 42.4% C 0.157 H 272.8°. Best body text is #FFFFFF at 8.73:1 contrast (WCAG AA passes).

Color values

HEX#3540A2
RGBrgb(53, 64, 162)
HSLhsl(234, 51%, 42%)
HSVhsv(234, 67%, 64%)
CMYKcmyk(67.3%, 60.5%, 0%, 36.5%)
CIE-LABlab(31.88, 28.25, -54.47)
CIE-LCHlch(31.88, 61.37, 297.41°)
OKLaboklab(42.39% 0.0078 -0.1569)
OKLCHoklch(42.39% 0.157 272.8)
XYZxyz(9.8210, 7.0314, 35.0151)
Luminance0.0703 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3540A2 #A29735
analogous
#3577A2 #3540A2 #6135A2
triadic
#3540A2 #A23540 #40A235
tetradic
#3540A2 #A23577 #A29735 #35A261
square
#3540A2 #A23577 #A29735 #35A261
split-complementary
#3540A2 #A26135 #77A235
monochromatic
#171C46 #262E74 #3540A2 #4F5BC5 #7D86D4

Accessibility & contrast

On white

8.73
#3540A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3540A2
8.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3540A2#FFFFFF#000000##FFFFFF
##3540A21.008.732.418.73
#FFFFFF8.731.0021.001.00
#0000002.4121.001.0021.00
##FFFFFF8.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050A5
Deuteranopia (green-blind)
#0046A0
Tritanopia (blue-blind)
#00586A
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #3540a2;
/* rgb */ color: rgb(53, 64, 162);
/* oklch */ color: oklch(42.4% 0.157 272.8);
Tailwind
colors: {
  custom: {
    50: '#7a74be',
    500: '#3540a2',
    950: '#000000',
  },
}
SCSS
$custom: #3540a2;
$custom-light: #7a74be;
$custom-dark: #000000;
JSON
{
  "hex": "#3540a2",
  "rgb": {
    "r": 53,
    "g": 64,
    "b": 162
  },
  "hsl": {
    "h": 233.945,
    "s": 50.698,
    "l": 42.157
  },
  "oklch": {
    "l": 0.42391,
    "c": 0.15713,
    "h": 272.8
  },
  "luminance": 0.07032
}

Semantic roles & 50–950 ramp

primary
#3540A2
secondary
#BDB675
accent
#CC4EDA
background
#F7F7FB
surface
#EEEDF7
border
#C9C8D0
text
#0A0812
muted
#7C7B81

Preview Lab

Preview with #3540A2

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

Preview Lab → · Contrast checker → · Palette generator →

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