#4048C4#4048C4

#4048C4 is a mid, vivid blue. Relative luminance 0.097; OKLCH L 47.4% C 0.190 H 273.8°. Best body text is #FFFFFF at 7.14:1 contrast (WCAG AA passes).

Color values

HEX#4048C4
RGBrgb(64, 72, 196)
HSLhsl(236, 53%, 51%)
HSVhsv(236, 67%, 77%)
CMYKcmyk(67.3%, 63.3%, 0%, 23.1%)
CIE-LABlab(37.31, 36.70, -65.73)
CIE-LCHlch(37.31, 75.28, 299.17°)
OKLaboklab(47.45% 0.0124 -0.1896)
OKLCHoklch(47.45% 0.19 273.8)
XYZxyz(14.3922, 9.7089, 53.3294)
Luminance0.0971 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4048C4 #C4BC40
analogous
#408AC4 #4048C4 #7A40C4
triadic
#4048C4 #C44048 #48C440
tetradic
#4048C4 #C4408A #C4BC40 #40C47A
square
#4048C4 #C4408A #C4BC40 #40C47A
split-complementary
#4048C4 #C47A40 #8AC440
monochromatic
#202569 #2F3598 #4048C4 #6F75D2 #9EA2E1

Accessibility & contrast

On white

7.14
#4048C4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.94
#4048C4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4048C4
7.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4048C4#FFFFFF#000000##FFFFFF
##4048C41.007.142.947.14
#FFFFFF7.141.0021.001.00
#0000002.9421.001.0021.00
##FFFFFF7.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005EC8
Deuteranopia (green-blind)
#0052C2
Tritanopia (blue-blind)
#00687F
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #4048c4;
/* rgb */ color: rgb(64, 72, 196);
/* oklch */ color: oklch(47.4% 0.190 273.8);
Tailwind
colors: {
  custom: {
    50: '#857bd7',
    500: '#4048c4',
    950: '#000000',
  },
}
SCSS
$custom: #4048c4;
$custom-light: #857bd7;
$custom-dark: #000000;
JSON
{
  "hex": "#4048c4",
  "rgb": {
    "r": 64,
    "g": 72,
    "b": 196
  },
  "hsl": {
    "h": 236.364,
    "s": 52.8,
    "l": 50.98
  },
  "oklch": {
    "l": 0.47445,
    "c": 0.19005,
    "h": 273.8
  },
  "luminance": 0.0971
}

Semantic roles & 50–950 ramp

primary
#4048C4
secondary
#CDCA93
accent
#D34CDC
background
#F8F7FD
surface
#F0EEFA
border
#CBC9D3
text
#0C0914
muted
#7D7B83

Preview Lab

Preview with #4048C4

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

Preview Lab → · Contrast checker → · Palette generator →

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