#3540C4#3540C4

#3540C4 is a mid, highly saturated blue. Relative luminance 0.084; OKLCH L 45.5% C 0.202 H 271.7°. Best body text is #FFFFFF at 7.83:1 contrast (WCAG AA passes).

Color values

HEX#3540C4
RGBrgb(53, 64, 196)
HSLhsl(235, 57%, 49%)
HSVhsv(235, 73%, 77%)
CMYKcmyk(73%, 67.3%, 0%, 23.1%)
CIE-LABlab(34.82, 40.29, -69.85)
CIE-LCHlch(34.82, 80.63, 299.98°)
OKLaboklab(45.45% 0.0058 -0.202)
OKLCHoklch(45.45% 0.202 271.7)
XYZxyz(13.2620, 8.4078, 53.1378)
Luminance0.0841 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3540C4 #C4B935
analogous
#3588C4 #3540C4 #7235C4
triadic
#3540C4 #C43540 #40C435
tetradic
#3540C4 #C43588 #C4B935 #35C472
square
#3540C4 #C43588 #C4B935 #35C472
split-complementary
#3540C4 #C47235 #88C435
monochromatic
#1B2164 #283094 #3540C4 #626BD4 #9298E1

Accessibility & contrast

On white

7.83
#3540C4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.68
#3540C4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##3540C4#FFFFFF#000000##FFFFFF
##3540C41.007.832.687.83
#FFFFFF7.831.0021.001.00
#0000002.6821.001.0021.00
##FFFFFF7.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059C8
Deuteranopia (green-blind)
#004BC2
Tritanopia (blue-blind)
#00647D
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #3540c4;
/* rgb */ color: rgb(53, 64, 196);
/* oklch */ color: oklch(45.5% 0.202 271.7);
Tailwind
colors: {
  custom: {
    50: '#8175d7',
    500: '#3540c4',
    950: '#000000',
  },
}
SCSS
$custom: #3540c4;
$custom-light: #8175d7;
$custom-dark: #000000;
JSON
{
  "hex": "#3540c4",
  "rgb": {
    "r": 53,
    "g": 64,
    "b": 196
  },
  "hsl": {
    "h": 235.385,
    "s": 57.43,
    "l": 48.824
  },
  "oklch": {
    "l": 0.45453,
    "c": 0.20207,
    "h": 271.7
  },
  "luminance": 0.08409
}

Semantic roles & 50–950 ramp

primary
#3540C4
secondary
#CCC788
accent
#D547E1
background
#F8F7FD
surface
#F0EDFA
border
#CBC8D3
text
#0C0815
muted
#7D7B83

Preview Lab

Preview with #3540C4

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

Preview Lab → · Contrast checker → · Palette generator →

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