#4051C2#4051C2

#4051C2 is a mid, vivid blue. Relative luminance 0.109; OKLCH L 48.9% C 0.176 H 271.7°. Best body text is #FFFFFF at 6.62:1 contrast (WCAG AA passes).

Color values

HEX#4051C2
RGBrgb(64, 81, 194)
HSLhsl(232, 52%, 51%)
HSVhsv(232, 67%, 76%)
CMYKcmyk(67%, 58.2%, 0%, 23.9%)
CIE-LABlab(39.36, 30.33, -61.23)
CIE-LCHlch(39.36, 68.33, 296.35°)
OKLaboklab(48.91% 0.0053 -0.1763)
OKLCHoklch(48.91% 0.176 271.7)
XYZxyz(14.7911, 10.8685, 52.3468)
Luminance0.1087 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4051C2 #C2B140
analogous
#4092C2 #4051C2 #7040C2
triadic
#4051C2 #C24051 #51C240
tetradic
#4051C2 #C24092 #C2B140 #40C270
square
#4051C2 #C24092 #C2B140 #40C270
split-complementary
#4051C2 #C27040 #92C240
monochromatic
#212A67 #303D95 #4051C2 #6E7BD1 #9DA6E0

Accessibility & contrast

On white

6.62
#4051C2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.17
#4051C2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4051C2
6.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4051C2#FFFFFF#000000##FFFFFF
##4051C21.006.623.176.62
#FFFFFF6.621.0021.001.00
#0000003.1721.001.0021.00
##FFFFFF6.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0063C6
Deuteranopia (green-blind)
#0057C0
Tritanopia (blue-blind)
#006D81
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #4051c2;
/* rgb */ color: rgb(64, 81, 194);
/* oklch */ color: oklch(48.9% 0.176 271.7);
Tailwind
colors: {
  custom: {
    50: '#8481d5',
    500: '#4051c2',
    950: '#000000',
  },
}
SCSS
$custom: #4051c2;
$custom-light: #8481d5;
$custom-dark: #000000;
JSON
{
  "hex": "#4051c2",
  "rgb": {
    "r": 64,
    "g": 81,
    "b": 194
  },
  "hsl": {
    "h": 232.154,
    "s": 51.587,
    "l": 50.588
  },
  "oklch": {
    "l": 0.48905,
    "c": 0.17643,
    "h": 271.7
  },
  "luminance": 0.1087
}

Semantic roles & 50–950 ramp

primary
#4051C2
secondary
#CCC492
accent
#C84DDB
background
#F8F7FD
surface
#F0EEFA
border
#CBC9D3
text
#0C0A14
muted
#7D7C83

Preview Lab

Preview with #4051C2

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

Preview Lab → · Contrast checker → · Palette generator →

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