#4048D4#4048D4

#4048D4 is a mid, highly saturated blue. Relative luminance 0.105; OKLCH L 48.9% C 0.211 H 273.1°. Best body text is #FFFFFF at 6.78:1 contrast (WCAG AA passes).

Color values

HEX#4048D4
RGBrgb(64, 72, 212)
HSLhsl(237, 63%, 54%)
HSVhsv(237, 70%, 83%)
CMYKcmyk(69.8%, 66%, 0%, 16.9%)
CIE-LABlab(38.68, 42.15, -72.76)
CIE-LCHlch(38.68, 84.08, 300.08°)
OKLaboklab(48.87% 0.0112 -0.2102)
OKLCHoklch(48.87% 0.211 273.1)
XYZxyz(16.3114, 10.4766, 63.4372)
Luminance0.1048 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4048D4 #D4CC40
analogous
#4092D4 #4048D4 #8240D4
triadic
#4048D4 #D44048 #48D440
tetradic
#4048D4 #D44092 #D4CC40 #40D482
square
#4048D4 #D44092 #D4CC40 #40D482
split-complementary
#4048D4 #D48240 #92D440
monochromatic
#1C217D #272FAF #4048D4 #7278DF #A4A8EA

Accessibility & contrast

On white

6.78
#4048D4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.10
#4048D4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4048D4
6.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4048D4#FFFFFF#000000##FFFFFF
##4048D41.006.783.106.78
#FFFFFF6.781.0021.001.00
#0000003.1021.001.0021.00
##FFFFFF6.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062D8
Deuteranopia (green-blind)
#0054D1
Tritanopia (blue-blind)
#006D88
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #4048d4;
/* rgb */ color: rgb(64, 72, 212);
/* oklch */ color: oklch(48.9% 0.211 273.1);
Tailwind
colors: {
  custom: {
    50: '#887be2',
    500: '#4048d4',
    950: '#000000',
  },
}
SCSS
$custom: #4048d4;
$custom-light: #887be2;
$custom-dark: #000000;
JSON
{
  "hex": "#4048d4",
  "rgb": {
    "r": 64,
    "g": 72,
    "b": 212
  },
  "hsl": {
    "h": 236.757,
    "s": 63.248,
    "l": 54.118
  },
  "oklch": {
    "l": 0.48867,
    "c": 0.21053,
    "h": 273.1
  },
  "luminance": 0.10478
}

Semantic roles & 50–950 ramp

primary
#4048D4
secondary
#D7D498
accent
#DD42E6
background
#F9F7FE
surface
#F1EEFC
border
#CBC9D5
text
#0D0916
muted
#7E7B84

Preview Lab

Preview with #4048D4

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

Preview Lab → · Contrast checker → · Palette generator →

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