#4054D8#4054D8

#4054D8 is a mid, highly saturated blue. Relative luminance 0.124; OKLCH L 51.3% C 0.202 H 270.8°. Best body text is #FFFFFF at 6.04:1 contrast (WCAG AA passes).

Color values

HEX#4054D8
RGBrgb(64, 84, 216)
HSLhsl(232, 66%, 55%)
HSVhsv(232, 70%, 85%)
CMYKcmyk(70.4%, 61.1%, 0%, 15.3%)
CIE-LABlab(41.82, 36.15, -69.92)
CIE-LCHlch(41.82, 78.71, 297.34°)
OKLaboklab(51.27% 0.0028 -0.2018)
OKLCHoklch(51.27% 0.202 270.8)
XYZxyz(17.6751, 12.3867, 66.4118)
Luminance0.1239 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4054D8 #D8C440
analogous
#40A0D8 #4054D8 #7840D8
triadic
#4054D8 #D84054 #54D840
tetradic
#4054D8 #D840A0 #D8C440 #40D878
square
#4054D8 #D840A0 #D8C440 #40D878
split-complementary
#4054D8 #D87840 #A0D840
monochromatic
#1B2883 #2538B6 #4054D8 #7382E2 #A6AFED

Accessibility & contrast

On white

6.04
#4054D8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.48
#4054D8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4054D8
6.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4054D8#FFFFFF#000000##FFFFFF
##4054D81.006.043.486.04
#FFFFFF6.041.0021.001.00
#0000003.4821.001.0021.00
##FFFFFF6.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006ADC
Deuteranopia (green-blind)
#005CD5
Tritanopia (blue-blind)
#00768E
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #4054d8;
/* rgb */ color: rgb(64, 84, 216);
/* oklch */ color: oklch(51.3% 0.202 270.8);
Tailwind
colors: {
  custom: {
    50: '#8884e5',
    500: '#4054d8',
    950: '#000000',
  },
}
SCSS
$custom: #4054d8;
$custom-light: #8884e5;
$custom-dark: #000000;
JSON
{
  "hex": "#4054d8",
  "rgb": {
    "r": 64,
    "g": 84,
    "b": 216
  },
  "hsl": {
    "h": 232.105,
    "s": 66.087,
    "l": 54.902
  },
  "oklch": {
    "l": 0.51272,
    "c": 0.20184,
    "h": 270.8
  },
  "luminance": 0.12389
}

Semantic roles & 50–950 ramp

primary
#4054D8
secondary
#DAD19A
accent
#D33FE9
background
#F9F8FE
surface
#F1EFFC
border
#CBCAD5
text
#0D0A16
muted
#7E7C84

Preview Lab

Preview with #4054D8

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

Preview Lab → · Contrast checker → · Palette generator →

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