#4054D2#4054D2

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

Color values

HEX#4054D2
RGBrgb(64, 84, 210)
HSLhsl(232, 62%, 54%)
HSVhsv(232, 70%, 82%)
CMYKcmyk(69.5%, 60%, 0%, 17.6%)
CIE-LABlab(41.35, 34.05, -67.25)
CIE-LCHlch(41.35, 75.38, 296.85°)
OKLaboklab(50.77% 0.0029 -0.194)
OKLCHoklch(50.77% 0.194 270.9)
XYZxyz(16.9136, 12.0821, 62.4010)
Luminance0.1208 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4054D2 #D2BE40
analogous
#409DD2 #4054D2 #7540D2
triadic
#4054D2 #D24054 #54D240
tetradic
#4054D2 #D2409D #D2BE40 #40D275
square
#4054D2 #D2409D #D2BE40 #40D275
split-complementary
#4054D2 #D27540 #9DD240
monochromatic
#1D2A7B #293BAC #4054D2 #7280DE #A3ADE9

Accessibility & contrast

On white

6.15
#4054D2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.42
#4054D2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4054D2
6.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4054D2#FFFFFF#000000##FFFFFF
##4054D21.006.153.426.15
#FFFFFF6.151.0021.001.00
#0000003.4221.001.0021.00
##FFFFFF6.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0068D6
Deuteranopia (green-blind)
#005BD0
Tritanopia (blue-blind)
#00748B
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #4054d2;
/* rgb */ color: rgb(64, 84, 210);
/* oklch */ color: oklch(50.8% 0.194 270.9);
Tailwind
colors: {
  custom: {
    50: '#8784e1',
    500: '#4054d2',
    950: '#000000',
  },
}
SCSS
$custom: #4054d2;
$custom-light: #8784e1;
$custom-dark: #000000;
JSON
{
  "hex": "#4054d2",
  "rgb": {
    "r": 64,
    "g": 84,
    "b": 210
  },
  "hsl": {
    "h": 231.781,
    "s": 61.864,
    "l": 53.725
  },
  "oklch": {
    "l": 0.5077,
    "c": 0.19403,
    "h": 270.9
  },
  "luminance": 0.12084
}

Semantic roles & 50–950 ramp

primary
#4054D2
secondary
#D6CE98
accent
#CF43E5
background
#F9F8FD
surface
#F1EFFB
border
#CBCAD4
text
#0D0A15
muted
#7E7C83

Preview Lab

Preview with #4054D2

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

Preview Lab → · Contrast checker → · Palette generator →

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