#4050B1#4050B1

#4050B1 is a mid, vivid blue. Relative luminance 0.100; OKLCH L 47.4% C 0.154 H 272.1°. Best body text is #FFFFFF at 7.00:1 contrast (WCAG AA passes).

Color values

HEX#4050B1
RGBrgb(64, 80, 177)
HSLhsl(232, 47%, 47%)
HSVhsv(232, 64%, 69%)
CMYKcmyk(63.8%, 54.8%, 0%, 30.6%)
CIE-LABlab(37.84, 24.98, -53.71)
CIE-LCHlch(37.84, 59.24, 294.94°)
OKLaboklab(47.38% 0.0057 -0.1542)
OKLCHoklch(47.38% 0.154 272.1)
XYZxyz(12.9162, 10.0005, 42.8361)
Luminance0.1000 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4050B1 #B1A140
analogous
#4089B1 #4050B1 #6840B1
triadic
#4050B1 #B14050 #50B140
tetradic
#4050B1 #B14089 #B1A140 #40B168
square
#4050B1 #B14089 #B1A140 #40B168
split-complementary
#4050B1 #B16840 #89B140
monochromatic
#1F2757 #303C84 #4050B1 #6674C8 #939DD8

Accessibility & contrast

On white

7.00
#4050B1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

3.00
#4050B1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4050B1
7.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4050B1#FFFFFF#000000##FFFFFF
##4050B11.007.003.007.00
#FFFFFF7.001.0021.001.00
#0000003.0021.001.0021.00
##FFFFFF7.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#075EB4
Deuteranopia (green-blind)
#0054AF
Tritanopia (blue-blind)
#006778
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #4050b1;
/* rgb */ color: rgb(64, 80, 177);
/* oklch */ color: oklch(47.4% 0.154 272.1);
Tailwind
colors: {
  custom: {
    50: '#8180c9',
    500: '#4050b1',
    950: '#000000',
  },
}
SCSS
$custom: #4050b1;
$custom-light: #8180c9;
$custom-dark: #000000;
JSON
{
  "hex": "#4050b1",
  "rgb": {
    "r": 64,
    "g": 80,
    "b": 177
  },
  "hsl": {
    "h": 231.504,
    "s": 46.888,
    "l": 47.255
  },
  "oklch": {
    "l": 0.47376,
    "c": 0.15435,
    "h": 272.1
  },
  "luminance": 0.10002
}

Semantic roles & 50–950 ramp

primary
#4050B1
secondary
#C3BB89
accent
#C451D7
background
#F8F7FC
surface
#EFEEF8
border
#CAC9D1
text
#0B0A13
muted
#7C7C82

Preview Lab

Preview with #4050B1

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

Preview Lab → · Contrast checker → · Palette generator →

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