#4A56D9#4A56D9

#4A56D9 is a mid, vivid blue. Relative luminance 0.131; OKLCH L 52.3% C 0.198 H 273.4°. Best body text is #FFFFFF at 5.79:1 contrast (WCAG AA passes).

Color values

HEX#4A56D9
RGBrgb(74, 86, 217)
HSLhsl(235, 65%, 57%)
HSVhsv(235, 66%, 85%)
CMYKcmyk(65.9%, 60.4%, 0%, 14.9%)
CIE-LABlab(42.94, 36.60, -68.64)
CIE-LCHlch(42.94, 77.79, 298.07°)
OKLaboklab(52.27% 0.0117 -0.1978)
OKLCHoklch(52.27% 0.198 273.4)
XYZxyz(18.6720, 13.1195, 67.1805)
Luminance0.1312 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A56D9 #D9CD4A
analogous
#4A9ED9 #4A56D9 #864AD9
triadic
#4A56D9 #D94A56 #56D94A
tetradic
#4A56D9 #D94A9E #D9CD4A #4AD986
square
#4A56D9 #D94A9E #D9CD4A #4AD986
split-complementary
#4A56D9 #D9864A #9ED94A
monochromatic
#1D268B #2834BE #4A56D9 #7D85E4 #AFB4EE

Accessibility & contrast

On white

5.79
#4A56D9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.62
#4A56D9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4A56D9
5.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A56D9#FFFFFF#000000##FFFFFF
##4A56D91.005.793.625.79
#FFFFFF5.791.0021.001.00
#0000003.6221.001.0021.00
##FFFFFF5.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006CDD
Deuteranopia (green-blind)
#005FD6
Tritanopia (blue-blind)
#00778F
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #4a56d9;
/* rgb */ color: rgb(74, 86, 217);
/* oklch */ color: oklch(52.3% 0.198 273.4);
Tailwind
colors: {
  custom: {
    50: '#8d85e6',
    500: '#4a56d9',
    950: '#000000',
  },
}
SCSS
$custom: #4a56d9;
$custom-light: #8d85e6;
$custom-dark: #000000;
JSON
{
  "hex": "#4a56d9",
  "rgb": {
    "r": 74,
    "g": 86,
    "b": 217
  },
  "hsl": {
    "h": 234.965,
    "s": 65.297,
    "l": 57.059
  },
  "oklch": {
    "l": 0.52272,
    "c": 0.19816,
    "h": 273.4
  },
  "luminance": 0.13121
}

Semantic roles & 50–950 ramp

primary
#4A56D9
secondary
#DCD8A2
accent
#DA40E8
background
#F9F8FE
surface
#F2EFFC
border
#CCCAD5
text
#0E0B16
muted
#7E7C84

Preview Lab

Preview with #4A56D9

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

Preview Lab → · Contrast checker → · Palette generator →

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