#4051C4#4051C4

#4051C4 is a mid, vivid blue. Relative luminance 0.110; OKLCH L 49.1% C 0.179 H 271.7°. Best body text is #FFFFFF at 6.58:1 contrast (WCAG AA passes).

Color values

HEX#4051C4
RGBrgb(64, 81, 196)
HSLhsl(232, 53%, 51%)
HSVhsv(232, 67%, 77%)
CMYKcmyk(67.3%, 58.7%, 0%, 23.1%)
CIE-LABlab(39.51, 31.03, -62.15)
CIE-LCHlch(39.51, 69.46, 296.53°)
OKLaboklab(49.07% 0.0053 -0.179)
OKLCHoklch(49.07% 0.179 271.7)
XYZxyz(15.0172, 10.9590, 53.5377)
Luminance0.1096 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4051C4 #C4B340
analogous
#4093C4 #4051C4 #7140C4
triadic
#4051C4 #C44051 #51C440
tetradic
#4051C4 #C44093 #C4B340 #40C471
square
#4051C4 #C44093 #C4B340 #40C471
split-complementary
#4051C4 #C47140 #93C440
monochromatic
#202A69 #2F3C98 #4051C4 #6F7CD2 #9EA6E1

Accessibility & contrast

On white

6.58
#4051C4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.19
#4051C4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4051C4
6.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4051C4#FFFFFF#000000##FFFFFF
##4051C41.006.583.196.58
#FFFFFF6.581.0021.001.00
#0000003.1921.001.0021.00
##FFFFFF6.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0063C8
Deuteranopia (green-blind)
#0057C2
Tritanopia (blue-blind)
#006D82
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #4051c4;
/* rgb */ color: rgb(64, 81, 196);
/* oklch */ color: oklch(49.1% 0.179 271.7);
Tailwind
colors: {
  custom: {
    50: '#8481d7',
    500: '#4051c4',
    950: '#000000',
  },
}
SCSS
$custom: #4051c4;
$custom-light: #8481d7;
$custom-dark: #000000;
JSON
{
  "hex": "#4051c4",
  "rgb": {
    "r": 64,
    "g": 81,
    "b": 196
  },
  "hsl": {
    "h": 232.273,
    "s": 52.8,
    "l": 50.98
  },
  "oklch": {
    "l": 0.49067,
    "c": 0.17912,
    "h": 271.7
  },
  "luminance": 0.1096
}

Semantic roles & 50–950 ramp

primary
#4051C4
secondary
#CDC693
accent
#CA4CDC
background
#F8F7FD
surface
#F0EEFA
border
#CBC9D3
text
#0C0A14
muted
#7D7C83

Preview Lab

Preview with #4051C4

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

Preview Lab → · Contrast checker → · Palette generator →

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