#4054CC#4054CC

#4054CC is a mid, vivid blue. Relative luminance 0.118; OKLCH L 50.3% C 0.186 H 270.9°. Best body text is #FFFFFF at 6.25:1 contrast (WCAG AA passes).

Color values

HEX#4054CC
RGBrgb(64, 84, 204)
HSLhsl(231, 58%, 53%)
HSVhsv(231, 69%, 80%)
CMYKcmyk(68.6%, 58.8%, 0%, 20%)
CIE-LABlab(40.88, 31.94, -64.56)
CIE-LCHlch(40.88, 72.03, 296.33°)
OKLaboklab(50.28% 0.0029 -0.1861)
OKLCHoklch(50.28% 0.186 270.9)
XYZxyz(16.1801, 11.7887, 58.5378)
Luminance0.1179 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4054CC #CCB840
analogous
#409ACC #4054CC #7240CC
triadic
#4054CC #CC4054 #54CC40
tetradic
#4054CC #CC409A #CCB840 #40CC72
square
#4054CC #CC409A #CCB840 #40CC72
split-complementary
#4054CC #CC7240 #9ACC40
monochromatic
#1F2B73 #2C3DA3 #4054CC #707FD9 #A1AAE6

Accessibility & contrast

On white

6.25
#4054CC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.36
#4054CC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4054CC
6.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4054CC#FFFFFF#000000##FFFFFF
##4054CC1.006.253.366.25
#FFFFFF6.251.0021.001.00
#0000003.3621.001.0021.00
##FFFFFF6.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0067D0
Deuteranopia (green-blind)
#005ACA
Tritanopia (blue-blind)
#007288
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #4054cc;
/* rgb */ color: rgb(64, 84, 204);
/* oklch */ color: oklch(50.3% 0.186 270.9);
Tailwind
colors: {
  custom: {
    50: '#8684dc',
    500: '#4054cc',
    950: '#000000',
  },
}
SCSS
$custom: #4054cc;
$custom-light: #8684dc;
$custom-dark: #000000;
JSON
{
  "hex": "#4054cc",
  "rgb": {
    "r": 64,
    "g": 84,
    "b": 204
  },
  "hsl": {
    "h": 231.429,
    "s": 57.851,
    "l": 52.549
  },
  "oklch": {
    "l": 0.50276,
    "c": 0.18611,
    "h": 270.9
  },
  "luminance": 0.1179
}

Semantic roles & 50–950 ramp

primary
#4054CC
secondary
#D2CA95
accent
#CB47E1
background
#F8F8FD
surface
#F0EFFB
border
#CBCAD4
text
#0C0A15
muted
#7D7C83

Preview Lab

Preview with #4054CC

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

Preview Lab → · Contrast checker → · Palette generator →

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