#4054C8#4054C8

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

Color values

HEX#4054C8
RGBrgb(64, 84, 200)
HSLhsl(231, 55%, 52%)
HSVhsv(231, 68%, 78%)
CMYKcmyk(68%, 58%, 0%, 21.6%)
CIE-LABlab(40.57, 30.53, -62.74)
CIE-LCHlch(40.57, 69.78, 295.95°)
OKLaboklab(49.95% 0.0029 -0.1808)
OKLCHoklch(49.95% 0.181 270.9)
XYZxyz(15.7065, 11.5993, 56.0435)
Luminance0.1160 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4054C8 #C8B440
analogous
#4098C8 #4054C8 #7040C8
triadic
#4054C8 #C84054 #54C840
tetradic
#4054C8 #C84098 #C8B440 #40C870
square
#4054C8 #C84098 #C8B440 #40C870
split-complementary
#4054C8 #C87040 #98C840
monochromatic
#202B6E #2D3E9D #4054C8 #707FD6 #9FA9E3

Accessibility & contrast

On white

6.32
#4054C8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.32
#4054C8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4054C8
6.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4054C8#FFFFFF#000000##FFFFFF
##4054C81.006.323.326.32
#FFFFFF6.321.0021.001.00
#0000003.3221.001.0021.00
##FFFFFF6.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0066CC
Deuteranopia (green-blind)
#005AC6
Tritanopia (blue-blind)
#007186
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #4054c8;
/* rgb */ color: rgb(64, 84, 200);
/* oklch */ color: oklch(50.0% 0.181 270.9);
Tailwind
colors: {
  custom: {
    50: '#8584da',
    500: '#4054c8',
    950: '#000000',
  },
}
SCSS
$custom: #4054c8;
$custom-light: #8584da;
$custom-dark: #000000;
JSON
{
  "hex": "#4054c8",
  "rgb": {
    "r": 64,
    "g": 84,
    "b": 200
  },
  "hsl": {
    "h": 231.176,
    "s": 55.285,
    "l": 51.765
  },
  "oklch": {
    "l": 0.49952,
    "c": 0.18078,
    "h": 270.9
  },
  "luminance": 0.11601
}

Semantic roles & 50–950 ramp

primary
#4054C8
secondary
#D0C794
accent
#C949DF
background
#F8F8FD
surface
#F0EFFB
border
#CBCAD4
text
#0C0A15
muted
#7D7C83

Preview Lab

Preview with #4054C8

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

Preview Lab → · Contrast checker → · Palette generator →

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