#4054CE#4054CE

#4054CE is a mid, vivid blue. Relative luminance 0.119; OKLCH L 50.4% C 0.189 H 270.9°. Best body text is #FFFFFF at 6.22:1 contrast (WCAG AA passes).

Color values

HEX#4054CE
RGBrgb(64, 84, 206)
HSLhsl(232, 59%, 53%)
HSVhsv(232, 69%, 81%)
CMYKcmyk(68.9%, 59.2%, 0%, 19.2%)
CIE-LABlab(41.03, 32.65, -65.46)
CIE-LCHlch(41.03, 73.15, 296.51°)
OKLaboklab(50.44% 0.003 -0.1887)
OKLCHoklch(50.44% 0.189 270.9)
XYZxyz(16.4215, 11.8853, 59.8092)
Luminance0.1189 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4054CE #CEBA40
analogous
#409BCE #4054CE #7340CE
triadic
#4054CE #CE4054 #54CE40
tetradic
#4054CE #CE409B #CEBA40 #40CE73
square
#4054CE #CE409B #CEBA40 #40CE73
split-complementary
#4054CE #CE7340 #9BCE40
monochromatic
#1E2A75 #2B3CA6 #4054CE #7180DA #A1ABE7

Accessibility & contrast

On white

6.22
#4054CE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.38
#4054CE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4054CE
6.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4054CE#FFFFFF#000000##FFFFFF
##4054CE1.006.223.386.22
#FFFFFF6.221.0021.001.00
#0000003.3821.001.0021.00
##FFFFFF6.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0067D2
Deuteranopia (green-blind)
#005ACC
Tritanopia (blue-blind)
#007289
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #4054ce;
/* rgb */ color: rgb(64, 84, 206);
/* oklch */ color: oklch(50.4% 0.189 270.9);
Tailwind
colors: {
  custom: {
    50: '#8684de',
    500: '#4054ce',
    950: '#000000',
  },
}
SCSS
$custom: #4054ce;
$custom-light: #8684de;
$custom-dark: #000000;
JSON
{
  "hex": "#4054ce",
  "rgb": {
    "r": 64,
    "g": 84,
    "b": 206
  },
  "hsl": {
    "h": 231.549,
    "s": 59.167,
    "l": 52.941
  },
  "oklch": {
    "l": 0.5044,
    "c": 0.18876,
    "h": 270.9
  },
  "luminance": 0.11887
}

Semantic roles & 50–950 ramp

primary
#4054CE
secondary
#D4CB96
accent
#CC45E2
background
#F8F8FD
surface
#F0EFFB
border
#CBCAD4
text
#0D0A15
muted
#7D7C83

Preview Lab

Preview with #4054CE

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

Preview Lab → · Contrast checker → · Palette generator →

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