#4051AF#4051AF

#4051AF is a mid, vivid blue. Relative luminance 0.101; OKLCH L 47.4% C 0.150 H 271.8°. Best body text is #FFFFFF at 6.97:1 contrast (WCAG AA passes).

Color values

HEX#4051AF
RGBrgb(64, 81, 175)
HSLhsl(231, 46%, 47%)
HSVhsv(231, 63%, 69%)
CMYKcmyk(63.4%, 53.7%, 0%, 31.4%)
CIE-LABlab(37.97, 23.62, -52.33)
CIE-LCHlch(37.97, 57.42, 294.29°)
OKLaboklab(47.42% 0.0046 -0.1502)
OKLCHoklch(47.42% 0.15 271.8)
XYZxyz(12.7921, 10.0689, 41.8185)
Luminance0.1007 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4051AF #AF9E40
analogous
#4089AF #4051AF #6740AF
triadic
#4051AF #AF4051 #51AF40
tetradic
#4051AF #AF4089 #AF9E40 #40AF67
square
#4051AF #AF4089 #AF9E40 #40AF67
split-complementary
#4051AF #AF6740 #89AF40
monochromatic
#1F2855 #303C82 #4051AF #6574C7 #929DD7

Accessibility & contrast

On white

6.97
#4051AF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #4051AF
6.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4051AF#FFFFFF#000000##FFFFFF
##4051AF1.006.973.016.97
#FFFFFF6.971.0021.001.00
#0000003.0121.001.0021.00
##FFFFFF6.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#135EB2
Deuteranopia (green-blind)
#0055AD
Tritanopia (blue-blind)
#006778
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #4051af;
/* rgb */ color: rgb(64, 81, 175);
/* oklch */ color: oklch(47.4% 0.150 271.8);
Tailwind
colors: {
  custom: {
    50: '#8081c7',
    500: '#4051af',
    950: '#000000',
  },
}
SCSS
$custom: #4051af;
$custom-light: #8081c7;
$custom-dark: #000000;
JSON
{
  "hex": "#4051af",
  "rgb": {
    "r": 64,
    "g": 81,
    "b": 175
  },
  "hsl": {
    "h": 230.811,
    "s": 46.444,
    "l": 46.863
  },
  "oklch": {
    "l": 0.47423,
    "c": 0.15025,
    "h": 271.8
  },
  "luminance": 0.1007
}

Semantic roles & 50–950 ramp

primary
#4051AF
secondary
#C3BA88
accent
#C252D6
background
#F8F7FC
surface
#EFEEF8
border
#CAC9D1
text
#0B0A13
muted
#7C7C82

Preview Lab

Preview with #4051AF

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

Preview Lab → · Contrast checker → · Palette generator →

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