#4051AE#4051AE

#4051AE is a mid, vivid blue. Relative luminance 0.100; OKLCH L 47.3% C 0.149 H 271.7°. Best body text is #FFFFFF at 6.99:1 contrast (WCAG AA passes).

Color values

HEX#4051AE
RGBrgb(64, 81, 174)
HSLhsl(231, 46%, 47%)
HSVhsv(231, 63%, 68%)
CMYKcmyk(63.2%, 53.4%, 0%, 31.8%)
CIE-LABlab(37.90, 23.27, -51.85)
CIE-LCHlch(37.90, 56.84, 294.17°)
OKLaboklab(47.35% 0.0045 -0.1488)
OKLCHoklch(47.35% 0.149 271.7)
XYZxyz(12.6942, 10.0298, 41.3032)
Luminance0.1003 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4051AE #AE9D40
analogous
#4088AE #4051AE #6640AE
triadic
#4051AE #AE4051 #51AE40
tetradic
#4051AE #AE4088 #AE9D40 #40AE66
square
#4051AE #AE4088 #AE9D40 #40AE66
split-complementary
#4051AE #AE6640 #88AE40
monochromatic
#1F2755 #303C81 #4051AE #6574C6 #929CD7

Accessibility & contrast

On white

6.99
#4051AE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.01
#4051AE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4051AE
6.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4051AE#FFFFFF#000000##FFFFFF
##4051AE1.006.993.016.99
#FFFFFF6.991.0021.001.00
#0000003.0121.001.0021.00
##FFFFFF6.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#155EB1
Deuteranopia (green-blind)
#0055AC
Tritanopia (blue-blind)
#006777
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #4051ae;
/* rgb */ color: rgb(64, 81, 174);
/* oklch */ color: oklch(47.3% 0.149 271.7);
Tailwind
colors: {
  custom: {
    50: '#8081c7',
    500: '#4051ae',
    950: '#000000',
  },
}
SCSS
$custom: #4051ae;
$custom-light: #8081c7;
$custom-dark: #000000;
JSON
{
  "hex": "#4051ae",
  "rgb": {
    "r": 64,
    "g": 81,
    "b": 174
  },
  "hsl": {
    "h": 230.727,
    "s": 46.218,
    "l": 46.667
  },
  "oklch": {
    "l": 0.47348,
    "c": 0.14884,
    "h": 271.7
  },
  "luminance": 0.10031
}

Semantic roles & 50–950 ramp

primary
#4051AE
secondary
#C2B988
accent
#C152D6
background
#F8F7FC
surface
#EFEEF8
border
#CAC9D1
text
#0B0A13
muted
#7C7C82

Preview Lab

Preview with #4051AE

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

Preview Lab → · Contrast checker → · Palette generator →

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