#4054AF#4054AF

#4054AF is a mid, vivid blue. Relative luminance 0.105; OKLCH L 48.0% C 0.146 H 270.6°. Best body text is #FFFFFF at 6.76:1 contrast (WCAG AA passes).

Color values

HEX#4054AF
RGBrgb(64, 84, 175)
HSLhsl(229, 46%, 47%)
HSVhsv(229, 63%, 69%)
CMYKcmyk(63.4%, 52%, 0%, 31.4%)
CIE-LABlab(38.77, 21.68, -51.04)
CIE-LCHlch(38.77, 55.45, 293.01°)
OKLaboklab(48.03% 0.0017 -0.1463)
OKLCHoklch(48.03% 0.146 270.6)
XYZxyz(13.0199, 10.5247, 41.8945)
Luminance0.1053 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4054AF #AF9B40
analogous
#408CAF #4054AF #6340AF
triadic
#4054AF #AF4054 #54AF40
tetradic
#4054AF #AF408C #AF9B40 #40AF63
square
#4054AF #AF408C #AF9B40 #40AF63
split-complementary
#4054AF #AF6340 #8CAF40
monochromatic
#1F2955 #303E82 #4054AF #6577C7 #929FD7

Accessibility & contrast

On white

6.76
#4054AF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.11
#4054AF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4054AF
6.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4054AF#FFFFFF#000000##FFFFFF
##4054AF1.006.763.116.76
#FFFFFF6.761.0021.001.00
#0000003.1121.001.0021.00
##FFFFFF6.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1E60B2
Deuteranopia (green-blind)
#0057AD
Tritanopia (blue-blind)
#006979
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #4054af;
/* rgb */ color: rgb(64, 84, 175);
/* oklch */ color: oklch(48.0% 0.146 270.6);
Tailwind
colors: {
  custom: {
    50: '#8083c7',
    500: '#4054af',
    950: '#000000',
  },
}
SCSS
$custom: #4054af;
$custom-light: #8083c7;
$custom-dark: #000000;
JSON
{
  "hex": "#4054af",
  "rgb": {
    "r": 64,
    "g": 84,
    "b": 175
  },
  "hsl": {
    "h": 229.189,
    "s": 46.444,
    "l": 46.863
  },
  "oklch": {
    "l": 0.48028,
    "c": 0.14634,
    "h": 270.6
  },
  "luminance": 0.10526
}

Semantic roles & 50–950 ramp

primary
#4054AF
secondary
#C3B888
accent
#BE52D6
background
#F8F8FC
surface
#EFEFF8
border
#CACAD1
text
#0B0A13
muted
#7C7C82

Preview Lab

Preview with #4054AF

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

Preview Lab → · Contrast checker → · Palette generator →

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