#4051CB#4051CB

#4051CB is a mid, vivid blue. Relative luminance 0.113; OKLCH L 49.6% C 0.188 H 271.6°. Best body text is #FFFFFF at 6.45:1 contrast (WCAG AA passes).

Color values

HEX#4051CB
RGBrgb(64, 81, 203)
HSLhsl(233, 57%, 52%)
HSVhsv(233, 68%, 80%)
CMYKcmyk(68.5%, 60.1%, 0%, 20.4%)
CIE-LABlab(40.06, 33.49, -65.32)
CIE-LCHlch(40.06, 73.40, 297.14°)
OKLaboklab(49.64% 0.0053 -0.1884)
OKLCHoklch(49.64% 0.188 271.6)
XYZxyz(15.8326, 11.2851, 57.8322)
Luminance0.1129 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4051CB #CBBA40
analogous
#4096CB #4051CB #7540CB
triadic
#4051CB #CB4051 #51CB40
tetradic
#4051CB #CB4096 #CBBA40 #40CB75
square
#4051CB #CB4096 #CBBA40 #40CB75
split-complementary
#4051CB #CB7540 #96CB40
monochromatic
#1F2972 #2C3AA2 #4051CB #707DD8 #A0A9E5

Accessibility & contrast

On white

6.45
#4051CB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.26
#4051CB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4051CB
6.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4051CB#FFFFFF#000000##FFFFFF
##4051CB1.006.453.266.45
#FFFFFF6.451.0021.001.00
#0000003.2621.001.0021.00
##FFFFFF6.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0065CF
Deuteranopia (green-blind)
#0058C9
Tritanopia (blue-blind)
#007086
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #4051cb;
/* rgb */ color: rgb(64, 81, 203);
/* oklch */ color: oklch(49.6% 0.188 271.6);
Tailwind
colors: {
  custom: {
    50: '#8681dc',
    500: '#4051cb',
    950: '#000000',
  },
}
SCSS
$custom: #4051cb;
$custom-light: #8681dc;
$custom-dark: #000000;
JSON
{
  "hex": "#4051cb",
  "rgb": {
    "r": 64,
    "g": 81,
    "b": 203
  },
  "hsl": {
    "h": 232.662,
    "s": 57.202,
    "l": 52.353
  },
  "oklch": {
    "l": 0.49642,
    "c": 0.18843,
    "h": 271.6
  },
  "luminance": 0.11287
}

Semantic roles & 50–950 ramp

primary
#4051CB
secondary
#D2CA95
accent
#CE47E0
background
#F8F7FD
surface
#F0EEFB
border
#CBC9D4
text
#0C0A15
muted
#7D7C83

Preview Lab

Preview with #4051CB

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

Preview Lab → · Contrast checker → · Palette generator →

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