#4A56CB#4A56CB

#4A56CB is a mid, vivid blue. Relative luminance 0.124; OKLCH L 51.1% C 0.180 H 273.8°. Best body text is #FFFFFF at 6.03:1 contrast (WCAG AA passes).

Color values

HEX#4A56CB
RGBrgb(74, 86, 203)
HSLhsl(234, 55%, 54%)
HSVhsv(234, 64%, 80%)
CMYKcmyk(63.5%, 57.6%, 0%, 20.4%)
CIE-LABlab(41.88, 31.84, -62.33)
CIE-LCHlch(41.88, 69.99, 297.06°)
OKLaboklab(51.15% 0.0118 -0.1793)
OKLCHoklch(51.15% 0.18 273.8)
XYZxyz(16.9278, 12.4218, 57.9939)
Luminance0.1242 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A56CB #CBBF4A
analogous
#4A96CB #4A56CB #7F4ACB
triadic
#4A56CB #CB4A56 #56CB4A
tetradic
#4A56CB #CB4A96 #CBBF4A #4ACB7F
square
#4A56CB #CB4A96 #CBBF4A #4ACB7F
split-complementary
#4A56CB #CB7F4A #96CB4A
monochromatic
#232A78 #303BA8 #4A56CB #7A82D9 #A9AFE6

Accessibility & contrast

On white

6.03
#4A56CB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.48
#4A56CB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4A56CB
6.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A56CB#FFFFFF#000000##FFFFFF
##4A56CB1.006.033.486.03
#FFFFFF6.031.0021.001.00
#0000003.4821.001.0021.00
##FFFFFF6.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0069CF
Deuteranopia (green-blind)
#005DC9
Tritanopia (blue-blind)
#007288
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #4a56cb;
/* rgb */ color: rgb(74, 86, 203);
/* oklch */ color: oklch(51.1% 0.180 273.8);
Tailwind
colors: {
  custom: {
    50: '#8a85dc',
    500: '#4a56cb',
    950: '#000000',
  },
}
SCSS
$custom: #4a56cb;
$custom-light: #8a85dc;
$custom-dark: #000000;
JSON
{
  "hex": "#4a56cb",
  "rgb": {
    "r": 74,
    "g": 86,
    "b": 203
  },
  "hsl": {
    "h": 234.419,
    "s": 55.365,
    "l": 54.314
  },
  "oklch": {
    "l": 0.5115,
    "c": 0.17967,
    "h": 273.8
  },
  "luminance": 0.12423
}

Semantic roles & 50–950 ramp

primary
#4A56CB
secondary
#D4CF9D
accent
#D149DF
background
#F9F8FD
surface
#F1EFFB
border
#CBCAD4
text
#0D0B15
muted
#7E7C83

Preview Lab

Preview with #4A56CB

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

Preview Lab → · Contrast checker → · Palette generator →

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