#4050A5#4050A5

#4050A5 is a mid, vivid blue. Relative luminance 0.095; OKLCH L 46.5% C 0.137 H 272.0°. Best body text is #FFFFFF at 7.22:1 contrast (WCAG AA passes).

Color values

HEX#4050A5
RGBrgb(64, 80, 165)
HSLhsl(230, 44%, 45%)
HSVhsv(230, 61%, 65%)
CMYKcmyk(61.2%, 51.5%, 0%, 35.3%)
CIE-LABlab(37.01, 20.75, -47.93)
CIE-LCHlch(37.01, 52.23, 293.41°)
OKLaboklab(46.48% 0.0048 -0.1372)
OKLCHoklch(46.48% 0.137 272)
XYZxyz(11.7723, 9.5430, 36.8116)
Luminance0.0954 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4050A5 #A59540
analogous
#4083A5 #4050A5 #6240A5
triadic
#4050A5 #A54050 #50A540
tetradic
#4050A5 #A54083 #A59540 #40A562
square
#4050A5 #A54083 #A59540 #40A562
split-complementary
#4050A5 #A56240 #83A540
monochromatic
#1E254D #2F3B79 #4050A5 #6170C2 #8D98D3

Accessibility & contrast

On white

7.22
#4050A5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.91
#4050A5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4050A5
7.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4050A5#FFFFFF#000000##FFFFFF
##4050A51.007.222.917.22
#FFFFFF7.221.0021.001.00
#0000002.9121.001.0021.00
##FFFFFF7.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#215CA8
Deuteranopia (green-blind)
#0753A3
Tritanopia (blue-blind)
#006473
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #4050a5;
/* rgb */ color: rgb(64, 80, 165);
/* oklch */ color: oklch(46.5% 0.137 272.0);
Tailwind
colors: {
  custom: {
    50: '#7e80c0',
    500: '#4050a5',
    950: '#000000',
  },
}
SCSS
$custom: #4050a5;
$custom-light: #7e80c0;
$custom-dark: #000000;
JSON
{
  "hex": "#4050a5",
  "rgb": {
    "r": 64,
    "g": 80,
    "b": 165
  },
  "hsl": {
    "h": 230.495,
    "s": 44.105,
    "l": 44.902
  },
  "oklch": {
    "l": 0.46483,
    "c": 0.13732,
    "h": 272
  },
  "luminance": 0.09544
}

Semantic roles & 50–950 ramp

primary
#4050A5
secondary
#BEB483
accent
#C054D4
background
#F8F7FB
surface
#EFEEF7
border
#CAC9D0
text
#0B0A12
muted
#7C7C81

Preview Lab

Preview with #4050A5

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

Preview Lab → · Contrast checker → · Palette generator →

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