#4051C0#4051C0

#4051C0 is a mid, vivid blue. Relative luminance 0.108; OKLCH L 48.7% C 0.174 H 271.7°. Best body text is #FFFFFF at 6.65:1 contrast (WCAG AA passes).

Color values

HEX#4051C0
RGBrgb(64, 81, 192)
HSLhsl(232, 50%, 50%)
HSVhsv(232, 67%, 75%)
CMYKcmyk(66.7%, 57.8%, 0%, 24.7%)
CIE-LABlab(39.21, 29.62, -60.31)
CIE-LCHlch(39.21, 67.20, 296.16°)
OKLaboklab(48.74% 0.0053 -0.1736)
OKLCHoklch(48.74% 0.174 271.7)
XYZxyz(14.5680, 10.7793, 51.1718)
Luminance0.1078 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4051C0 #C0AF40
analogous
#4091C0 #4051C0 #6F40C0
triadic
#4051C0 #C04051 #51C040
tetradic
#4051C0 #C04091 #C0AF40 #40C06F
square
#4051C0 #C04091 #C0AF40 #40C06F
split-complementary
#4051C0 #C06F40 #91C040
monochromatic
#212A64 #303D92 #4051C0 #6E7BCF #9CA5DE

Accessibility & contrast

On white

6.65
#4051C0 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.16
#4051C0 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4051C0
6.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4051C0#FFFFFF#000000##FFFFFF
##4051C01.006.653.166.65
#FFFFFF6.651.0021.001.00
#0000003.1621.001.0021.00
##FFFFFF6.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062C4
Deuteranopia (green-blind)
#0057BE
Tritanopia (blue-blind)
#006C80
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #4051c0;
/* rgb */ color: rgb(64, 81, 192);
/* oklch */ color: oklch(48.7% 0.174 271.7);
Tailwind
colors: {
  custom: {
    50: '#8481d4',
    500: '#4051c0',
    950: '#000000',
  },
}
SCSS
$custom: #4051c0;
$custom-light: #8481d4;
$custom-dark: #000000;
JSON
{
  "hex": "#4051c0",
  "rgb": {
    "r": 64,
    "g": 81,
    "b": 192
  },
  "hsl": {
    "h": 232.031,
    "s": 50.394,
    "l": 50.196
  },
  "oklch": {
    "l": 0.48744,
    "c": 0.17373,
    "h": 271.7
  },
  "luminance": 0.10781
}

Semantic roles & 50–950 ramp

primary
#4051C0
secondary
#CBC391
accent
#C74EDA
background
#F8F7FD
surface
#F0EEFA
border
#CBC9D3
text
#0C0A14
muted
#7D7C83

Preview Lab

Preview with #4051C0

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

Preview Lab → · Contrast checker → · Palette generator →

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