#4049C5#4049C5

#4049C5 is a mid, vivid blue. Relative luminance 0.099; OKLCH L 47.7% C 0.190 H 273.5°. Best body text is #FFFFFF at 7.05:1 contrast (WCAG AA passes).

Color values

HEX#4049C5
RGBrgb(64, 73, 197)
HSLhsl(236, 53%, 51%)
HSVhsv(236, 68%, 77%)
CMYKcmyk(67.5%, 62.9%, 0%, 22.7%)
CIE-LABlab(37.64, 36.42, -65.79)
CIE-LCHlch(37.64, 75.20, 298.97°)
OKLaboklab(47.71% 0.0116 -0.1898)
OKLCHoklch(47.71% 0.19 273.5)
XYZxyz(14.5716, 9.8850, 53.9526)
Luminance0.0989 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4049C5 #C5BC40
analogous
#408BC5 #4049C5 #7940C5
triadic
#4049C5 #C54049 #49C540
tetradic
#4049C5 #C5408B #C5BC40 #40C579
square
#4049C5 #C5408B #C5BC40 #40C579
split-complementary
#4049C5 #C57940 #8BC540
monochromatic
#20256A #2F3699 #4049C5 #6F76D3 #9EA2E2

Accessibility & contrast

On white

7.05
#4049C5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.98
#4049C5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4049C5
7.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4049C5#FFFFFF#000000##FFFFFF
##4049C51.007.052.987.05
#FFFFFF7.051.0021.001.00
#0000002.9821.001.0021.00
##FFFFFF7.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FC9
Deuteranopia (green-blind)
#0053C3
Tritanopia (blue-blind)
#006980
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #4049c5;
/* rgb */ color: rgb(64, 73, 197);
/* oklch */ color: oklch(47.7% 0.190 273.5);
Tailwind
colors: {
  custom: {
    50: '#857cd8',
    500: '#4049c5',
    950: '#000000',
  },
}
SCSS
$custom: #4049c5;
$custom-light: #857cd8;
$custom-dark: #000000;
JSON
{
  "hex": "#4049c5",
  "rgb": {
    "r": 64,
    "g": 73,
    "b": 197
  },
  "hsl": {
    "h": 235.94,
    "s": 53.414,
    "l": 51.176
  },
  "oklch": {
    "l": 0.47706,
    "c": 0.19017,
    "h": 273.5
  },
  "luminance": 0.09886
}

Semantic roles & 50–950 ramp

primary
#4049C5
secondary
#CECA93
accent
#D34BDD
background
#F8F7FD
surface
#F0EEFA
border
#CBC9D3
text
#0C0915
muted
#7D7B83

Preview Lab

Preview with #4049C5

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

Preview Lab → · Contrast checker → · Palette generator →

#4049C5 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva