#3540C1#3540C1

#3540C1 is a mid, vivid blue. Relative luminance 0.083; OKLCH L 45.2% C 0.198 H 271.8°. Best body text is #FFFFFF at 7.91:1 contrast (WCAG AA passes).

Color values

HEX#3540C1
RGBrgb(53, 64, 193)
HSLhsl(235, 57%, 48%)
HSVhsv(235, 73%, 76%)
CMYKcmyk(72.5%, 66.8%, 0%, 24.3%)
CIE-LABlab(34.54, 39.25, -68.54)
CIE-LCHlch(34.54, 78.98, 299.80°)
OKLaboklab(45.17% 0.0061 -0.1982)
OKLCHoklch(45.17% 0.198 271.8)
XYZxyz(12.9240, 8.2726, 51.3574)
Luminance0.0827 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3540C1 #C1B635
analogous
#3586C1 #3540C1 #7035C1
triadic
#3540C1 #C13540 #40C135
tetradic
#3540C1 #C13586 #C1B635 #35C170
square
#3540C1 #C13586 #C1B635 #35C170
split-complementary
#3540C1 #C17035 #86C135
monochromatic
#1B2061 #283091 #3540C1 #6069D3 #9096E0

Accessibility & contrast

On white

7.91
#3540C1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3540C1
7.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3540C1#FFFFFF#000000##FFFFFF
##3540C11.007.912.657.91
#FFFFFF7.911.0021.001.00
#0000002.6521.001.0021.00
##FFFFFF7.911.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #3540c1;
/* rgb */ color: rgb(53, 64, 193);
/* oklch */ color: oklch(45.2% 0.198 271.8);
Tailwind
colors: {
  custom: {
    50: '#8075d5',
    500: '#3540c1',
    950: '#000000',
  },
}
SCSS
$custom: #3540c1;
$custom-light: #8075d5;
$custom-dark: #000000;
JSON
{
  "hex": "#3540c1",
  "rgb": {
    "r": 53,
    "g": 64,
    "b": 193
  },
  "hsl": {
    "h": 235.286,
    "s": 56.911,
    "l": 48.235
  },
  "oklch": {
    "l": 0.45171,
    "c": 0.19826,
    "h": 271.8
  },
  "luminance": 0.08274
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #3540C1

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

Preview Lab → · Contrast checker → · Palette generator →

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