#3A56CC#3A56CC

#3A56CC is a mid, vivid blue. Relative luminance 0.119; OKLCH L 50.3% C 0.185 H 268.6°. Best body text is #FFFFFF at 6.21:1 contrast (WCAG AA passes).

Color values

HEX#3A56CC
RGBrgb(58, 86, 204)
HSLhsl(228, 59%, 51%)
HSVhsv(228, 72%, 80%)
CMYKcmyk(71.6%, 57.8%, 0%, 20%)
CIE-LABlab(41.08, 29.87, -64.25)
CIE-LCHlch(41.08, 70.85, 294.93°)
OKLaboklab(50.34% -0.0044 -0.1853)
OKLCHoklch(50.34% 0.185 268.6)
XYZxyz(15.9680, 11.9131, 58.5730)
Luminance0.1192 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A56CC #CCB03A
analogous
#3A9FCC #3A56CC #673ACC
triadic
#3A56CC #CC3A56 #56CC3A
tetradic
#3A56CC #CC3A9F #CCB03A #3ACC67
square
#3A56CC #CC3A9F #CCB03A #3ACC67
split-complementary
#3A56CC #CC673A #9FCC3A
monochromatic
#1D2C6F #2940A0 #3A56CC #6B80D9 #9BA9E5

Accessibility & contrast

On white

6.21
#3A56CC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.38
#3A56CC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3A56CC
6.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A56CC#FFFFFF#000000##FFFFFF
##3A56CC1.006.213.386.21
#FFFFFF6.211.0021.001.00
#0000003.3821.001.0021.00
##FFFFFF6.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0068D0
Deuteranopia (green-blind)
#005ACA
Tritanopia (blue-blind)
#007388
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #3a56cc;
/* rgb */ color: rgb(58, 86, 204);
/* oklch */ color: oklch(50.3% 0.185 268.6);
Tailwind
colors: {
  custom: {
    50: '#8385dc',
    500: '#3a56cc',
    950: '#000000',
  },
}
SCSS
$custom: #3a56cc;
$custom-light: #8385dc;
$custom-dark: #000000;
JSON
{
  "hex": "#3a56cc",
  "rgb": {
    "r": 58,
    "g": 86,
    "b": 204
  },
  "hsl": {
    "h": 228.493,
    "s": 58.871,
    "l": 51.373
  },
  "oklch": {
    "l": 0.50342,
    "c": 0.18534,
    "h": 268.6
  },
  "luminance": 0.11915
}

Semantic roles & 50–950 ramp

primary
#3A56CC
secondary
#D1C591
accent
#C446E2
background
#F8F8FD
surface
#F0EFFB
border
#CBCAD4
text
#0C0B15
muted
#7D7C83

Preview Lab

Preview with #3A56CC

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

Preview Lab → · Contrast checker → · Palette generator →

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