#4048EA#4048EA

#4048EA is a mid, highly saturated blue. Relative luminance 0.117; OKLCH L 50.9% C 0.238 H 272.1°. Best body text is #FFFFFF at 6.30:1 contrast (WCAG AA passes).

Color values

HEX#4048EA
RGBrgb(64, 72, 234)
HSLhsl(237, 80%, 58%)
HSVhsv(237, 73%, 92%)
CMYKcmyk(72.6%, 69.2%, 0%, 8.2%)
CIE-LABlab(40.68, 49.48, -82.05)
CIE-LCHlch(40.68, 95.81, 301.09°)
OKLaboklab(50.91% 0.0088 -0.2374)
OKLCHoklch(50.91% 0.238 272.1)
XYZxyz(19.2780, 11.6632, 79.0612)
Luminance0.1167 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4048EA #EAE240
analogous
#409DEA #4048EA #8D40EA
triadic
#4048EA #EA4048 #48EA40
tetradic
#4048EA #EA409D #EAE240 #40EA8D
square
#4048EA #EA409D #EAE240 #40EA8D
split-complementary
#4048EA #EA8D40 #9DEA40
monochromatic
#11189E #1720D5 #4048EA #777DF0 #AEB2F6

Accessibility & contrast

On white

6.30
#4048EA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.33
#4048EA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4048EA
6.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4048EA#FFFFFF#000000##FFFFFF
##4048EA1.006.303.336.30
#FFFFFF6.301.0021.001.00
#0000003.3321.001.0021.00
##FFFFFF6.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0068EF
Deuteranopia (green-blind)
#0058E7
Tritanopia (blue-blind)
#007594
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #4048ea;
/* rgb */ color: rgb(64, 72, 234);
/* oklch */ color: oklch(50.9% 0.238 272.1);
Tailwind
colors: {
  custom: {
    50: '#8d7cf2',
    500: '#4048ea',
    950: '#000000',
  },
}
SCSS
$custom: #4048ea;
$custom-light: #8d7cf2;
$custom-dark: #000000;
JSON
{
  "hex": "#4048ea",
  "rgb": {
    "r": 64,
    "g": 72,
    "b": 234
  },
  "hsl": {
    "h": 237.176,
    "s": 80.189,
    "l": 58.431
  },
  "oklch": {
    "l": 0.50912,
    "c": 0.23753,
    "h": 272.1
  },
  "luminance": 0.11665
}

Semantic roles & 50–950 ramp

primary
#4048EA
secondary
#E5E1A1
accent
#ED31F7
background
#F9F7FF
surface
#F2EEFE
border
#CCC9D6
text
#0E0917
muted
#7E7B85

Preview Lab

Preview with #4048EA

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

Preview Lab → · Contrast checker → · Palette generator →

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