#4054C7#4054C7

#4054C7 is a mid, vivid blue. Relative luminance 0.116; OKLCH L 49.9% C 0.179 H 270.9°. Best body text is #FFFFFF at 6.34:1 contrast (WCAG AA passes).

Color values

HEX#4054C7
RGBrgb(64, 84, 199)
HSLhsl(231, 55%, 52%)
HSVhsv(231, 68%, 78%)
CMYKcmyk(67.8%, 57.8%, 0%, 22%)
CIE-LABlab(40.50, 30.18, -62.29)
CIE-LCHlch(40.50, 69.21, 295.85°)
OKLaboklab(49.87% 0.0029 -0.1794)
OKLCHoklch(49.87% 0.179 270.9)
XYZxyz(15.5900, 11.5527, 55.4301)
Luminance0.1155 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4054C7 #C7B340
analogous
#4098C7 #4054C7 #7040C7
triadic
#4054C7 #C74054 #54C740
tetradic
#4054C7 #C74098 #C7B340 #40C770
square
#4054C7 #C74098 #C7B340 #40C770
split-complementary
#4054C7 #C77040 #98C740
monochromatic
#202B6D #2E3E9C #4054C7 #6F7ED5 #9FA9E3

Accessibility & contrast

On white

6.34
#4054C7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.31
#4054C7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4054C7
6.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4054C7#FFFFFF#000000##FFFFFF
##4054C71.006.343.316.34
#FFFFFF6.341.0021.001.00
#0000003.3121.001.0021.00
##FFFFFF6.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0066CB
Deuteranopia (green-blind)
#0059C5
Tritanopia (blue-blind)
#007085
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #4054c7;
/* rgb */ color: rgb(64, 84, 199);
/* oklch */ color: oklch(49.9% 0.179 270.9);
Tailwind
colors: {
  custom: {
    50: '#8583d9',
    500: '#4054c7',
    950: '#000000',
  },
}
SCSS
$custom: #4054c7;
$custom-light: #8583d9;
$custom-dark: #000000;
JSON
{
  "hex": "#4054c7",
  "rgb": {
    "r": 64,
    "g": 84,
    "b": 199
  },
  "hsl": {
    "h": 231.111,
    "s": 54.656,
    "l": 51.569
  },
  "oklch": {
    "l": 0.49872,
    "c": 0.17944,
    "h": 270.9
  },
  "luminance": 0.11554
}

Semantic roles & 50–950 ramp

primary
#4054C7
secondary
#CFC694
accent
#C84ADE
background
#F8F8FD
surface
#F0EFFB
border
#CBCAD4
text
#0C0A15
muted
#7D7C83

Preview Lab

Preview with #4054C7

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

Preview Lab → · Contrast checker → · Palette generator →

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