#4050AC#4050AC

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

Color values

HEX#4050AC
RGBrgb(64, 80, 172)
HSLhsl(231, 46%, 46%)
HSVhsv(231, 63%, 67%)
CMYKcmyk(62.8%, 53.5%, 0%, 32.5%)
CIE-LABlab(37.49, 23.21, -51.32)
CIE-LCHlch(37.49, 56.33, 294.34°)
OKLaboklab(47% 0.0054 -0.1472)
OKLCHoklch(47% 0.147 272.1)
XYZxyz(12.4269, 9.8048, 40.2594)
Luminance0.0981 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4050AC #AC9C40
analogous
#4086AC #4050AC #6640AC
triadic
#4050AC #AC4050 #50AC40
tetradic
#4050AC #AC4086 #AC9C40 #40AC66
square
#4050AC #AC4086 #AC9C40 #40AC66
split-complementary
#4050AC #AC6640 #86AC40
monochromatic
#1F2753 #2F3B7F #4050AC #6472C5 #919BD6

Accessibility & contrast

On white

7.09
#4050AC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.96
#4050AC on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##4050AC#FFFFFF#000000##FFFFFF
##4050AC1.007.092.967.09
#FFFFFF7.091.0021.001.00
#0000002.9621.001.0021.00
##FFFFFF7.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#155DAF
Deuteranopia (green-blind)
#0054AA
Tritanopia (blue-blind)
#006676
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #4050ac;
/* rgb */ color: rgb(64, 80, 172);
/* oklch */ color: oklch(47.0% 0.147 272.1);
Tailwind
colors: {
  custom: {
    50: '#8080c5',
    500: '#4050ac',
    950: '#000000',
  },
}
SCSS
$custom: #4050ac;
$custom-light: #8080c5;
$custom-dark: #000000;
JSON
{
  "hex": "#4050ac",
  "rgb": {
    "r": 64,
    "g": 80,
    "b": 172
  },
  "hsl": {
    "h": 231.111,
    "s": 45.763,
    "l": 46.275
  },
  "oklch": {
    "l": 0.46998,
    "c": 0.14732,
    "h": 272.1
  },
  "luminance": 0.09806
}

Semantic roles & 50–950 ramp

primary
#4050AC
secondary
#C1B887
accent
#C252D5
background
#F8F7FC
surface
#EFEEF8
border
#CAC9D1
text
#0B0A13
muted
#7C7C82

Preview Lab

Preview with #4050AC

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

Preview Lab → · Contrast checker → · Palette generator →

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