#3A56CB#3A56CB

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

Color values

HEX#3A56CB
RGBrgb(58, 86, 203)
HSLhsl(228, 58%, 51%)
HSVhsv(228, 71%, 80%)
CMYKcmyk(71.4%, 57.6%, 0%, 20.4%)
CIE-LABlab(41.00, 29.51, -63.80)
CIE-LCHlch(41.00, 70.29, 294.82°)
OKLaboklab(50.26% -0.0044 -0.184)
OKLCHoklch(50.26% 0.184 268.6)
XYZxyz(15.8485, 11.8653, 57.9433)
Luminance0.1187 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A56CB #CBAF3A
analogous
#3A9ECB #3A56CB #663ACB
triadic
#3A56CB #CB3A56 #56CB3A
tetradic
#3A56CB #CB3A9E #CBAF3A #3ACB66
square
#3A56CB #CB3A9E #CBAF3A #3ACB66
split-complementary
#3A56CB #CB663A #9ECB3A
monochromatic
#1D2D6E #2A409E #3A56CB #6A80D8 #9BA9E5

Accessibility & contrast

On white

6.23
#3A56CB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.37
#3A56CB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3A56CB
6.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A56CB#FFFFFF#000000##FFFFFF
##3A56CB1.006.233.376.23
#FFFFFF6.231.0021.001.00
#0000003.3721.001.0021.00
##FFFFFF6.231.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #3a56cb;
/* rgb */ color: rgb(58, 86, 203);
/* oklch */ color: oklch(50.3% 0.184 268.6);
Tailwind
colors: {
  custom: {
    50: '#8385dc',
    500: '#3a56cb',
    950: '#000000',
  },
}
SCSS
$custom: #3a56cb;
$custom-light: #8385dc;
$custom-dark: #000000;
JSON
{
  "hex": "#3a56cb",
  "rgb": {
    "r": 58,
    "g": 86,
    "b": 203
  },
  "hsl": {
    "h": 228.414,
    "s": 58.233,
    "l": 51.176
  },
  "oklch": {
    "l": 0.50261,
    "c": 0.18401,
    "h": 268.6
  },
  "luminance": 0.11867
}

Semantic roles & 50–950 ramp

primary
#3A56CB
secondary
#D0C490
accent
#C446E1
background
#F8F8FD
surface
#F0EFFB
border
#CBCAD4
text
#0C0B15
muted
#7D7C83

Preview Lab

Preview with #3A56CB

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

Preview Lab → · Contrast checker → · Palette generator →

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