#4055CB#4055CB

#4055CB is a mid, vivid blue. Relative luminance 0.119; OKLCH L 50.4% C 0.184 H 270.7°. Best body text is #FFFFFF at 6.21:1 contrast (WCAG AA passes).

Color values

HEX#4055CB
RGBrgb(64, 85, 203)
HSLhsl(231, 57%, 52%)
HSVhsv(231, 68%, 80%)
CMYKcmyk(68.5%, 58.1%, 0%, 20.4%)
CIE-LABlab(41.05, 30.96, -63.70)
CIE-LCHlch(41.05, 70.82, 295.92°)
OKLaboklab(50.38% 0.0021 -0.1835)
OKLCHoklch(50.38% 0.184 270.7)
XYZxyz(16.1387, 11.8972, 57.9342)
Luminance0.1190 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4055CB #CBB640
analogous
#409BCB #4055CB #7040CB
triadic
#4055CB #CB4055 #55CB40
tetradic
#4055CB #CB409B #CBB640 #40CB70
square
#4055CB #CB409B #CBB640 #40CB70
split-complementary
#4055CB #CB7040 #9BCB40
monochromatic
#1F2B72 #2C3EA2 #4055CB #7080D8 #A0ABE5

Accessibility & contrast

On white

6.21
#4055CB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.38
#4055CB on #000000
AA ✗AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##4055CB#FFFFFF#000000##FFFFFF
##4055CB1.006.213.386.21
#FFFFFF6.211.0021.001.00
#0000003.3821.001.0021.00
##FFFFFF6.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0067CF
Deuteranopia (green-blind)
#005BC9
Tritanopia (blue-blind)
#007288
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #4055cb;
/* rgb */ color: rgb(64, 85, 203);
/* oklch */ color: oklch(50.4% 0.184 270.7);
Tailwind
colors: {
  custom: {
    50: '#8584dc',
    500: '#4055cb',
    950: '#000000',
  },
}
SCSS
$custom: #4055cb;
$custom-light: #8584dc;
$custom-dark: #000000;
JSON
{
  "hex": "#4055cb",
  "rgb": {
    "r": 64,
    "g": 85,
    "b": 203
  },
  "hsl": {
    "h": 230.935,
    "s": 57.202,
    "l": 52.353
  },
  "oklch": {
    "l": 0.50382,
    "c": 0.18356,
    "h": 270.7
  },
  "luminance": 0.11899
}

Semantic roles & 50–950 ramp

primary
#4055CB
secondary
#D2C995
accent
#C947E0
background
#F8F8FD
surface
#F0EFFB
border
#CBCAD4
text
#0C0B15
muted
#7D7C83

Preview Lab

Preview with #4055CB

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

Preview Lab → · Contrast checker → · Palette generator →

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