#4054BC#4054BC

#4054BC is a mid, vivid blue. Relative luminance 0.111; OKLCH L 49.0% C 0.164 H 270.9°. Best body text is #FFFFFF at 6.54:1 contrast (WCAG AA passes).

Color values

HEX#4054BC
RGBrgb(64, 84, 188)
HSLhsl(230, 49%, 49%)
HSVhsv(230, 66%, 74%)
CMYKcmyk(66%, 55.3%, 0%, 26.3%)
CIE-LABlab(39.68, 26.29, -57.20)
CIE-LCHlch(39.68, 62.96, 294.68°)
OKLaboklab(49.01% 0.0026 -0.1645)
OKLCHoklch(49.01% 0.164 270.9)
XYZxyz(14.3587, 11.0602, 48.9453)
Luminance0.1106 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4054BC #BCA840
analogous
#4092BC #4054BC #6A40BC
triadic
#4054BC #BC4054 #54BC40
tetradic
#4054BC #BC4092 #BCA840 #40BC6A
square
#4054BC #BC4092 #BCA840 #40BC6A
split-complementary
#4054BC #BC6A40 #92BC40
monochromatic
#212B61 #30408E #4054BC #6C7CCD #9AA5DD

Accessibility & contrast

On white

6.54
#4054BC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.21
#4054BC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4054BC
6.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4054BC#FFFFFF#000000##FFFFFF
##4054BC1.006.543.216.54
#FFFFFF6.541.0021.001.00
#0000003.2121.001.0021.00
##FFFFFF6.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0063C0
Deuteranopia (green-blind)
#0058BA
Tritanopia (blue-blind)
#006D80
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #4054bc;
/* rgb */ color: rgb(64, 84, 188);
/* oklch */ color: oklch(49.0% 0.164 270.9);
Tailwind
colors: {
  custom: {
    50: '#8383d1',
    500: '#4054bc',
    950: '#000000',
  },
}
SCSS
$custom: #4054bc;
$custom-light: #8383d1;
$custom-dark: #000000;
JSON
{
  "hex": "#4054bc",
  "rgb": {
    "r": 64,
    "g": 84,
    "b": 188
  },
  "hsl": {
    "h": 230.323,
    "s": 49.206,
    "l": 49.412
  },
  "oklch": {
    "l": 0.49006,
    "c": 0.16449,
    "h": 270.9
  },
  "luminance": 0.11061
}

Semantic roles & 50–950 ramp

primary
#4054BC
secondary
#C9BF8F
accent
#C34FD9
background
#F8F8FC
surface
#F0EFF9
border
#CBCAD2
text
#0C0A14
muted
#7D7C82

Preview Lab

Preview with #4054BC

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

Preview Lab → · Contrast checker → · Palette generator →

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