#3542C4#3542C4

#3542C4 is a mid, vivid blue. Relative luminance 0.086; OKLCH L 45.8% C 0.200 H 271.3°. Best body text is #FFFFFF at 7.70:1 contrast (WCAG AA passes).

Color values

HEX#3542C4
RGBrgb(53, 66, 196)
HSLhsl(235, 57%, 49%)
HSVhsv(235, 73%, 77%)
CMYKcmyk(73%, 66.3%, 0%, 23.1%)
CIE-LABlab(35.28, 39.06, -69.09)
CIE-LCHlch(35.28, 79.37, 299.48°)
OKLaboklab(45.79% 0.0046 -0.1998)
OKLCHoklch(45.79% 0.2 271.3)
XYZxyz(13.3768, 8.6375, 53.1761)
Luminance0.0864 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3542C4 #C4B735
analogous
#358AC4 #3542C4 #6F35C4
triadic
#3542C4 #C43542 #42C435
tetradic
#3542C4 #C4358A #C4B735 #35C46F
square
#3542C4 #C4358A #C4B735 #35C46F
split-complementary
#3542C4 #C46F35 #8AC435
monochromatic
#1B2264 #283294 #3542C4 #626CD4 #9299E1

Accessibility & contrast

On white

7.70
#3542C4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.73
#3542C4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3542C4
7.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3542C4#FFFFFF#000000##FFFFFF
##3542C41.007.702.737.70
#FFFFFF7.701.0021.001.00
#0000002.7321.001.0021.00
##FFFFFF7.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005AC8
Deuteranopia (green-blind)
#004CC2
Tritanopia (blue-blind)
#00657D
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #3542c4;
/* rgb */ color: rgb(53, 66, 196);
/* oklch */ color: oklch(45.8% 0.200 271.3);
Tailwind
colors: {
  custom: {
    50: '#8176d7',
    500: '#3542c4',
    950: '#000000',
  },
}
SCSS
$custom: #3542c4;
$custom-light: #8176d7;
$custom-dark: #000000;
JSON
{
  "hex": "#3542c4",
  "rgb": {
    "r": 53,
    "g": 66,
    "b": 196
  },
  "hsl": {
    "h": 234.545,
    "s": 57.43,
    "l": 48.824
  },
  "oklch": {
    "l": 0.45787,
    "c": 0.19983,
    "h": 271.3
  },
  "luminance": 0.08639
}

Semantic roles & 50–950 ramp

primary
#3542C4
secondary
#CCC688
accent
#D347E1
background
#F8F7FD
surface
#F0EDFA
border
#CBC8D3
text
#0C0815
muted
#7D7B83

Preview Lab

Preview with #3542C4

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

Preview Lab → · Contrast checker → · Palette generator →

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