#3A56C4#3A56C4

#3A56C4 is a mid, vivid blue. Relative luminance 0.115; OKLCH L 49.7% C 0.175 H 268.5°. Best body text is #FFFFFF at 6.35:1 contrast (WCAG AA passes).

Color values

HEX#3A56C4
RGBrgb(58, 86, 196)
HSLhsl(228, 54%, 50%)
HSVhsv(228, 70%, 77%)
CMYKcmyk(70.4%, 56.1%, 0%, 23.1%)
CIE-LABlab(40.47, 26.98, -60.60)
CIE-LCHlch(40.47, 66.33, 294.00°)
OKLaboklab(49.7% -0.0047 -0.1745)
OKLCHoklch(49.7% 0.175 268.5)
XYZxyz(15.0331, 11.5391, 53.6489)
Luminance0.1154 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A56C4 #C4A83A
analogous
#3A9BC4 #3A56C4 #633AC4
triadic
#3A56C4 #C43A56 #56C43A
tetradic
#3A56C4 #C43A9B #C4A83A #3AC463
square
#3A56C4 #C43A9B #C4A83A #3AC463
split-complementary
#3A56C4 #C4633A #9BC43A
monochromatic
#1E2D66 #2C4195 #3A56C4 #697ED3 #98A7E0

Accessibility & contrast

On white

6.35
#3A56C4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.31
#3A56C4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3A56C4
6.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A56C4#FFFFFF#000000##FFFFFF
##3A56C41.006.353.316.35
#FFFFFF6.351.0021.001.00
#0000003.3121.001.0021.00
##FFFFFF6.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0066C8
Deuteranopia (green-blind)
#0059C2
Tritanopia (blue-blind)
#007184
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #3a56c4;
/* rgb */ color: rgb(58, 86, 196);
/* oklch */ color: oklch(49.7% 0.175 268.5);
Tailwind
colors: {
  custom: {
    50: '#8185d7',
    500: '#3a56c4',
    950: '#000000',
  },
}
SCSS
$custom: #3a56c4;
$custom-light: #8185d7;
$custom-dark: #000000;
JSON
{
  "hex": "#3a56c4",
  "rgb": {
    "r": 58,
    "g": 86,
    "b": 196
  },
  "hsl": {
    "h": 227.826,
    "s": 54.331,
    "l": 49.804
  },
  "oklch": {
    "l": 0.49701,
    "c": 0.17461,
    "h": 268.5
  },
  "luminance": 0.11541
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #3A56C4

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

Preview Lab → · Contrast checker → · Palette generator →

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