#3A5BC8#3A5BC8

#3A5BC8 is a mid, vivid blue. Relative luminance 0.126; OKLCH L 51.0% C 0.174 H 267.2°. Best body text is #FFFFFF at 5.98:1 contrast (WCAG AA passes).

Color values

HEX#3A5BC8
RGBrgb(58, 91, 200)
HSLhsl(226, 56%, 51%)
HSVhsv(226, 71%, 78%)
CMYKcmyk(71%, 54.5%, 0%, 21.6%)
CIE-LABlab(42.08, 25.21, -60.31)
CIE-LCHlch(42.08, 65.37, 292.69°)
OKLaboklab(51% -0.0085 -0.1736)
OKLCHoklch(51% 0.174 267.2)
XYZxyz(15.9077, 12.5502, 56.2165)
Luminance0.1255 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A5BC8 #C8A73A
analogous
#3AA2C8 #3A5BC8 #603AC8
triadic
#3A5BC8 #C83A5B #5BC83A
tetradic
#3A5BC8 #C83AA2 #C8A73A #3AC860
square
#3A5BC8 #C83AA2 #C8A73A #3AC860
split-complementary
#3A5BC8 #C8603A #A2C83A
monochromatic
#1E2F6A #2B459A #3A5BC8 #6A83D5 #9AABE3

Accessibility & contrast

On white

5.98
#3A5BC8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.51
#3A5BC8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3A5BC8
5.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A5BC8#FFFFFF#000000##FFFFFF
##3A5BC81.005.983.515.98
#FFFFFF5.981.0021.001.00
#0000003.5121.001.0021.00
##FFFFFF5.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006ACC
Deuteranopia (green-blind)
#005DC6
Tritanopia (blue-blind)
#007588
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #3a5bc8;
/* rgb */ color: rgb(58, 91, 200);
/* oklch */ color: oklch(51.0% 0.174 267.2);
Tailwind
colors: {
  custom: {
    50: '#8288d9',
    500: '#3a5bc8',
    950: '#000000',
  },
}
SCSS
$custom: #3a5bc8;
$custom-light: #8288d9;
$custom-dark: #000000;
JSON
{
  "hex": "#3a5bc8",
  "rgb": {
    "r": 58,
    "g": 91,
    "b": 200
  },
  "hsl": {
    "h": 226.056,
    "s": 56.349,
    "l": 50.588
  },
  "oklch": {
    "l": 0.50998,
    "c": 0.17386,
    "h": 267.2
  },
  "luminance": 0.12552
}

Semantic roles & 50–950 ramp

primary
#3A5BC8
secondary
#CEC08F
accent
#BC48E0
background
#F8F8FD
surface
#F0EFFB
border
#CBCAD4
text
#0C0B15
muted
#7D7C83

Preview Lab

Preview with #3A5BC8

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

Preview Lab → · Contrast checker → · Palette generator →

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