#4051C8#4051C8

#4051C8 is a mid, vivid blue. Relative luminance 0.111; OKLCH L 49.4% C 0.184 H 271.7°. Best body text is #FFFFFF at 6.50:1 contrast (WCAG AA passes).

Color values

HEX#4051C8
RGBrgb(64, 81, 200)
HSLhsl(233, 55%, 52%)
HSVhsv(233, 68%, 78%)
CMYKcmyk(68%, 59.5%, 0%, 21.6%)
CIE-LABlab(39.82, 32.44, -63.97)
CIE-LCHlch(39.82, 71.72, 296.89°)
OKLaboklab(49.39% 0.0053 -0.1844)
OKLCHoklch(49.39% 0.184 271.7)
XYZxyz(15.4786, 11.1435, 55.9676)
Luminance0.1114 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4051C8 #C8B740
analogous
#4095C8 #4051C8 #7340C8
triadic
#4051C8 #C84051 #51C840
tetradic
#4051C8 #C84095 #C8B740 #40C873
square
#4051C8 #C84095 #C8B740 #40C873
split-complementary
#4051C8 #C87340 #95C840
monochromatic
#20296E #2D3B9D #4051C8 #707CD6 #9FA8E3

Accessibility & contrast

On white

6.50
#4051C8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.23
#4051C8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4051C8
6.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4051C8#FFFFFF#000000##FFFFFF
##4051C81.006.503.236.50
#FFFFFF6.501.0021.001.00
#0000003.2321.001.0021.00
##FFFFFF6.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0064CC
Deuteranopia (green-blind)
#0058C6
Tritanopia (blue-blind)
#006F85
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #4051c8;
/* rgb */ color: rgb(64, 81, 200);
/* oklch */ color: oklch(49.4% 0.184 271.7);
Tailwind
colors: {
  custom: {
    50: '#8581da',
    500: '#4051c8',
    950: '#000000',
  },
}
SCSS
$custom: #4051c8;
$custom-light: #8581da;
$custom-dark: #000000;
JSON
{
  "hex": "#4051c8",
  "rgb": {
    "r": 64,
    "g": 81,
    "b": 200
  },
  "hsl": {
    "h": 232.5,
    "s": 55.285,
    "l": 51.765
  },
  "oklch": {
    "l": 0.49394,
    "c": 0.18446,
    "h": 271.7
  },
  "luminance": 0.11145
}

Semantic roles & 50–950 ramp

primary
#4051C8
secondary
#D0C894
accent
#CC49DF
background
#F8F7FD
surface
#F0EEFB
border
#CBC9D4
text
#0C0A15
muted
#7D7C83

Preview Lab

Preview with #4051C8

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

Preview Lab → · Contrast checker → · Palette generator →

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