#3540C2#3540C2

#3540C2 is a mid, vivid blue. Relative luminance 0.083; OKLCH L 45.3% C 0.200 H 271.7°. Best body text is #FFFFFF at 7.88:1 contrast (WCAG AA passes).

Color values

HEX#3540C2
RGBrgb(53, 64, 194)
HSLhsl(235, 57%, 48%)
HSVhsv(235, 73%, 76%)
CMYKcmyk(72.7%, 67%, 0%, 23.9%)
CIE-LABlab(34.64, 39.60, -68.98)
CIE-LCHlch(34.64, 79.53, 299.86°)
OKLaboklab(45.27% 0.006 -0.1994)
OKLCHoklch(45.27% 0.2 271.7)
XYZxyz(13.0359, 8.3174, 51.9469)
Luminance0.0832 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3540C2 #C2B735
analogous
#3586C2 #3540C2 #7035C2
triadic
#3540C2 #C23540 #40C235
tetradic
#3540C2 #C23586 #C2B735 #35C270
square
#3540C2 #C23586 #C2B735 #35C270
split-complementary
#3540C2 #C27035 #86C235
monochromatic
#1B2062 #283092 #3540C2 #6069D4 #9197E1

Accessibility & contrast

On white

7.88
#3540C2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.66
#3540C2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##3540C2#FFFFFF#000000##FFFFFF
##3540C21.007.882.667.88
#FFFFFF7.881.0021.001.00
#0000002.6621.001.0021.00
##FFFFFF7.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058C6
Deuteranopia (green-blind)
#004BC0
Tritanopia (blue-blind)
#00637B
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #3540c2;
/* rgb */ color: rgb(53, 64, 194);
/* oklch */ color: oklch(45.3% 0.200 271.7);
Tailwind
colors: {
  custom: {
    50: '#8175d6',
    500: '#3540c2',
    950: '#000000',
  },
}
SCSS
$custom: #3540c2;
$custom-light: #8175d6;
$custom-dark: #000000;
JSON
{
  "hex": "#3540c2",
  "rgb": {
    "r": 53,
    "g": 64,
    "b": 194
  },
  "hsl": {
    "h": 235.319,
    "s": 57.085,
    "l": 48.431
  },
  "oklch": {
    "l": 0.45265,
    "c": 0.19954,
    "h": 271.7
  },
  "luminance": 0.08319
}

Semantic roles & 50–950 ramp

primary
#3540C2
secondary
#CCC687
accent
#D447E0
background
#F8F7FD
surface
#F0EDFA
border
#CBC8D3
text
#0C0814
muted
#7D7B83

Preview Lab

Preview with #3540C2

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

Preview Lab → · Contrast checker → · Palette generator →

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