#4050BB#4050BB

#4050BB is a mid, vivid blue. Relative luminance 0.104; OKLCH L 48.2% C 0.168 H 272.1°. Best body text is #FFFFFF at 6.81:1 contrast (WCAG AA passes).

Color values

HEX#4050BB
RGBrgb(64, 80, 187)
HSLhsl(232, 49%, 49%)
HSVhsv(232, 66%, 73%)
CMYKcmyk(65.8%, 57.2%, 0%, 26.7%)
CIE-LABlab(38.58, 28.50, -58.41)
CIE-LCHlch(38.58, 65.00, 296.01°)
OKLaboklab(48.16% 0.0061 -0.1681)
OKLCHoklch(48.16% 0.168 272.1)
XYZxyz(13.9496, 10.4139, 48.2790)
Luminance0.1042 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4050BB #BBAB40
analogous
#408EBB #4050BB #6E40BB
triadic
#4050BB #BB4050 #50BB40
tetradic
#4050BB #BB408E #BBAB40 #40BB6E
square
#4050BB #BB408E #BBAB40 #40BB6E
split-complementary
#4050BB #BB6E40 #8EBB40
monochromatic
#212960 #303C8D #4050BB #6C78CD #99A2DC

Accessibility & contrast

On white

6.81
#4050BB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.08
#4050BB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4050BB
6.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4050BB#FFFFFF#000000##FFFFFF
##4050BB1.006.813.086.81
#FFFFFF6.811.0021.001.00
#0000003.0821.001.0021.00
##FFFFFF6.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060BF
Deuteranopia (green-blind)
#0055B9
Tritanopia (blue-blind)
#006A7D
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #4050bb;
/* rgb */ color: rgb(64, 80, 187);
/* oklch */ color: oklch(48.2% 0.168 272.1);
Tailwind
colors: {
  custom: {
    50: '#8381d0',
    500: '#4050bb',
    950: '#000000',
  },
}
SCSS
$custom: #4050bb;
$custom-light: #8381d0;
$custom-dark: #000000;
JSON
{
  "hex": "#4050bb",
  "rgb": {
    "r": 64,
    "g": 80,
    "b": 187
  },
  "hsl": {
    "h": 232.195,
    "s": 49.004,
    "l": 49.216
  },
  "oklch": {
    "l": 0.48155,
    "c": 0.16819,
    "h": 272.1
  },
  "luminance": 0.10415
}

Semantic roles & 50–950 ramp

primary
#4050BB
secondary
#C8C18F
accent
#C74FD9
background
#F8F7FC
surface
#F0EEF9
border
#CBC9D2
text
#0C0A14
muted
#7D7C82

Preview Lab

Preview with #4050BB

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

Preview Lab → · Contrast checker → · Palette generator →

#4050BB Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva