#4051BA#4051BA

#4051BA is a mid, vivid blue. Relative luminance 0.105; OKLCH L 48.3% C 0.166 H 271.8°. Best body text is #FFFFFF at 6.77:1 contrast (WCAG AA passes).

Color values

HEX#4051BA
RGBrgb(64, 81, 186)
HSLhsl(232, 49%, 49%)
HSVhsv(232, 66%, 73%)
CMYKcmyk(65.6%, 56.5%, 0%, 27.1%)
CIE-LABlab(38.76, 27.51, -57.53)
CIE-LCHlch(38.76, 63.77, 295.55°)
OKLaboklab(48.27% 0.0051 -0.1655)
OKLCHoklch(48.27% 0.166 271.8)
XYZxyz(13.9167, 10.5188, 47.7418)
Luminance0.1052 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4051BA #BAA940
analogous
#408EBA #4051BA #6C40BA
triadic
#4051BA #BA4051 #51BA40
tetradic
#4051BA #BA408E #BAA940 #40BA6C
square
#4051BA #BA408E #BAA940 #40BA6C
split-complementary
#4051BA #BA6C40 #8EBA40
monochromatic
#21295F #303D8C #4051BA #6B79CC #99A2DC

Accessibility & contrast

On white

6.77
#4051BA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.10
#4051BA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4051BA
6.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4051BA#FFFFFF#000000##FFFFFF
##4051BA1.006.773.106.77
#FFFFFF6.771.0021.001.00
#0000003.1021.001.0021.00
##FFFFFF6.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061BE
Deuteranopia (green-blind)
#0056B8
Tritanopia (blue-blind)
#006A7D
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #4051ba;
/* rgb */ color: rgb(64, 81, 186);
/* oklch */ color: oklch(48.3% 0.166 271.8);
Tailwind
colors: {
  custom: {
    50: '#8281cf',
    500: '#4051ba',
    950: '#000000',
  },
}
SCSS
$custom: #4051ba;
$custom-light: #8281cf;
$custom-dark: #000000;
JSON
{
  "hex": "#4051ba",
  "rgb": {
    "r": 64,
    "g": 81,
    "b": 186
  },
  "hsl": {
    "h": 231.639,
    "s": 48.8,
    "l": 49.02
  },
  "oklch": {
    "l": 0.48268,
    "c": 0.16555,
    "h": 271.8
  },
  "luminance": 0.1052
}

Semantic roles & 50–950 ramp

primary
#4051BA
secondary
#C8C08E
accent
#C54FD8
background
#F8F7FC
surface
#F0EEF9
border
#CBC9D2
text
#0C0A14
muted
#7D7C82

Preview Lab

Preview with #4051BA

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

Preview Lab → · Contrast checker → · Palette generator →

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