#4049B2#4049B2

#4049B2 is a mid, vivid blue. Relative luminance 0.091; OKLCH L 46.1% C 0.165 H 274.2°. Best body text is #FFFFFF at 7.46:1 contrast (WCAG AA passes).

Color values

HEX#4049B2
RGBrgb(64, 73, 178)
HSLhsl(235, 47%, 47%)
HSVhsv(235, 64%, 70%)
CMYKcmyk(64%, 59%, 0%, 30.2%)
CIE-LABlab(36.12, 29.84, -57.11)
CIE-LCHlch(36.12, 64.43, 297.59°)
OKLaboklab(46.11% 0.0122 -0.1643)
OKLCHoklch(46.11% 0.165 274.2)
XYZxyz(12.5301, 9.0684, 43.2009)
Luminance0.0907 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4049B2 #B2A940
analogous
#4082B2 #4049B2 #7040B2
triadic
#4049B2 #B24049 #49B240
tetradic
#4049B2 #B24082 #B2A940 #40B270
square
#4049B2 #B24082 #B2A940 #40B270
split-complementary
#4049B2 #B27040 #82B240
monochromatic
#202458 #303785 #4049B2 #676FC8 #9499D8

Accessibility & contrast

On white

7.46
#4049B2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.81
#4049B2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4049B2
7.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4049B2#FFFFFF#000000##FFFFFF
##4049B21.007.462.817.46
#FFFFFF7.461.0021.001.00
#0000002.8121.001.0021.00
##FFFFFF7.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005AB6
Deuteranopia (green-blind)
#0050B0
Tritanopia (blue-blind)
#006376
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #4049b2;
/* rgb */ color: rgb(64, 73, 178);
/* oklch */ color: oklch(46.1% 0.165 274.2);
Tailwind
colors: {
  custom: {
    50: '#817bca',
    500: '#4049b2',
    950: '#000000',
  },
}
SCSS
$custom: #4049b2;
$custom-light: #817bca;
$custom-dark: #000000;
JSON
{
  "hex": "#4049b2",
  "rgb": {
    "r": 64,
    "g": 73,
    "b": 178
  },
  "hsl": {
    "h": 235.263,
    "s": 47.107,
    "l": 47.451
  },
  "oklch": {
    "l": 0.46111,
    "c": 0.16476,
    "h": 274.2
  },
  "luminance": 0.09069
}

Semantic roles & 50–950 ramp

primary
#4049B2
secondary
#C4BF8A
accent
#CC51D7
background
#F8F7FC
surface
#F0EEF8
border
#CBC9D1
text
#0B0913
muted
#7C7B82

Preview Lab

Preview with #4049B2

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

Preview Lab → · Contrast checker → · Palette generator →

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