#3A5BC5#3A5BC5

#3A5BC5 is a mid, vivid blue. Relative luminance 0.124; OKLCH L 50.8% C 0.170 H 267.1°. Best body text is #FFFFFF at 6.03:1 contrast (WCAG AA passes).

Color values

HEX#3A5BC5
RGBrgb(58, 91, 197)
HSLhsl(226, 55%, 50%)
HSVhsv(226, 71%, 77%)
CMYKcmyk(70.6%, 53.8%, 0%, 22.7%)
CIE-LABlab(41.86, 24.12, -58.93)
CIE-LCHlch(41.86, 63.67, 292.26°)
OKLaboklab(50.77% -0.0087 -0.1696)
OKLCHoklch(50.77% 0.17 267.1)
XYZxyz(15.5606, 12.4113, 54.3881)
Luminance0.1241 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A5BC5 #C5A43A
analogous
#3AA1C5 #3A5BC5 #5E3AC5
triadic
#3A5BC5 #C53A5B #5BC53A
tetradic
#3A5BC5 #C53AA1 #C5A43A #3AC55E
square
#3A5BC5 #C53AA1 #C5A43A #3AC55E
split-complementary
#3A5BC5 #C55E3A #A1C53A
monochromatic
#1E2F66 #2C4596 #3A5BC5 #6982D3 #99AAE1

Accessibility & contrast

On white

6.03
#3A5BC5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.48
#3A5BC5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3A5BC5
6.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A5BC5#FFFFFF#000000##FFFFFF
##3A5BC51.006.033.486.03
#FFFFFF6.031.0021.001.00
#0000003.4821.001.0021.00
##FFFFFF6.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0769C9
Deuteranopia (green-blind)
#005DC3
Tritanopia (blue-blind)
#007587
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #3a5bc5;
/* rgb */ color: rgb(58, 91, 197);
/* oklch */ color: oklch(50.8% 0.170 267.1);
Tailwind
colors: {
  custom: {
    50: '#8188d7',
    500: '#3a5bc5',
    950: '#000000',
  },
}
SCSS
$custom: #3a5bc5;
$custom-light: #8188d7;
$custom-dark: #000000;
JSON
{
  "hex": "#3a5bc5",
  "rgb": {
    "r": 58,
    "g": 91,
    "b": 197
  },
  "hsl": {
    "h": 225.755,
    "s": 54.51,
    "l": 50
  },
  "oklch": {
    "l": 0.50768,
    "c": 0.16978,
    "h": 267.1
  },
  "luminance": 0.12413
}

Semantic roles & 50–950 ramp

primary
#3A5BC5
secondary
#CDBE8E
accent
#BB4ADE
background
#F8F8FD
surface
#F0EFFA
border
#CBCAD3
text
#0C0B14
muted
#7D7C83

Preview Lab

Preview with #3A5BC5

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

Preview Lab → · Contrast checker → · Palette generator →

#3A5BC5 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva