#4051BC#4051BC

#4051BC is a mid, vivid blue. Relative luminance 0.106; OKLCH L 48.4% C 0.168 H 271.8°. Best body text is #FFFFFF at 6.73:1 contrast (WCAG AA passes).

Color values

HEX#4051BC
RGBrgb(64, 81, 188)
HSLhsl(232, 49%, 49%)
HSVhsv(232, 66%, 74%)
CMYKcmyk(66%, 56.9%, 0%, 26.3%)
CIE-LABlab(38.91, 28.21, -58.46)
CIE-LCHlch(38.91, 64.91, 295.76°)
OKLaboklab(48.43% 0.0052 -0.1682)
OKLCHoklch(48.43% 0.168 271.8)
XYZxyz(14.1308, 10.6044, 48.8694)
Luminance0.1061 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4051BC #BCAB40
analogous
#408FBC #4051BC #6D40BC
triadic
#4051BC #BC4051 #51BC40
tetradic
#4051BC #BC408F #BCAB40 #40BC6D
square
#4051BC #BC408F #BCAB40 #40BC6D
split-complementary
#4051BC #BC6D40 #8FBC40
monochromatic
#212A61 #303D8E #4051BC #6C79CD #9AA3DD

Accessibility & contrast

On white

6.73
#4051BC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.12
#4051BC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4051BC
6.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4051BC#FFFFFF#000000##FFFFFF
##4051BC1.006.733.126.73
#FFFFFF6.731.0021.001.00
#0000003.1221.001.0021.00
##FFFFFF6.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061C0
Deuteranopia (green-blind)
#0056BA
Tritanopia (blue-blind)
#006B7E
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #4051bc;
/* rgb */ color: rgb(64, 81, 188);
/* oklch */ color: oklch(48.4% 0.168 271.8);
Tailwind
colors: {
  custom: {
    50: '#8381d1',
    500: '#4051bc',
    950: '#000000',
  },
}
SCSS
$custom: #4051bc;
$custom-light: #8381d1;
$custom-dark: #000000;
JSON
{
  "hex": "#4051bc",
  "rgb": {
    "r": 64,
    "g": 81,
    "b": 188
  },
  "hsl": {
    "h": 231.774,
    "s": 49.206,
    "l": 49.412
  },
  "oklch": {
    "l": 0.48426,
    "c": 0.16829,
    "h": 271.8
  },
  "luminance": 0.10606
}

Semantic roles & 50–950 ramp

primary
#4051BC
secondary
#C9C18F
accent
#C64FD9
background
#F8F7FC
surface
#F0EEF9
border
#CBC9D2
text
#0C0A14
muted
#7D7C82

Preview Lab

Preview with #4051BC

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

Preview Lab → · Contrast checker → · Palette generator →

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