#3542CB#3542CB

#3542CB is a mid, highly saturated blue. Relative luminance 0.090; OKLCH L 46.4% C 0.209 H 271.1°. Best body text is #FFFFFF at 7.52:1 contrast (WCAG AA passes).

Color values

HEX#3542CB
RGBrgb(53, 66, 203)
HSLhsl(235, 59%, 50%)
HSVhsv(235, 74%, 80%)
CMYKcmyk(73.9%, 67.5%, 0%, 20.4%)
CIE-LABlab(35.91, 41.49, -72.12)
CIE-LCHlch(35.91, 83.21, 299.91°)
OKLaboklab(46.44% 0.004 -0.2086)
OKLCHoklch(46.44% 0.209 271.1)
XYZxyz(14.1922, 8.9636, 57.4705)
Luminance0.0896 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3542CB #CBBE35
analogous
#358DCB #3542CB #7335CB
triadic
#3542CB #CB3542 #42CB35
tetradic
#3542CB #CB358D #CBBE35 #35CB73
square
#3542CB #CB358D #CBBE35 #35CB73
split-complementary
#3542CB #CB7335 #8DCB35
monochromatic
#1B226A #28329B #3542CB #6670D8 #969DE4

Accessibility & contrast

On white

7.52
#3542CB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.79
#3542CB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3542CB
7.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3542CB#FFFFFF#000000##FFFFFF
##3542CB1.007.522.797.52
#FFFFFF7.521.0021.001.00
#0000002.7921.001.0021.00
##FFFFFF7.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CCF
Deuteranopia (green-blind)
#004DC8
Tritanopia (blue-blind)
#006781
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #3542cb;
/* rgb */ color: rgb(53, 66, 203);
/* oklch */ color: oklch(46.4% 0.209 271.1);
Tailwind
colors: {
  custom: {
    50: '#8377dc',
    500: '#3542cb',
    950: '#000000',
  },
}
SCSS
$custom: #3542cb;
$custom-light: #8377dc;
$custom-dark: #000000;
JSON
{
  "hex": "#3542cb",
  "rgb": {
    "r": 53,
    "g": 66,
    "b": 203
  },
  "hsl": {
    "h": 234.8,
    "s": 59.055,
    "l": 50.196
  },
  "oklch": {
    "l": 0.46444,
    "c": 0.20869,
    "h": 271.1
  },
  "luminance": 0.08965
}

Semantic roles & 50–950 ramp

primary
#3542CB
secondary
#CFCA8C
accent
#D546E2
background
#F8F7FD
surface
#F0EDFB
border
#CBC8D4
text
#0C0815
muted
#7D7B83

Preview Lab

Preview with #3542CB

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

Preview Lab → · Contrast checker → · Palette generator →

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