#3540AA#3540AA

#3540AA is a dark, vivid blue. Relative luminance 0.073; OKLCH L 43.1% C 0.168 H 272.6°. Best body text is #FFFFFF at 8.52:1 contrast (WCAG AA passes).

Color values

HEX#3540AA
RGBrgb(53, 64, 170)
HSLhsl(234, 52%, 44%)
HSVhsv(234, 69%, 67%)
CMYKcmyk(68.8%, 62.4%, 0%, 33.3%)
CIE-LABlab(32.54, 31.13, -58.21)
CIE-LCHlch(32.54, 66.01, 298.13°)
OKLaboklab(43.08% 0.0076 -0.1679)
OKLCHoklch(43.08% 0.168 272.6)
XYZxyz(10.5549, 7.3250, 38.8800)
Luminance0.0733 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3540AA #AA9F35
analogous
#357AAA #3540AA #6435AA
triadic
#3540AA #AA3540 #40AA35
tetradic
#3540AA #AA357A #AA9F35 #35AA64
square
#3540AA #AA357A #AA9F35 #35AA64
split-complementary
#3540AA #AA6435 #7AAA35
monochromatic
#181D4D #262E7B #3540AA #535EC9 #828AD8

Accessibility & contrast

On white

8.52
#3540AA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.47
#3540AA on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##3540AA#FFFFFF#000000##FFFFFF
##3540AA1.008.522.478.52
#FFFFFF8.521.0021.001.00
#0000002.4721.001.0021.00
##FFFFFF8.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052AD
Deuteranopia (green-blind)
#0047A8
Tritanopia (blue-blind)
#005B6F
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #3540aa;
/* rgb */ color: rgb(53, 64, 170);
/* oklch */ color: oklch(43.1% 0.168 272.6);
Tailwind
colors: {
  custom: {
    50: '#7b75c4',
    500: '#3540aa',
    950: '#000000',
  },
}
SCSS
$custom: #3540aa;
$custom-light: #7b75c4;
$custom-dark: #000000;
JSON
{
  "hex": "#3540aa",
  "rgb": {
    "r": 53,
    "g": 64,
    "b": 170
  },
  "hsl": {
    "h": 234.359,
    "s": 52.466,
    "l": 43.725
  },
  "oklch": {
    "l": 0.43082,
    "c": 0.16808,
    "h": 272.6
  },
  "luminance": 0.07326
}

Semantic roles & 50–950 ramp

primary
#3540AA
secondary
#C1BB7A
accent
#CE4CDC
background
#F8F7FC
surface
#EFEDF8
border
#CAC8D1
text
#0B0813
muted
#7C7B82

Preview Lab

Preview with #3540AA

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

Preview Lab → · Contrast checker → · Palette generator →

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