#4048AE#4048AE

#4048AE is a mid, vivid blue. Relative luminance 0.088; OKLCH L 45.6% C 0.161 H 274.7°. Best body text is #FFFFFF at 7.62:1 contrast (WCAG AA passes).

Color values

HEX#4048AE
RGBrgb(64, 72, 174)
HSLhsl(236, 46%, 47%)
HSVhsv(236, 63%, 68%)
CMYKcmyk(63.2%, 58.6%, 0%, 31.8%)
CIE-LABlab(35.56, 29.09, -55.64)
CIE-LCHlch(35.56, 62.79, 297.60°)
OKLaboklab(45.6% 0.0131 -0.16)
OKLCHoklch(45.6% 0.161 274.7)
XYZxyz(12.0692, 8.7797, 41.0948)
Luminance0.0878 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4048AE #AEA640
analogous
#407FAE #4048AE #6F40AE
triadic
#4048AE #AE4048 #48AE40
tetradic
#4048AE #AE407F #AEA640 #40AE6F
square
#4048AE #AE407F #AEA640 #40AE6F
split-complementary
#4048AE #AE6F40 #7FAE40
monochromatic
#1F2355 #303581 #4048AE #656CC6 #9297D7

Accessibility & contrast

On white

7.62
#4048AE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.76
#4048AE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4048AE
7.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4048AE#FFFFFF#000000##FFFFFF
##4048AE1.007.622.767.62
#FFFFFF7.621.0021.001.00
#0000002.7621.001.0021.00
##FFFFFF7.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059B1
Deuteranopia (green-blind)
#004FAC
Tritanopia (blue-blind)
#006174
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #4048ae;
/* rgb */ color: rgb(64, 72, 174);
/* oklch */ color: oklch(45.6% 0.161 274.7);
Tailwind
colors: {
  custom: {
    50: '#817bc7',
    500: '#4048ae',
    950: '#000000',
  },
}
SCSS
$custom: #4048ae;
$custom-light: #817bc7;
$custom-dark: #000000;
JSON
{
  "hex": "#4048ae",
  "rgb": {
    "r": 64,
    "g": 72,
    "b": 174
  },
  "hsl": {
    "h": 235.636,
    "s": 46.218,
    "l": 46.667
  },
  "oklch": {
    "l": 0.45599,
    "c": 0.16056,
    "h": 274.7
  },
  "luminance": 0.08781
}

Semantic roles & 50–950 ramp

primary
#4048AE
secondary
#C2BE88
accent
#CC52D6
background
#F8F7FC
surface
#EFEDF8
border
#CAC8D1
text
#0B0913
muted
#7C7B82

Preview Lab

Preview with #4048AE

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

Preview Lab → · Contrast checker → · Palette generator →

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