#4051CC#4051CC

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

Color values

HEX#4051CC
RGBrgb(64, 81, 204)
HSLhsl(233, 58%, 53%)
HSVhsv(233, 69%, 80%)
CMYKcmyk(68.6%, 60.3%, 0%, 20%)
CIE-LABlab(40.14, 33.84, -65.77)
CIE-LCHlch(40.14, 73.96, 297.23°)
OKLaboklab(49.73% 0.0053 -0.1897)
OKLCHoklch(49.73% 0.19 271.6)
XYZxyz(15.9522, 11.3330, 58.4618)
Luminance0.1133 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4051CC #CCBB40
analogous
#4097CC #4051CC #7540CC
triadic
#4051CC #CC4051 #51CC40
tetradic
#4051CC #CC4097 #CCBB40 #40CC75
square
#4051CC #CC4097 #CCBB40 #40CC75
split-complementary
#4051CC #CC7540 #97CC40
monochromatic
#1F2973 #2C3AA3 #4051CC #707DD9 #A1A9E6

Accessibility & contrast

On white

6.43
#4051CC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.27
#4051CC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4051CC
6.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4051CC#FFFFFF#000000##FFFFFF
##4051CC1.006.433.276.43
#FFFFFF6.431.0021.001.00
#0000003.2721.001.0021.00
##FFFFFF6.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0065D0
Deuteranopia (green-blind)
#0058CA
Tritanopia (blue-blind)
#007087
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #4051cc;
/* rgb */ color: rgb(64, 81, 204);
/* oklch */ color: oklch(49.7% 0.190 271.6);
Tailwind
colors: {
  custom: {
    50: '#8681dc',
    500: '#4051cc',
    950: '#000000',
  },
}
SCSS
$custom: #4051cc;
$custom-light: #8681dc;
$custom-dark: #000000;
JSON
{
  "hex": "#4051cc",
  "rgb": {
    "r": 64,
    "g": 81,
    "b": 204
  },
  "hsl": {
    "h": 232.714,
    "s": 57.851,
    "l": 52.549
  },
  "oklch": {
    "l": 0.49725,
    "c": 0.18975,
    "h": 271.6
  },
  "luminance": 0.11334
}

Semantic roles & 50–950 ramp

primary
#4051CC
secondary
#D2CB95
accent
#CE47E1
background
#F8F7FD
surface
#F0EEFB
border
#CBC9D4
text
#0D0A15
muted
#7D7C83

Preview Lab

Preview with #4051CC

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

Preview Lab → · Contrast checker → · Palette generator →

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