#4054BF#4054BF

#4054BF is a mid, vivid blue. Relative luminance 0.112; OKLCH L 49.2% C 0.169 H 270.9°. Best body text is #FFFFFF at 6.48:1 contrast (WCAG AA passes).

Color values

HEX#4054BF
RGBrgb(64, 84, 191)
HSLhsl(231, 50%, 50%)
HSVhsv(231, 66%, 75%)
CMYKcmyk(66.5%, 56%, 0%, 25.1%)
CIE-LABlab(39.90, 27.35, -58.60)
CIE-LCHlch(39.90, 64.67, 295.02°)
OKLaboklab(49.24% 0.0027 -0.1686)
OKLCHoklch(49.24% 0.169 270.9)
XYZxyz(14.6855, 11.1909, 50.6663)
Luminance0.1119 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4054BF #BFAB40
analogous
#4094BF #4054BF #6B40BF
triadic
#4054BF #BF4054 #54BF40
tetradic
#4054BF #BF4094 #BFAB40 #40BF6B
square
#4054BF #BF4094 #BFAB40 #40BF6B
split-complementary
#4054BF #BF6B40 #94BF40
monochromatic
#212C63 #314091 #4054BF #6E7DCE #9CA6DE

Accessibility & contrast

On white

6.48
#4054BF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.24
#4054BF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4054BF
6.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4054BF#FFFFFF#000000##FFFFFF
##4054BF1.006.483.246.48
#FFFFFF6.481.0021.001.00
#0000003.2421.001.0021.00
##FFFFFF6.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0064C3
Deuteranopia (green-blind)
#0058BD
Tritanopia (blue-blind)
#006E81
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #4054bf;
/* rgb */ color: rgb(64, 84, 191);
/* oklch */ color: oklch(49.2% 0.169 270.9);
Tailwind
colors: {
  custom: {
    50: '#8383d3',
    500: '#4054bf',
    950: '#000000',
  },
}
SCSS
$custom: #4054bf;
$custom-light: #8383d3;
$custom-dark: #000000;
JSON
{
  "hex": "#4054bf",
  "rgb": {
    "r": 64,
    "g": 84,
    "b": 191
  },
  "hsl": {
    "h": 230.551,
    "s": 49.804,
    "l": 50
  },
  "oklch": {
    "l": 0.49239,
    "c": 0.1686,
    "h": 270.9
  },
  "luminance": 0.11192
}

Semantic roles & 50–950 ramp

primary
#4054BF
secondary
#CAC191
accent
#C34ED9
background
#F8F8FD
surface
#F0EFFA
border
#CBCAD3
text
#0C0A14
muted
#7D7C83

Preview Lab

Preview with #4054BF

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

Preview Lab → · Contrast checker → · Palette generator →

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