#3A56C8#3A56C8

#3A56C8 is a mid, vivid blue. Relative luminance 0.117; OKLCH L 50.0% C 0.180 H 268.6°. Best body text is #FFFFFF at 6.28:1 contrast (WCAG AA passes).

Color values

HEX#3A56C8
RGBrgb(58, 86, 200)
HSLhsl(228, 56%, 51%)
HSVhsv(228, 71%, 78%)
CMYKcmyk(71%, 57%, 0%, 21.6%)
CIE-LABlab(40.77, 28.42, -62.43)
CIE-LCHlch(40.77, 68.60, 294.48°)
OKLaboklab(50.02% -0.0045 -0.1799)
OKLCHoklch(50.02% 0.18 268.6)
XYZxyz(15.4944, 11.7237, 56.0787)
Luminance0.1172 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A56C8 #C8AC3A
analogous
#3A9DC8 #3A56C8 #653AC8
triadic
#3A56C8 #C83A56 #56C83A
tetradic
#3A56C8 #C83A9D #C8AC3A #3AC865
square
#3A56C8 #C83A9D #C8AC3A #3AC865
split-complementary
#3A56C8 #C8653A #9DC83A
monochromatic
#1E2D6A #2B419A #3A56C8 #6A7FD5 #9AA8E3

Accessibility & contrast

On white

6.28
#3A56C8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.35
#3A56C8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3A56C8
6.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A56C8#FFFFFF#000000##FFFFFF
##3A56C81.006.283.356.28
#FFFFFF6.281.0021.001.00
#0000003.3521.001.0021.00
##FFFFFF6.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0067CC
Deuteranopia (green-blind)
#005AC6
Tritanopia (blue-blind)
#007286
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #3a56c8;
/* rgb */ color: rgb(58, 86, 200);
/* oklch */ color: oklch(50.0% 0.180 268.6);
Tailwind
colors: {
  custom: {
    50: '#8285da',
    500: '#3a56c8',
    950: '#000000',
  },
}
SCSS
$custom: #3a56c8;
$custom-light: #8285da;
$custom-dark: #000000;
JSON
{
  "hex": "#3a56c8",
  "rgb": {
    "r": 58,
    "g": 86,
    "b": 200
  },
  "hsl": {
    "h": 228.169,
    "s": 56.349,
    "l": 50.588
  },
  "oklch": {
    "l": 0.50019,
    "c": 0.18,
    "h": 268.6
  },
  "luminance": 0.11725
}

Semantic roles & 50–950 ramp

primary
#3A56C8
secondary
#CEC28F
accent
#C248E0
background
#F8F8FD
surface
#F0EFFB
border
#CBCAD4
text
#0C0B15
muted
#7D7C83

Preview Lab

Preview with #3A56C8

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

Preview Lab → · Contrast checker → · Palette generator →

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