#4050AD#4050AD

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

Color values

HEX#4050AD
RGBrgb(64, 80, 173)
HSLhsl(231, 46%, 46%)
HSVhsv(231, 63%, 68%)
CMYKcmyk(63%, 53.8%, 0%, 32.2%)
CIE-LABlab(37.56, 23.57, -51.80)
CIE-LCHlch(37.56, 56.91, 294.46°)
OKLaboklab(47.07% 0.0054 -0.1486)
OKLCHoklch(47.07% 0.149 272.1)
XYZxyz(12.5233, 9.8434, 40.7671)
Luminance0.0984 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4050AD #AD9D40
analogous
#4087AD #4050AD #6740AD
triadic
#4050AD #AD4050 #50AD40
tetradic
#4050AD #AD4087 #AD9D40 #40AD67
square
#4050AD #AD4087 #AD9D40 #40AD67
split-complementary
#4050AD #AD6740 #87AD40
monochromatic
#1F2754 #2F3B80 #4050AD #6473C6 #919BD6

Accessibility & contrast

On white

7.07
#4050AD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.97
#4050AD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4050AD
7.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4050AD#FFFFFF#000000##FFFFFF
##4050AD1.007.072.977.07
#FFFFFF7.071.0021.001.00
#0000002.9721.001.0021.00
##FFFFFF7.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#135DB0
Deuteranopia (green-blind)
#0054AB
Tritanopia (blue-blind)
#006676
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #4050ad;
/* rgb */ color: rgb(64, 80, 173);
/* oklch */ color: oklch(47.1% 0.149 272.1);
Tailwind
colors: {
  custom: {
    50: '#8080c6',
    500: '#4050ad',
    950: '#000000',
  },
}
SCSS
$custom: #4050ad;
$custom-light: #8080c6;
$custom-dark: #000000;
JSON
{
  "hex": "#4050ad",
  "rgb": {
    "r": 64,
    "g": 80,
    "b": 173
  },
  "hsl": {
    "h": 231.193,
    "s": 45.992,
    "l": 46.471
  },
  "oklch": {
    "l": 0.47073,
    "c": 0.14873,
    "h": 272.1
  },
  "luminance": 0.09844
}

Semantic roles & 50–950 ramp

primary
#4050AD
secondary
#C2B987
accent
#C252D6
background
#F8F7FC
surface
#EFEEF8
border
#CAC9D1
text
#0B0A13
muted
#7C7C82

Preview Lab

Preview with #4050AD

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

Preview Lab → · Contrast checker → · Palette generator →

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