#4050B3#4050B3

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

Color values

HEX#4050B3
RGBrgb(64, 80, 179)
HSLhsl(232, 47%, 48%)
HSVhsv(232, 64%, 70%)
CMYKcmyk(64.2%, 55.3%, 0%, 29.8%)
CIE-LABlab(37.99, 25.68, -54.66)
CIE-LCHlch(37.99, 60.40, 295.17°)
OKLaboklab(47.53% 0.0058 -0.157)
OKLCHoklch(47.53% 0.157 272.1)
XYZxyz(13.1170, 10.0808, 43.8936)
Luminance0.1008 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4050B3 #B3A340
analogous
#408AB3 #4050B3 #6940B3
triadic
#4050B3 #B34050 #50B340
tetradic
#4050B3 #B3408A #B3A340 #40B369
square
#4050B3 #B3408A #B3A340 #40B369
split-complementary
#4050B3 #B36940 #8AB340
monochromatic
#202859 #303C86 #4050B3 #6775C9 #949ED9

Accessibility & contrast

On white

6.96
#4050B3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #4050B3
6.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4050B3#FFFFFF#000000##FFFFFF
##4050B31.006.963.026.96
#FFFFFF6.961.0021.001.00
#0000003.0221.001.0021.00
##FFFFFF6.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FB6
Deuteranopia (green-blind)
#0054B1
Tritanopia (blue-blind)
#006879
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #4050b3;
/* rgb */ color: rgb(64, 80, 179);
/* oklch */ color: oklch(47.5% 0.157 272.1);
Tailwind
colors: {
  custom: {
    50: '#8180ca',
    500: '#4050b3',
    950: '#000000',
  },
}
SCSS
$custom: #4050b3;
$custom-light: #8180ca;
$custom-dark: #000000;
JSON
{
  "hex": "#4050b3",
  "rgb": {
    "r": 64,
    "g": 80,
    "b": 179
  },
  "hsl": {
    "h": 231.652,
    "s": 47.325,
    "l": 47.647
  },
  "oklch": {
    "l": 0.4753,
    "c": 0.15715,
    "h": 272.1
  },
  "luminance": 0.10082
}

Semantic roles & 50–950 ramp

primary
#4050B3
secondary
#C4BC8A
accent
#C451D7
background
#F8F7FC
surface
#F0EEF8
border
#CBC9D1
text
#0B0A13
muted
#7C7C82

Preview Lab

Preview with #4050B3

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

Preview Lab → · Contrast checker → · Palette generator →

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