#3540D2#3540D2

#3540D2 is a mid, highly saturated blue. Relative luminance 0.091; OKLCH L 46.8% C 0.220 H 271.1°. Best body text is #FFFFFF at 7.46:1 contrast (WCAG AA passes).

Color values

HEX#3540D2
RGBrgb(53, 64, 210)
HSLhsl(236, 64%, 52%)
HSVhsv(236, 75%, 82%)
CMYKcmyk(74.8%, 69.5%, 0%, 17.6%)
CIE-LABlab(36.13, 45.09, -75.83)
CIE-LCHlch(36.13, 88.22, 300.74°)
OKLaboklab(46.8% 0.0043 -0.2195)
OKLCHoklch(46.8% 0.22 271.1)
XYZxyz(14.9305, 9.0752, 61.9251)
Luminance0.0908 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3540D2 #D2C735
analogous
#358FD2 #3540D2 #7935D2
triadic
#3540D2 #D23540 #40D235
tetradic
#3540D2 #D2358F #D2C735 #35D279
square
#3540D2 #D2358F #D2C735 #35D279
split-complementary
#3540D2 #D27935 #8FD235
monochromatic
#1A2073 #252EA5 #3540D2 #676FDD #999FE8

Accessibility & contrast

On white

7.46
#3540D2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.82
#3540D2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##3540D2#FFFFFF#000000##FFFFFF
##3540D21.007.462.827.46
#FFFFFF7.461.0021.001.00
#0000002.8221.001.0021.00
##FFFFFF7.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DD6
Deuteranopia (green-blind)
#004DCF
Tritanopia (blue-blind)
#006984
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #3540d2;
/* rgb */ color: rgb(53, 64, 210);
/* oklch */ color: oklch(46.8% 0.220 271.1);
Tailwind
colors: {
  custom: {
    50: '#8476e1',
    500: '#3540d2',
    950: '#000000',
  },
}
SCSS
$custom: #3540d2;
$custom-light: #8476e1;
$custom-dark: #000000;
JSON
{
  "hex": "#3540d2",
  "rgb": {
    "r": 53,
    "g": 64,
    "b": 210
  },
  "hsl": {
    "h": 235.796,
    "s": 63.563,
    "l": 51.569
  },
  "oklch": {
    "l": 0.46798,
    "c": 0.2195,
    "h": 271.1
  },
  "luminance": 0.09077
}

Semantic roles & 50–950 ramp

primary
#3540D2
secondary
#D4CF8F
accent
#DB41E7
background
#F9F7FE
surface
#F1EDFC
border
#CBC8D5
text
#0D0815
muted
#7E7B84

Preview Lab

Preview with #3540D2

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

Preview Lab → · Contrast checker → · Palette generator →

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