#4048E0#4048E0

#4048E0 is a mid, highly saturated blue. Relative luminance 0.111; OKLCH L 50.0% C 0.225 H 272.5°. Best body text is #FFFFFF at 6.52:1 contrast (WCAG AA passes).

Color values

HEX#4048E0
RGBrgb(64, 72, 224)
HSLhsl(237, 72%, 56%)
HSVhsv(237, 71%, 88%)
CMYKcmyk(71.4%, 67.9%, 0%, 12.2%)
CIE-LABlab(39.76, 46.17, -77.87)
CIE-LCHlch(39.76, 90.53, 300.66°)
OKLaboklab(49.97% 0.01 -0.2252)
OKLCHoklch(49.97% 0.225 272.5)
XYZxyz(17.8817, 11.1047, 71.7076)
Luminance0.1111 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4048E0 #E0D840
analogous
#4098E0 #4048E0 #8840E0
triadic
#4048E0 #E04048 #48E040
tetradic
#4048E0 #E04098 #E0D840 #40E088
square
#4048E0 #E04098 #E0D840 #40E088
split-complementary
#4048E0 #E08840 #98E040
monochromatic
#171D8E #2028C3 #4048E0 #757AE9 #A9ADF1

Accessibility & contrast

On white

6.52
#4048E0 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.22
#4048E0 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4048E0
6.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4048E0#FFFFFF#000000##FFFFFF
##4048E01.006.523.226.52
#FFFFFF6.521.0021.001.00
#0000003.2221.001.0021.00
##FFFFFF6.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0065E5
Deuteranopia (green-blind)
#0056DD
Tritanopia (blue-blind)
#00718E
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #4048e0;
/* rgb */ color: rgb(64, 72, 224);
/* oklch */ color: oklch(50.0% 0.225 272.5);
Tailwind
colors: {
  custom: {
    50: '#8b7ceb',
    500: '#4048e0',
    950: '#000000',
  },
}
SCSS
$custom: #4048e0;
$custom-light: #8b7ceb;
$custom-dark: #000000;
JSON
{
  "hex": "#4048e0",
  "rgb": {
    "r": 64,
    "g": 72,
    "b": 224
  },
  "hsl": {
    "h": 237,
    "s": 72.072,
    "l": 56.471
  },
  "oklch": {
    "l": 0.49971,
    "c": 0.22541,
    "h": 272.5
  },
  "luminance": 0.11107
}

Semantic roles & 50–950 ramp

primary
#4048E0
secondary
#DFDB9D
accent
#E639EF
background
#F9F7FE
surface
#F2EEFD
border
#CCC9D5
text
#0E0916
muted
#7E7B84

Preview Lab

Preview with #4048E0

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

Preview Lab → · Contrast checker → · Palette generator →

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