#4050B5#4050B5

#4050B5 is a mid, vivid blue. Relative luminance 0.102; OKLCH L 47.7% C 0.160 H 272.1°. Best body text is #FFFFFF at 6.92:1 contrast (WCAG AA passes).

Color values

HEX#4050B5
RGBrgb(64, 80, 181)
HSLhsl(232, 48%, 48%)
HSVhsv(232, 65%, 71%)
CMYKcmyk(64.6%, 55.8%, 0%, 29%)
CIE-LABlab(38.13, 26.39, -55.61)
CIE-LCHlch(38.13, 61.55, 295.39°)
OKLaboklab(47.68% 0.0059 -0.1598)
OKLCHoklch(47.68% 0.16 272.1)
XYZxyz(13.3207, 10.1623, 44.9666)
Luminance0.1016 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4050B5 #B5A540
analogous
#408AB5 #4050B5 #6A40B5
triadic
#4050B5 #B54050 #50B540
tetradic
#4050B5 #B5408A #B5A540 #40B56A
square
#4050B5 #B5408A #B5A540 #40B56A
split-complementary
#4050B5 #B56A40 #8AB540
monochromatic
#20285B #303C88 #4050B5 #6876CA #969FDA

Accessibility & contrast

On white

6.92
#4050B5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.03
#4050B5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4050B5
6.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4050B5#FFFFFF#000000##FFFFFF
##4050B51.006.923.036.92
#FFFFFF6.921.0021.001.00
#0000003.0321.001.0021.00
##FFFFFF6.921.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4050b5;
/* rgb */ color: rgb(64, 80, 181);
/* oklch */ color: oklch(47.7% 0.160 272.1);
Tailwind
colors: {
  custom: {
    50: '#8180cc',
    500: '#4050b5',
    950: '#000000',
  },
}
SCSS
$custom: #4050b5;
$custom-light: #8180cc;
$custom-dark: #000000;
JSON
{
  "hex": "#4050b5",
  "rgb": {
    "r": 64,
    "g": 80,
    "b": 181
  },
  "hsl": {
    "h": 231.795,
    "s": 47.755,
    "l": 48.039
  },
  "oklch": {
    "l": 0.47684,
    "c": 0.15993,
    "h": 272.1
  },
  "luminance": 0.10164
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #4050B5

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

Preview Lab → · Contrast checker → · Palette generator →

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