#4048C8#4048C8

#4048C8 is a mid, vivid blue. Relative luminance 0.099; OKLCH L 47.8% C 0.195 H 273.6°. Best body text is #FFFFFF at 7.05:1 contrast (WCAG AA passes).

Color values

HEX#4048C8
RGBrgb(64, 72, 200)
HSLhsl(236, 55%, 52%)
HSVhsv(236, 68%, 78%)
CMYKcmyk(68%, 64%, 0%, 21.6%)
CIE-LABlab(37.65, 38.07, -67.51)
CIE-LCHlch(37.65, 77.50, 299.42°)
OKLaboklab(47.8% 0.0122 -0.1949)
OKLCHoklch(47.8% 0.195 273.6)
XYZxyz(14.8536, 9.8935, 55.7592)
Luminance0.0989 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4048C8 #C8C040
analogous
#408CC8 #4048C8 #7C40C8
triadic
#4048C8 #C84048 #48C840
tetradic
#4048C8 #C8408C #C8C040 #40C87C
square
#4048C8 #C8408C #C8C040 #40C87C
split-complementary
#4048C8 #C87C40 #8CC840
monochromatic
#20246E #2D349D #4048C8 #7076D6 #9FA3E3

Accessibility & contrast

On white

7.05
#4048C8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.98
#4048C8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4048C8
7.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4048C8#FFFFFF#000000##FFFFFF
##4048C81.007.052.987.05
#FFFFFF7.051.0021.001.00
#0000002.9821.001.0021.00
##FFFFFF7.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FCC
Deuteranopia (green-blind)
#0052C6
Tritanopia (blue-blind)
#006981
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #4048c8;
/* rgb */ color: rgb(64, 72, 200);
/* oklch */ color: oklch(47.8% 0.195 273.6);
Tailwind
colors: {
  custom: {
    50: '#867bda',
    500: '#4048c8',
    950: '#000000',
  },
}
SCSS
$custom: #4048c8;
$custom-light: #867bda;
$custom-dark: #000000;
JSON
{
  "hex": "#4048c8",
  "rgb": {
    "r": 64,
    "g": 72,
    "b": 200
  },
  "hsl": {
    "h": 236.471,
    "s": 55.285,
    "l": 51.765
  },
  "oklch": {
    "l": 0.47795,
    "c": 0.19524,
    "h": 273.6
  },
  "luminance": 0.09895
}

Semantic roles & 50–950 ramp

primary
#4048C8
secondary
#D0CC94
accent
#D649DF
background
#F8F7FD
surface
#F0EEFB
border
#CBC9D4
text
#0D0915
muted
#7D7B83

Preview Lab

Preview with #4048C8

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

Preview Lab → · Contrast checker → · Palette generator →

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