#3540C8#3540C8

#3540C8 is a mid, highly saturated blue. Relative luminance 0.086; OKLCH L 45.8% C 0.207 H 271.5°. Best body text is #FFFFFF at 7.72:1 contrast (WCAG AA passes).

Color values

HEX#3540C8
RGBrgb(53, 64, 200)
HSLhsl(236, 58%, 50%)
HSVhsv(236, 74%, 78%)
CMYKcmyk(73.5%, 68%, 0%, 21.6%)
CIE-LABlab(35.19, 41.67, -71.57)
CIE-LCHlch(35.19, 82.82, 300.21°)
OKLaboklab(45.83% 0.0054 -0.207)
OKLCHoklch(45.83% 0.207 271.5)
XYZxyz(13.7234, 8.5924, 55.5676)
Luminance0.0859 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3540C8 #C8BD35
analogous
#358AC8 #3540C8 #7335C8
triadic
#3540C8 #C83540 #40C835
tetradic
#3540C8 #C8358A #C8BD35 #35C873
square
#3540C8 #C8358A #C8BD35 #35C873
split-complementary
#3540C8 #C87335 #8AC835
monochromatic
#1B2167 #283198 #3540C8 #646DD6 #959AE3

Accessibility & contrast

On white

7.72
#3540C8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.72
#3540C8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##3540C8#FFFFFF#000000##FFFFFF
##3540C81.007.722.727.72
#FFFFFF7.721.0021.001.00
#0000002.7221.001.0021.00
##FFFFFF7.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005ACC
Deuteranopia (green-blind)
#004CC5
Tritanopia (blue-blind)
#00657F
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #3540c8;
/* rgb */ color: rgb(53, 64, 200);
/* oklch */ color: oklch(45.8% 0.207 271.5);
Tailwind
colors: {
  custom: {
    50: '#8275da',
    500: '#3540c8',
    950: '#000000',
  },
}
SCSS
$custom: #3540c8;
$custom-light: #8275da;
$custom-dark: #000000;
JSON
{
  "hex": "#3540c8",
  "rgb": {
    "r": 53,
    "g": 64,
    "b": 200
  },
  "hsl": {
    "h": 235.51,
    "s": 58.103,
    "l": 49.608
  },
  "oklch": {
    "l": 0.45833,
    "c": 0.20711,
    "h": 271.5
  },
  "luminance": 0.08594
}

Semantic roles & 50–950 ramp

primary
#3540C8
secondary
#CEC98B
accent
#D646E1
background
#F8F7FD
surface
#F0EDFB
border
#CBC8D4
text
#0C0815
muted
#7D7B83

Preview Lab

Preview with #3540C8

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

Preview Lab → · Contrast checker → · Palette generator →

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