#4055C7#4055C7

#4055C7 is a mid, vivid blue. Relative luminance 0.117; OKLCH L 50.1% C 0.178 H 270.7°. Best body text is #FFFFFF at 6.28:1 contrast (WCAG AA passes).

Color values

HEX#4055C7
RGBrgb(64, 85, 199)
HSLhsl(231, 55%, 52%)
HSVhsv(231, 68%, 78%)
CMYKcmyk(67.8%, 57.3%, 0%, 22%)
CIE-LABlab(40.75, 29.54, -61.88)
CIE-LCHlch(40.75, 68.57, 295.52°)
OKLaboklab(50.06% 0.0021 -0.1782)
OKLCHoklch(50.06% 0.178 270.7)
XYZxyz(15.6682, 11.7090, 55.4561)
Luminance0.1171 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4055C7 #C7B240
analogous
#4099C7 #4055C7 #6F40C7
triadic
#4055C7 #C74055 #55C740
tetradic
#4055C7 #C74099 #C7B240 #40C76F
square
#4055C7 #C74099 #C7B240 #40C76F
split-complementary
#4055C7 #C76F40 #99C740
monochromatic
#202C6D #2E3F9C #4055C7 #6F7FD5 #9FA9E3

Accessibility & contrast

On white

6.28
#4055C7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.34
#4055C7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##4055C7#FFFFFF#000000##FFFFFF
##4055C71.006.283.346.28
#FFFFFF6.281.0021.001.00
#0000003.3421.001.0021.00
##FFFFFF6.281.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4055c7;
/* rgb */ color: rgb(64, 85, 199);
/* oklch */ color: oklch(50.1% 0.178 270.7);
Tailwind
colors: {
  custom: {
    50: '#8584d9',
    500: '#4055c7',
    950: '#000000',
  },
}
SCSS
$custom: #4055c7;
$custom-light: #8584d9;
$custom-dark: #000000;
JSON
{
  "hex": "#4055c7",
  "rgb": {
    "r": 64,
    "g": 85,
    "b": 199
  },
  "hsl": {
    "h": 230.667,
    "s": 54.656,
    "l": 51.569
  },
  "oklch": {
    "l": 0.50061,
    "c": 0.17821,
    "h": 270.7
  },
  "luminance": 0.11711
}

Semantic roles & 50–950 ramp

primary
#4055C7
secondary
#CFC694
accent
#C74ADE
background
#F8F8FD
surface
#F0EFFB
border
#CBCAD4
text
#0C0B15
muted
#7D7C83

Preview Lab

Preview with #4055C7

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

Preview Lab → · Contrast checker → · Palette generator →

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