#3542AB#3542AB

#3542AB is a dark, vivid blue. Relative luminance 0.076; OKLCH L 43.5% C 0.167 H 272.1°. Best body text is #FFFFFF at 8.34:1 contrast (WCAG AA passes).

Color values

HEX#3542AB
RGBrgb(53, 66, 171)
HSLhsl(233, 53%, 44%)
HSVhsv(233, 69%, 67%)
CMYKcmyk(69%, 61.4%, 0%, 32.9%)
CIE-LABlab(33.12, 30.19, -57.85)
CIE-LCHlch(33.12, 65.26, 297.56°)
OKLaboklab(43.54% 0.006 -0.1668)
OKLCHoklch(43.54% 0.167 272.1)
XYZxyz(10.7646, 7.5926, 39.4184)
Luminance0.0759 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3542AB #AB9E35
analogous
#357DAB #3542AB #6335AB
triadic
#3542AB #AB3542 #42AB35
tetradic
#3542AB #AB357D #AB9E35 #35AB63
square
#3542AB #AB357D #AB9E35 #35AB63
split-complementary
#3542AB #AB6335 #7DAB35
monochromatic
#181E4E #27307C #3542AB #5360CA #828CD8

Accessibility & contrast

On white

8.34
#3542AB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.52
#3542AB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3542AB
8.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3542AB#FFFFFF#000000##FFFFFF
##3542AB1.008.342.528.34
#FFFFFF8.341.0021.001.00
#0000002.5221.001.0021.00
##FFFFFF8.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053AE
Deuteranopia (green-blind)
#0049A9
Tritanopia (blue-blind)
#005C70
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #3542ab;
/* rgb */ color: rgb(53, 66, 171);
/* oklch */ color: oklch(43.5% 0.167 272.1);
Tailwind
colors: {
  custom: {
    50: '#7b76c5',
    500: '#3542ab',
    950: '#000000',
  },
}
SCSS
$custom: #3542ab;
$custom-light: #7b76c5;
$custom-dark: #000000;
JSON
{
  "hex": "#3542ab",
  "rgb": {
    "r": 53,
    "g": 66,
    "b": 171
  },
  "hsl": {
    "h": 233.39,
    "s": 52.679,
    "l": 43.922
  },
  "oklch": {
    "l": 0.43539,
    "c": 0.16696,
    "h": 272.1
  },
  "luminance": 0.07594
}

Semantic roles & 50–950 ramp

primary
#3542AB
secondary
#C2BA7A
accent
#CC4CDC
background
#F8F7FC
surface
#EFEDF8
border
#CAC8D1
text
#0B0813
muted
#7C7B82

Preview Lab

Preview with #3542AB

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

Preview Lab → · Contrast checker → · Palette generator →

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