#4050BF#4050BF

#4050BF is a mid, vivid blue. Relative luminance 0.106; OKLCH L 48.5% C 0.174 H 272.0°. Best body text is #FFFFFF at 6.74:1 contrast (WCAG AA passes).

Color values

HEX#4050BF
RGBrgb(64, 80, 191)
HSLhsl(232, 50%, 50%)
HSVhsv(232, 66%, 75%)
CMYKcmyk(66.5%, 58.1%, 0%, 25.1%)
CIE-LABlab(38.88, 29.91, -60.26)
CIE-LCHlch(38.88, 67.28, 296.40°)
OKLaboklab(48.48% 0.0061 -0.1735)
OKLCHoklch(48.48% 0.174 272)
XYZxyz(14.3838, 10.5876, 50.5657)
Luminance0.1059 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4050BF #BFAF40
analogous
#408FBF #4050BF #7040BF
triadic
#4050BF #BF4050 #50BF40
tetradic
#4050BF #BF408F #BFAF40 #40BF70
square
#4050BF #BF408F #BFAF40 #40BF70
split-complementary
#4050BF #BF7040 #8FBF40
monochromatic
#212A63 #313D91 #4050BF #6E7ACE #9CA4DE

Accessibility & contrast

On white

6.74
#4050BF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.12
#4050BF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4050BF
6.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4050BF#FFFFFF#000000##FFFFFF
##4050BF1.006.743.126.74
#FFFFFF6.741.0021.001.00
#0000003.1221.001.0021.00
##FFFFFF6.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061C3
Deuteranopia (green-blind)
#0056BD
Tritanopia (blue-blind)
#006B7F
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #4050bf;
/* rgb */ color: rgb(64, 80, 191);
/* oklch */ color: oklch(48.5% 0.174 272.0);
Tailwind
colors: {
  custom: {
    50: '#8381d3',
    500: '#4050bf',
    950: '#000000',
  },
}
SCSS
$custom: #4050bf;
$custom-light: #8381d3;
$custom-dark: #000000;
JSON
{
  "hex": "#4050bf",
  "rgb": {
    "r": 64,
    "g": 80,
    "b": 191
  },
  "hsl": {
    "h": 232.441,
    "s": 49.804,
    "l": 50
  },
  "oklch": {
    "l": 0.48475,
    "c": 0.17363,
    "h": 272
  },
  "luminance": 0.10589
}

Semantic roles & 50–950 ramp

primary
#4050BF
secondary
#CAC391
accent
#C84ED9
background
#F8F7FD
surface
#F0EEFA
border
#CBC9D3
text
#0C0A14
muted
#7D7C83

Preview Lab

Preview with #4050BF

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

Preview Lab → · Contrast checker → · Palette generator →

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