#3A56C5#3A56C5

#3A56C5 is a mid, vivid blue. Relative luminance 0.116; OKLCH L 49.8% C 0.176 H 268.5°. Best body text is #FFFFFF at 6.33:1 contrast (WCAG AA passes).

Color values

HEX#3A56C5
RGBrgb(58, 86, 197)
HSLhsl(228, 55%, 50%)
HSVhsv(228, 71%, 77%)
CMYKcmyk(70.6%, 56.3%, 0%, 22.7%)
CIE-LABlab(40.55, 27.34, -61.06)
CIE-LCHlch(40.55, 66.90, 294.12°)
OKLaboklab(49.78% -0.0046 -0.1759)
OKLCHoklch(49.78% 0.176 268.5)
XYZxyz(15.1473, 11.5848, 54.2503)
Luminance0.1159 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A56C5 #C5A93A
analogous
#3A9BC5 #3A56C5 #643AC5
triadic
#3A56C5 #C53A56 #56C53A
tetradic
#3A56C5 #C53A9B #C5A93A #3AC564
square
#3A56C5 #C53A9B #C5A93A #3AC564
split-complementary
#3A56C5 #C5643A #9BC53A
monochromatic
#1E2D66 #2C4196 #3A56C5 #697FD3 #99A7E1

Accessibility & contrast

On white

6.33
#3A56C5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.32
#3A56C5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3A56C5
6.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A56C5#FFFFFF#000000##FFFFFF
##3A56C51.006.333.326.33
#FFFFFF6.331.0021.001.00
#0000003.3221.001.0021.00
##FFFFFF6.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0066C9
Deuteranopia (green-blind)
#0059C3
Tritanopia (blue-blind)
#007185
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #3a56c5;
/* rgb */ color: rgb(58, 86, 197);
/* oklch */ color: oklch(49.8% 0.176 268.5);
Tailwind
colors: {
  custom: {
    50: '#8285d7',
    500: '#3a56c5',
    950: '#000000',
  },
}
SCSS
$custom: #3a56c5;
$custom-light: #8285d7;
$custom-dark: #000000;
JSON
{
  "hex": "#3a56c5",
  "rgb": {
    "r": 58,
    "g": 86,
    "b": 197
  },
  "hsl": {
    "h": 227.914,
    "s": 54.51,
    "l": 50
  },
  "oklch": {
    "l": 0.4978,
    "c": 0.17597,
    "h": 268.5
  },
  "luminance": 0.11586
}

Semantic roles & 50–950 ramp

primary
#3A56C5
secondary
#CDC08E
accent
#C04ADE
background
#F8F8FD
surface
#F0EFFA
border
#CBCAD3
text
#0C0B14
muted
#7D7C83

Preview Lab

Preview with #3A56C5

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

Preview Lab → · Contrast checker → · Palette generator →

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