#3540C0#3540C0

#3540C0 is a mid, vivid blue. Relative luminance 0.082; OKLCH L 45.1% C 0.197 H 271.8°. Best body text is #FFFFFF at 7.94:1 contrast (WCAG AA passes).

Color values

HEX#3540C0
RGBrgb(53, 64, 192)
HSLhsl(235, 57%, 48%)
HSVhsv(235, 72%, 75%)
CMYKcmyk(72.4%, 66.7%, 0%, 24.7%)
CIE-LABlab(34.45, 38.90, -68.10)
CIE-LCHlch(34.45, 78.43, 299.74°)
OKLaboklab(45.08% 0.0062 -0.1969)
OKLCHoklch(45.08% 0.197 271.8)
XYZxyz(12.8128, 8.2281, 50.7719)
Luminance0.0823 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3540C0 #C0B535
analogous
#3585C0 #3540C0 #6F35C0
triadic
#3540C0 #C03540 #40C035
tetradic
#3540C0 #C03585 #C0B535 #35C06F
square
#3540C0 #C03585 #C0B535 #35C06F
split-complementary
#3540C0 #C06F35 #85C035
monochromatic
#1B2060 #283090 #3540C0 #5F68D3 #8F96E0

Accessibility & contrast

On white

7.94
#3540C0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.65
#3540C0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3540C0
7.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3540C0#FFFFFF#000000##FFFFFF
##3540C01.007.942.657.94
#FFFFFF7.941.0021.001.00
#0000002.6521.001.0021.00
##FFFFFF7.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058C4
Deuteranopia (green-blind)
#004BBE
Tritanopia (blue-blind)
#00627A
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #3540c0;
/* rgb */ color: rgb(53, 64, 192);
/* oklch */ color: oklch(45.1% 0.197 271.8);
Tailwind
colors: {
  custom: {
    50: '#8075d4',
    500: '#3540c0',
    950: '#000000',
  },
}
SCSS
$custom: #3540c0;
$custom-light: #8075d4;
$custom-dark: #000000;
JSON
{
  "hex": "#3540c0",
  "rgb": {
    "r": 53,
    "g": 64,
    "b": 192
  },
  "hsl": {
    "h": 235.252,
    "s": 56.735,
    "l": 48.039
  },
  "oklch": {
    "l": 0.45077,
    "c": 0.19699,
    "h": 271.8
  },
  "luminance": 0.08229
}

Semantic roles & 50–950 ramp

primary
#3540C0
secondary
#CBC586
accent
#D448E0
background
#F8F7FD
surface
#F0EDFA
border
#CBC8D3
text
#0C0814
muted
#7D7B83

Preview Lab

Preview with #3540C0

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

Preview Lab → · Contrast checker → · Palette generator →

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