#3A56C2#3A56C2

#3A56C2 is a mid, vivid blue. Relative luminance 0.115; OKLCH L 49.5% C 0.172 H 268.4°. Best body text is #FFFFFF at 6.38:1 contrast (WCAG AA passes).

Color values

HEX#3A56C2
RGBrgb(58, 86, 194)
HSLhsl(228, 54%, 49%)
HSVhsv(228, 70%, 76%)
CMYKcmyk(70.1%, 55.7%, 0%, 23.9%)
CIE-LABlab(40.33, 26.25, -59.67)
CIE-LCHlch(40.33, 65.19, 293.75°)
OKLaboklab(49.54% -0.0048 -0.1718)
OKLCHoklch(49.54% 0.172 268.4)
XYZxyz(14.8070, 11.4487, 52.4579)
Luminance0.1145 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A56C2 #C2A63A
analogous
#3A9AC2 #3A56C2 #623AC2
triadic
#3A56C2 #C23A56 #56C23A
tetradic
#3A56C2 #C23A9A #C2A63A #3AC262
square
#3A56C2 #C23A9A #C2A63A #3AC262
split-complementary
#3A56C2 #C2623A #9AC23A
monochromatic
#1E2C64 #2C4193 #3A56C2 #677DD2 #97A6E0

Accessibility & contrast

On white

6.38
#3A56C2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.29
#3A56C2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3A56C2
6.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A56C2#FFFFFF#000000##FFFFFF
##3A56C21.006.383.296.38
#FFFFFF6.381.0021.001.00
#0000003.2921.001.0021.00
##FFFFFF6.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0066C6
Deuteranopia (green-blind)
#0059C0
Tritanopia (blue-blind)
#007083
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #3a56c2;
/* rgb */ color: rgb(58, 86, 194);
/* oklch */ color: oklch(49.5% 0.172 268.4);
Tailwind
colors: {
  custom: {
    50: '#8185d5',
    500: '#3a56c2',
    950: '#000000',
  },
}
SCSS
$custom: #3a56c2;
$custom-light: #8185d5;
$custom-dark: #000000;
JSON
{
  "hex": "#3a56c2",
  "rgb": {
    "r": 58,
    "g": 86,
    "b": 194
  },
  "hsl": {
    "h": 227.647,
    "s": 53.968,
    "l": 49.412
  },
  "oklch": {
    "l": 0.49543,
    "c": 0.17191,
    "h": 268.4
  },
  "luminance": 0.1145
}

Semantic roles & 50–950 ramp

primary
#3A56C2
secondary
#CBBE8D
accent
#BF4ADD
background
#F8F8FD
surface
#F0EFFA
border
#CBCAD3
text
#0C0B14
muted
#7D7C83

Preview Lab

Preview with #3A56C2

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

Preview Lab → · Contrast checker → · Palette generator →

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