#4050B4#4050B4

#4050B4 is a mid, vivid blue. Relative luminance 0.101; OKLCH L 47.6% C 0.159 H 272.1°. Best body text is #FFFFFF at 6.94:1 contrast (WCAG AA passes).

Color values

HEX#4050B4
RGBrgb(64, 80, 180)
HSLhsl(232, 48%, 48%)
HSVhsv(232, 64%, 71%)
CMYKcmyk(64.4%, 55.6%, 0%, 29.4%)
CIE-LABlab(38.06, 26.04, -55.14)
CIE-LCHlch(38.06, 60.97, 295.28°)
OKLaboklab(47.61% 0.0058 -0.1584)
OKLCHoklch(47.61% 0.159 272.1)
XYZxyz(13.2185, 10.1214, 44.4282)
Luminance0.1012 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4050B4 #B4A440
analogous
#408AB4 #4050B4 #6A40B4
triadic
#4050B4 #B44050 #50B440
tetradic
#4050B4 #B4408A #B4A440 #40B46A
square
#4050B4 #B4408A #B4A440 #40B46A
split-complementary
#4050B4 #B46A40 #8AB440
monochromatic
#20285A #303C87 #4050B4 #6875C9 #959ED9

Accessibility & contrast

On white

6.94
#4050B4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.02
#4050B4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4050B4
6.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4050B4#FFFFFF#000000##FFFFFF
##4050B41.006.943.026.94
#FFFFFF6.941.0021.001.00
#0000003.0221.001.0021.00
##FFFFFF6.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FB7
Deuteranopia (green-blind)
#0055B2
Tritanopia (blue-blind)
#00687A
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #4050b4;
/* rgb */ color: rgb(64, 80, 180);
/* oklch */ color: oklch(47.6% 0.159 272.1);
Tailwind
colors: {
  custom: {
    50: '#8180cb',
    500: '#4050b4',
    950: '#000000',
  },
}
SCSS
$custom: #4050b4;
$custom-light: #8180cb;
$custom-dark: #000000;
JSON
{
  "hex": "#4050b4",
  "rgb": {
    "r": 64,
    "g": 80,
    "b": 180
  },
  "hsl": {
    "h": 231.724,
    "s": 47.541,
    "l": 47.843
  },
  "oklch": {
    "l": 0.47607,
    "c": 0.15854,
    "h": 272.1
  },
  "luminance": 0.10123
}

Semantic roles & 50–950 ramp

primary
#4050B4
secondary
#C5BD8B
accent
#C551D7
background
#F8F7FC
surface
#F0EEF9
border
#CBC9D2
text
#0B0A13
muted
#7C7C82

Preview Lab

Preview with #4050B4

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

Preview Lab → · Contrast checker → · Palette generator →

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