#4050AA#4050AA

#4050AA is a mid, vivid blue. Relative luminance 0.097; OKLCH L 46.8% C 0.144 H 272.1°. Best body text is #FFFFFF at 7.13:1 contrast (WCAG AA passes).

Color values

HEX#4050AA
RGBrgb(64, 80, 170)
HSLhsl(231, 45%, 46%)
HSVhsv(231, 62%, 67%)
CMYKcmyk(62.4%, 52.9%, 0%, 33.3%)
CIE-LABlab(37.35, 22.51, -50.36)
CIE-LCHlch(37.35, 55.16, 294.08°)
OKLaboklab(46.85% 0.0052 -0.1444)
OKLCHoklch(46.85% 0.144 272.1)
XYZxyz(12.2363, 9.7286, 39.2554)
Luminance0.0973 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4050AA #AA9A40
analogous
#4085AA #4050AA #6540AA
triadic
#4050AA #AA4050 #50AA40
tetradic
#4050AA #AA4085 #AA9A40 #40AA65
square
#4050AA #AA4085 #AA9A40 #40AA65
split-complementary
#4050AA #AA6540 #85AA40
monochromatic
#1F2651 #2F3B7E #4050AA #6372C4 #8F9AD5

Accessibility & contrast

On white

7.13
#4050AA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

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

Contrast matrix

fg \ bg##4050AA#FFFFFF#000000##FFFFFF
##4050AA1.007.132.957.13
#FFFFFF7.131.0021.001.00
#0000002.9521.001.0021.00
##FFFFFF7.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#195DAD
Deuteranopia (green-blind)
#0053A8
Tritanopia (blue-blind)
#006575
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #4050aa;
/* rgb */ color: rgb(64, 80, 170);
/* oklch */ color: oklch(46.8% 0.144 272.1);
Tailwind
colors: {
  custom: {
    50: '#7f80c4',
    500: '#4050aa',
    950: '#000000',
  },
}
SCSS
$custom: #4050aa;
$custom-light: #7f80c4;
$custom-dark: #000000;
JSON
{
  "hex": "#4050aa",
  "rgb": {
    "r": 64,
    "g": 80,
    "b": 170
  },
  "hsl": {
    "h": 230.943,
    "s": 45.299,
    "l": 45.882
  },
  "oklch": {
    "l": 0.46849,
    "c": 0.14448,
    "h": 272.1
  },
  "luminance": 0.0973
}

Semantic roles & 50–950 ramp

primary
#4050AA
secondary
#C0B786
accent
#C153D5
background
#F8F7FC
surface
#EFEEF8
border
#CAC9D1
text
#0B0A13
muted
#7C7C82

Preview Lab

Preview with #4050AA

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

Preview Lab → · Contrast checker → · Palette generator →

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