#4050AB#4050AB

#4050AB is a mid, vivid blue. Relative luminance 0.098; OKLCH L 46.9% C 0.146 H 272.1°. Best body text is #FFFFFF at 7.11:1 contrast (WCAG AA passes).

Color values

HEX#4050AB
RGBrgb(64, 80, 171)
HSLhsl(231, 46%, 46%)
HSVhsv(231, 63%, 67%)
CMYKcmyk(62.6%, 53.2%, 0%, 32.9%)
CIE-LABlab(37.42, 22.86, -50.84)
CIE-LCHlch(37.42, 55.75, 294.21°)
OKLaboklab(46.92% 0.0053 -0.1458)
OKLCHoklch(46.92% 0.146 272.1)
XYZxyz(12.3313, 9.7666, 39.7555)
Luminance0.0977 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4050AB #AB9B40
analogous
#4085AB #4050AB #6540AB
triadic
#4050AB #AB4050 #50AB40
tetradic
#4050AB #AB4085 #AB9B40 #40AB65
square
#4050AB #AB4085 #AB9B40 #40AB65
split-complementary
#4050AB #AB6540 #85AB40
monochromatic
#1F2652 #2F3B7E #4050AB #6372C5 #909AD5

Accessibility & contrast

On white

7.11
#4050AB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.95
#4050AB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4050AB
7.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4050AB#FFFFFF#000000##FFFFFF
##4050AB1.007.112.957.11
#FFFFFF7.111.0021.001.00
#0000002.9521.001.0021.00
##FFFFFF7.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#175DAE
Deuteranopia (green-blind)
#0054A9
Tritanopia (blue-blind)
#006575
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #4050ab;
/* rgb */ color: rgb(64, 80, 171);
/* oklch */ color: oklch(46.9% 0.146 272.1);
Tailwind
colors: {
  custom: {
    50: '#8080c5',
    500: '#4050ab',
    950: '#000000',
  },
}
SCSS
$custom: #4050ab;
$custom-light: #8080c5;
$custom-dark: #000000;
JSON
{
  "hex": "#4050ab",
  "rgb": {
    "r": 64,
    "g": 80,
    "b": 171
  },
  "hsl": {
    "h": 231.028,
    "s": 45.532,
    "l": 46.078
  },
  "oklch": {
    "l": 0.46924,
    "c": 0.1459,
    "h": 272.1
  },
  "luminance": 0.09768
}

Semantic roles & 50–950 ramp

primary
#4050AB
secondary
#C1B886
accent
#C253D5
background
#F8F7FC
surface
#EFEEF8
border
#CAC9D1
text
#0B0A13
muted
#7C7C82

Preview Lab

Preview with #4050AB

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

Preview Lab → · Contrast checker → · Palette generator →

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