#4055AA#4055AA

#4055AA is a mid, vivid blue. Relative luminance 0.105; OKLCH L 47.9% C 0.138 H 270.1°. Best body text is #FFFFFF at 6.78:1 contrast (WCAG AA passes).

Color values

HEX#4055AA
RGBrgb(64, 85, 170)
HSLhsl(228, 45%, 46%)
HSVhsv(228, 62%, 67%)
CMYKcmyk(62.4%, 50%, 0%, 33.3%)
CIE-LABlab(38.70, 19.26, -48.18)
CIE-LCHlch(38.70, 51.89, 291.79°)
OKLaboklab(47.87% 0.0001 -0.1379)
OKLCHoklch(47.87% 0.138 270.1)
XYZxyz(12.6161, 10.4882, 39.3820)
Luminance0.1049 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4055AA #AA9540
analogous
#408AAA #4055AA #6040AA
triadic
#4055AA #AA4055 #55AA40
tetradic
#4055AA #AA408A #AA9540 #40AA60
square
#4055AA #AA408A #AA9540 #40AA60
split-complementary
#4055AA #AA6040 #8AAA40
monochromatic
#1F2951 #2F3F7E #4055AA #6376C4 #8F9DD5

Accessibility & contrast

On white

6.78
#4055AA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.10
#4055AA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4055AA
6.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4055AA#FFFFFF#000000##FFFFFF
##4055AA1.006.783.106.78
#FFFFFF6.781.0021.001.00
#0000003.1021.001.0021.00
##FFFFFF6.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2860AD
Deuteranopia (green-blind)
#1057A8
Tritanopia (blue-blind)
#006977
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #4055aa;
/* rgb */ color: rgb(64, 85, 170);
/* oklch */ color: oklch(47.9% 0.138 270.1);
Tailwind
colors: {
  custom: {
    50: '#7f84c4',
    500: '#4055aa',
    950: '#000000',
  },
}
SCSS
$custom: #4055aa;
$custom-light: #7f84c4;
$custom-dark: #000000;
JSON
{
  "hex": "#4055aa",
  "rgb": {
    "r": 64,
    "g": 85,
    "b": 170
  },
  "hsl": {
    "h": 228.113,
    "s": 45.299,
    "l": 45.882
  },
  "oklch": {
    "l": 0.47873,
    "c": 0.1379,
    "h": 270.1
  },
  "luminance": 0.10489
}

Semantic roles & 50–950 ramp

primary
#4055AA
secondary
#C0B586
accent
#BB53D5
background
#F8F8FC
surface
#EFEFF8
border
#CACAD1
text
#0B0A13
muted
#7C7C82

Preview Lab

Preview with #4055AA

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

Preview Lab → · Contrast checker → · Palette generator →

#4055AA Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva