#4054CB#4054CB

#4054CB is a mid, vivid blue. Relative luminance 0.117; OKLCH L 50.2% C 0.185 H 270.9°. Best body text is #FFFFFF at 6.27:1 contrast (WCAG AA passes).

Color values

HEX#4054CB
RGBrgb(64, 84, 203)
HSLhsl(231, 57%, 52%)
HSVhsv(231, 68%, 80%)
CMYKcmyk(68.5%, 58.6%, 0%, 20.4%)
CIE-LABlab(40.80, 31.59, -64.11)
CIE-LCHlch(40.80, 71.47, 296.23°)
OKLaboklab(50.2% 0.0029 -0.1848)
OKLCHoklch(50.2% 0.185 270.9)
XYZxyz(16.0605, 11.7409, 57.9082)
Luminance0.1174 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4054CB #CBB740
analogous
#409ACB #4054CB #7240CB
triadic
#4054CB #CB4054 #54CB40
tetradic
#4054CB #CB409A #CBB740 #40CB72
square
#4054CB #CB409A #CBB740 #40CB72
split-complementary
#4054CB #CB7240 #9ACB40
monochromatic
#1F2B72 #2C3DA2 #4054CB #707FD8 #A0AAE5

Accessibility & contrast

On white

6.27
#4054CB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.35
#4054CB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4054CB
6.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4054CB#FFFFFF#000000##FFFFFF
##4054CB1.006.273.356.27
#FFFFFF6.271.0021.001.00
#0000003.3521.001.0021.00
##FFFFFF6.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0067CF
Deuteranopia (green-blind)
#005AC9
Tritanopia (blue-blind)
#007187
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #4054cb;
/* rgb */ color: rgb(64, 84, 203);
/* oklch */ color: oklch(50.2% 0.185 270.9);
Tailwind
colors: {
  custom: {
    50: '#8684dc',
    500: '#4054cb',
    950: '#000000',
  },
}
SCSS
$custom: #4054cb;
$custom-light: #8684dc;
$custom-dark: #000000;
JSON
{
  "hex": "#4054cb",
  "rgb": {
    "r": 64,
    "g": 84,
    "b": 203
  },
  "hsl": {
    "h": 231.367,
    "s": 57.202,
    "l": 52.353
  },
  "oklch": {
    "l": 0.50195,
    "c": 0.18479,
    "h": 270.9
  },
  "luminance": 0.11742
}

Semantic roles & 50–950 ramp

primary
#4054CB
secondary
#D2C995
accent
#CA47E0
background
#F8F8FD
surface
#F0EFFB
border
#CBCAD4
text
#0C0A15
muted
#7D7C83

Preview Lab

Preview with #4054CB

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

Preview Lab → · Contrast checker → · Palette generator →

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