#4049BA#4049BA

#4049BA is a mid, vivid blue. Relative luminance 0.094; OKLCH L 46.8% C 0.176 H 273.9°. Best body text is #FFFFFF at 7.29:1 contrast (WCAG AA passes).

Color values

HEX#4049BA
RGBrgb(64, 73, 186)
HSLhsl(236, 49%, 49%)
HSVhsv(236, 66%, 73%)
CMYKcmyk(65.6%, 60.8%, 0%, 27.1%)
CIE-LABlab(36.74, 32.62, -60.81)
CIE-LCHlch(36.74, 69.00, 298.21°)
OKLaboklab(46.77% 0.0121 -0.1752)
OKLCHoklch(46.77% 0.176 273.9)
XYZxyz(13.3569, 9.3991, 47.5552)
Luminance0.0940 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4049BA #BAB140
analogous
#4086BA #4049BA #7440BA
triadic
#4049BA #BA4049 #49BA40
tetradic
#4049BA #BA4086 #BAB140 #40BA74
square
#4049BA #BA4086 #BAB140 #40BA74
split-complementary
#4049BA #BA7440 #86BA40
monochromatic
#21255F #30378C #4049BA #6B72CC #999EDC

Accessibility & contrast

On white

7.29
#4049BA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.88
#4049BA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4049BA
7.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4049BA#FFFFFF#000000##FFFFFF
##4049BA1.007.292.887.29
#FFFFFF7.291.0021.001.00
#0000002.8821.001.0021.00
##FFFFFF7.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CBE
Deuteranopia (green-blind)
#0051B8
Tritanopia (blue-blind)
#00657A
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #4049ba;
/* rgb */ color: rgb(64, 73, 186);
/* oklch */ color: oklch(46.8% 0.176 273.9);
Tailwind
colors: {
  custom: {
    50: '#837bd0',
    500: '#4049ba',
    950: '#000000',
  },
}
SCSS
$custom: #4049ba;
$custom-light: #837bd0;
$custom-dark: #000000;
JSON
{
  "hex": "#4049ba",
  "rgb": {
    "r": 64,
    "g": 73,
    "b": 186
  },
  "hsl": {
    "h": 235.574,
    "s": 48.8,
    "l": 49.02
  },
  "oklch": {
    "l": 0.4677,
    "c": 0.1756,
    "h": 273.9
  },
  "luminance": 0.094
}

Semantic roles & 50–950 ramp

primary
#4049BA
secondary
#C8C38E
accent
#CE4FD8
background
#F8F7FC
surface
#F0EEF9
border
#CBC9D2
text
#0C0914
muted
#7D7B82

Preview Lab

Preview with #4049BA

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

Preview Lab → · Contrast checker → · Palette generator →

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