#3540C6#3540C6

#3540C6 is a mid, highly saturated blue. Relative luminance 0.085; OKLCH L 45.6% C 0.205 H 271.6°. Best body text is #FFFFFF at 7.78:1 contrast (WCAG AA passes).

Color values

HEX#3540C6
RGBrgb(53, 64, 198)
HSLhsl(235, 58%, 49%)
HSVhsv(235, 73%, 78%)
CMYKcmyk(73.2%, 67.7%, 0%, 22.4%)
CIE-LABlab(35.00, 40.98, -70.71)
CIE-LCHlch(35.00, 81.73, 300.10°)
OKLaboklab(45.64% 0.0056 -0.2045)
OKLCHoklch(45.64% 0.205 271.6)
XYZxyz(13.4912, 8.4995, 54.3447)
Luminance0.0850 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3540C6 #C6BB35
analogous
#3589C6 #3540C6 #7335C6
triadic
#3540C6 #C63540 #40C635
tetradic
#3540C6 #C63589 #C6BB35 #35C673
square
#3540C6 #C63589 #C6BB35 #35C673
split-complementary
#3540C6 #C67335 #89C635
monochromatic
#1B2165 #283096 #3540C6 #636CD5 #9399E2

Accessibility & contrast

On white

7.78
#3540C6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.70
#3540C6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##3540C6#FFFFFF#000000##FFFFFF
##3540C61.007.782.707.78
#FFFFFF7.781.0021.001.00
#0000002.7021.001.0021.00
##FFFFFF7.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059CA
Deuteranopia (green-blind)
#004BC4
Tritanopia (blue-blind)
#00647E
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #3540c6;
/* rgb */ color: rgb(53, 64, 198);
/* oklch */ color: oklch(45.6% 0.205 271.6);
Tailwind
colors: {
  custom: {
    50: '#8275d8',
    500: '#3540c6',
    950: '#000000',
  },
}
SCSS
$custom: #3540c6;
$custom-light: #8275d8;
$custom-dark: #000000;
JSON
{
  "hex": "#3540c6",
  "rgb": {
    "r": 53,
    "g": 64,
    "b": 198
  },
  "hsl": {
    "h": 235.448,
    "s": 57.769,
    "l": 49.216
  },
  "oklch": {
    "l": 0.45643,
    "c": 0.2046,
    "h": 271.6
  },
  "luminance": 0.08501
}

Semantic roles & 50–950 ramp

primary
#3540C6
secondary
#CDC88A
accent
#D547E1
background
#F8F7FD
surface
#F0EDFB
border
#CBC8D4
text
#0C0815
muted
#7D7B83

Preview Lab

Preview with #3540C6

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

Preview Lab → · Contrast checker → · Palette generator →

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