#4048AD#4048AD

#4048AD is a mid, vivid blue. Relative luminance 0.087; OKLCH L 45.5% C 0.159 H 274.7°. Best body text is #FFFFFF at 7.64:1 contrast (WCAG AA passes).

Color values

HEX#4048AD
RGBrgb(64, 72, 173)
HSLhsl(236, 46%, 46%)
HSVhsv(236, 63%, 68%)
CMYKcmyk(63%, 58.4%, 0%, 32.2%)
CIE-LABlab(35.48, 28.74, -55.17)
CIE-LCHlch(35.48, 62.21, 297.51°)
OKLaboklab(45.52% 0.0131 -0.1586)
OKLCHoklch(45.52% 0.159 274.7)
XYZxyz(11.9721, 8.7409, 40.5833)
Luminance0.0874 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4048AD #ADA540
analogous
#407FAD #4048AD #6F40AD
triadic
#4048AD #AD4048 #48AD40
tetradic
#4048AD #AD407F #ADA540 #40AD6F
square
#4048AD #AD407F #ADA540 #40AD6F
split-complementary
#4048AD #AD6F40 #7FAD40
monochromatic
#1F2354 #2F3580 #4048AD #646CC6 #9196D6

Accessibility & contrast

On white

7.64
#4048AD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.75
#4048AD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4048AD
7.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4048AD#FFFFFF#000000##FFFFFF
##4048AD1.007.642.757.64
#FFFFFF7.641.0021.001.00
#0000002.7521.001.0021.00
##FFFFFF7.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058B0
Deuteranopia (green-blind)
#004FAB
Tritanopia (blue-blind)
#006073
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #4048ad;
/* rgb */ color: rgb(64, 72, 173);
/* oklch */ color: oklch(45.5% 0.159 274.7);
Tailwind
colors: {
  custom: {
    50: '#807bc6',
    500: '#4048ad',
    950: '#000000',
  },
}
SCSS
$custom: #4048ad;
$custom-light: #807bc6;
$custom-dark: #000000;
JSON
{
  "hex": "#4048ad",
  "rgb": {
    "r": 64,
    "g": 72,
    "b": 173
  },
  "hsl": {
    "h": 235.596,
    "s": 45.992,
    "l": 46.471
  },
  "oklch": {
    "l": 0.45519,
    "c": 0.15917,
    "h": 274.7
  },
  "luminance": 0.08742
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #4048AD

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

Preview Lab → · Contrast checker → · Palette generator →

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