#4054C4#4054C4

#4054C4 is a mid, vivid blue. Relative luminance 0.114; OKLCH L 49.6% C 0.175 H 270.9°. Best body text is #FFFFFF at 6.40:1 contrast (WCAG AA passes).

Color values

HEX#4054C4
RGBrgb(64, 84, 196)
HSLhsl(231, 53%, 51%)
HSVhsv(231, 67%, 77%)
CMYKcmyk(67.3%, 57.1%, 0%, 23.1%)
CIE-LABlab(40.27, 29.12, -60.91)
CIE-LCHlch(40.27, 67.52, 295.55°)
OKLaboklab(49.63% 0.0028 -0.1754)
OKLCHoklch(49.63% 0.175 270.9)
XYZxyz(15.2451, 11.4147, 53.6137)
Luminance0.1142 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4054C4 #C4B040
analogous
#4096C4 #4054C4 #6E40C4
triadic
#4054C4 #C44054 #54C440
tetradic
#4054C4 #C44096 #C4B040 #40C46E
square
#4054C4 #C44096 #C4B040 #40C46E
split-complementary
#4054C4 #C46E40 #96C440
monochromatic
#202B69 #2F3F98 #4054C4 #6F7ED2 #9EA8E1

Accessibility & contrast

On white

6.40
#4054C4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.28
#4054C4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4054C4
6.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4054C4#FFFFFF#000000##FFFFFF
##4054C41.006.403.286.40
#FFFFFF6.401.0021.001.00
#0000003.2821.001.0021.00
##FFFFFF6.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0065C8
Deuteranopia (green-blind)
#0059C2
Tritanopia (blue-blind)
#006F84
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #4054c4;
/* rgb */ color: rgb(64, 84, 196);
/* oklch */ color: oklch(49.6% 0.175 270.9);
Tailwind
colors: {
  custom: {
    50: '#8483d7',
    500: '#4054c4',
    950: '#000000',
  },
}
SCSS
$custom: #4054c4;
$custom-light: #8483d7;
$custom-dark: #000000;
JSON
{
  "hex": "#4054c4",
  "rgb": {
    "r": 64,
    "g": 84,
    "b": 196
  },
  "hsl": {
    "h": 230.909,
    "s": 52.8,
    "l": 50.98
  },
  "oklch": {
    "l": 0.49632,
    "c": 0.1754,
    "h": 270.9
  },
  "luminance": 0.11416
}

Semantic roles & 50–950 ramp

primary
#4054C4
secondary
#CDC493
accent
#C64CDC
background
#F8F8FD
surface
#F0EFFA
border
#CBCAD3
text
#0C0A14
muted
#7D7C83

Preview Lab

Preview with #4054C4

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

Preview Lab → · Contrast checker → · Palette generator →

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