#4054AC#4054AC

#4054AC is a mid, vivid blue. Relative luminance 0.104; OKLCH L 47.8% C 0.142 H 270.6°. Best body text is #FFFFFF at 6.81:1 contrast (WCAG AA passes).

Color values

HEX#4054AC
RGBrgb(64, 84, 172)
HSLhsl(229, 46%, 46%)
HSVhsv(229, 63%, 67%)
CMYKcmyk(62.8%, 51.2%, 0%, 32.5%)
CIE-LABlab(38.57, 20.62, -49.59)
CIE-LCHlch(38.57, 53.70, 292.57°)
OKLaboklab(47.81% 0.0014 -0.1421)
OKLCHoklch(47.81% 0.142 270.6)
XYZxyz(12.7286, 10.4081, 40.3599)
Luminance0.1041 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4054AC #AC9840
analogous
#408AAC #4054AC #6240AC
triadic
#4054AC #AC4054 #54AC40
tetradic
#4054AC #AC408A #AC9840 #40AC62
square
#4054AC #AC408A #AC9840 #40AC62
split-complementary
#4054AC #AC6240 #8AAC40
monochromatic
#1F2853 #2F3E7F #4054AC #6476C5 #919DD6

Accessibility & contrast

On white

6.81
#4054AC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.08
#4054AC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4054AC
6.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4054AC#FFFFFF#000000##FFFFFF
##4054AC1.006.813.086.81
#FFFFFF6.811.0021.001.00
#0000003.0821.001.0021.00
##FFFFFF6.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2360AF
Deuteranopia (green-blind)
#0456AA
Tritanopia (blue-blind)
#006878
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #4054ac;
/* rgb */ color: rgb(64, 84, 172);
/* oklch */ color: oklch(47.8% 0.142 270.6);
Tailwind
colors: {
  custom: {
    50: '#8083c5',
    500: '#4054ac',
    950: '#000000',
  },
}
SCSS
$custom: #4054ac;
$custom-light: #8083c5;
$custom-dark: #000000;
JSON
{
  "hex": "#4054ac",
  "rgb": {
    "r": 64,
    "g": 84,
    "b": 172
  },
  "hsl": {
    "h": 228.889,
    "s": 45.763,
    "l": 46.275
  },
  "oklch": {
    "l": 0.4781,
    "c": 0.14208,
    "h": 270.6
  },
  "luminance": 0.10409
}

Semantic roles & 50–950 ramp

primary
#4054AC
secondary
#C1B687
accent
#BD52D5
background
#F8F8FC
surface
#EFEFF8
border
#CACAD1
text
#0B0A13
muted
#7C7C82

Preview Lab

Preview with #4054AC

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

Preview Lab → · Contrast checker → · Palette generator →

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