#4054D3#4054D3

#4054D3 is a mid, vivid blue. Relative luminance 0.121; OKLCH L 50.9% C 0.195 H 270.9°. Best body text is #FFFFFF at 6.13:1 contrast (WCAG AA passes).

Color values

HEX#4054D3
RGBrgb(64, 84, 211)
HSLhsl(232, 63%, 54%)
HSVhsv(232, 70%, 83%)
CMYKcmyk(69.7%, 60.2%, 0%, 17.3%)
CIE-LABlab(41.43, 34.40, -67.70)
CIE-LCHlch(41.43, 75.94, 296.94°)
OKLaboklab(50.85% 0.0029 -0.1953)
OKLCHoklch(50.85% 0.195 270.9)
XYZxyz(17.0386, 12.1321, 63.0592)
Luminance0.1213 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4054D3 #D3BF40
analogous
#409ED3 #4054D3 #7640D3
triadic
#4054D3 #D34054 #54D340
tetradic
#4054D3 #D3409E #D3BF40 #40D376
square
#4054D3 #D3409E #D3BF40 #40D376
split-complementary
#4054D3 #D37640 #9ED340
monochromatic
#1D2A7C #283AAE #4054D3 #7281DE #A3ADEA

Accessibility & contrast

On white

6.13
#4054D3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.43
#4054D3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4054D3
6.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4054D3#FFFFFF#000000##FFFFFF
##4054D31.006.133.436.13
#FFFFFF6.131.0021.001.00
#0000003.4321.001.0021.00
##FFFFFF6.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0069D7
Deuteranopia (green-blind)
#005BD1
Tritanopia (blue-blind)
#00748B
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #4054d3;
/* rgb */ color: rgb(64, 84, 211);
/* oklch */ color: oklch(50.9% 0.195 270.9);
Tailwind
colors: {
  custom: {
    50: '#8784e1',
    500: '#4054d3',
    950: '#000000',
  },
}
SCSS
$custom: #4054d3;
$custom-light: #8784e1;
$custom-dark: #000000;
JSON
{
  "hex": "#4054d3",
  "rgb": {
    "r": 64,
    "g": 84,
    "b": 211
  },
  "hsl": {
    "h": 231.837,
    "s": 62.553,
    "l": 53.922
  },
  "oklch": {
    "l": 0.50853,
    "c": 0.19534,
    "h": 270.9
  },
  "luminance": 0.12134
}

Semantic roles & 50–950 ramp

primary
#4054D3
secondary
#D7CE98
accent
#CF42E6
background
#F9F8FD
surface
#F1EFFB
border
#CBCAD4
text
#0D0A15
muted
#7E7C83

Preview Lab

Preview with #4054D3

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

Preview Lab → · Contrast checker → · Palette generator →

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