#4051BF#4051BF

#4051BF is a mid, vivid blue. Relative luminance 0.107; OKLCH L 48.7% C 0.172 H 271.8°. Best body text is #FFFFFF at 6.67:1 contrast (WCAG AA passes).

Color values

HEX#4051BF
RGBrgb(64, 81, 191)
HSLhsl(232, 50%, 50%)
HSVhsv(232, 66%, 75%)
CMYKcmyk(66.5%, 57.6%, 0%, 25.1%)
CIE-LABlab(39.13, 29.27, -59.85)
CIE-LCHlch(39.13, 66.63, 296.06°)
OKLaboklab(48.66% 0.0053 -0.1723)
OKLCHoklch(48.66% 0.172 271.8)
XYZxyz(14.4576, 10.7351, 50.5903)
Luminance0.1074 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4051BF #BFAE40
analogous
#4090BF #4051BF #6F40BF
triadic
#4051BF #BF4051 #51BF40
tetradic
#4051BF #BF4090 #BFAE40 #40BF6F
square
#4051BF #BF4090 #BFAE40 #40BF6F
split-complementary
#4051BF #BF6F40 #90BF40
monochromatic
#212A63 #313E91 #4051BF #6E7BCE #9CA5DE

Accessibility & contrast

On white

6.67
#4051BF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.15
#4051BF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4051BF
6.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4051BF#FFFFFF#000000##FFFFFF
##4051BF1.006.673.156.67
#FFFFFF6.671.0021.001.00
#0000003.1521.001.0021.00
##FFFFFF6.671.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4051bf;
/* rgb */ color: rgb(64, 81, 191);
/* oklch */ color: oklch(48.7% 0.172 271.8);
Tailwind
colors: {
  custom: {
    50: '#8381d3',
    500: '#4051bf',
    950: '#000000',
  },
}
SCSS
$custom: #4051bf;
$custom-light: #8381d3;
$custom-dark: #000000;
JSON
{
  "hex": "#4051bf",
  "rgb": {
    "r": 64,
    "g": 81,
    "b": 191
  },
  "hsl": {
    "h": 231.969,
    "s": 49.804,
    "l": 50
  },
  "oklch": {
    "l": 0.48664,
    "c": 0.17237,
    "h": 271.8
  },
  "luminance": 0.10736
}

Semantic roles & 50–950 ramp

primary
#4051BF
secondary
#CAC291
accent
#C74ED9
background
#F8F7FD
surface
#F0EEFA
border
#CBC9D3
text
#0C0A14
muted
#7D7C83

Preview Lab

Preview with #4051BF

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

Preview Lab → · Contrast checker → · Palette generator →

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