#4048C1#4048C1

#4048C1 is a mid, vivid blue. Relative luminance 0.096; OKLCH L 47.2% C 0.186 H 273.9°. Best body text is #FFFFFF at 7.20:1 contrast (WCAG AA passes).

Color values

HEX#4048C1
RGBrgb(64, 72, 193)
HSLhsl(236, 51%, 50%)
HSVhsv(236, 67%, 76%)
CMYKcmyk(66.8%, 62.7%, 0%, 24.3%)
CIE-LABlab(37.07, 35.67, -64.38)
CIE-LCHlch(37.07, 73.60, 298.98°)
OKLaboklab(47.19% 0.0126 -0.1857)
OKLCHoklch(47.19% 0.186 273.9)
XYZxyz(14.0542, 9.5737, 51.5490)
Luminance0.0958 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4048C1 #C1B940
analogous
#4088C1 #4048C1 #7840C1
triadic
#4048C1 #C14048 #48C140
tetradic
#4048C1 #C14088 #C1B940 #40C178
square
#4048C1 #C14088 #C1B940 #40C178
split-complementary
#4048C1 #C17840 #88C140
monochromatic
#212566 #303694 #4048C1 #6E74D0 #9CA1DF

Accessibility & contrast

On white

7.20
#4048C1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.91
#4048C1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4048C1
7.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4048C1#FFFFFF#000000##FFFFFF
##4048C11.007.202.917.20
#FFFFFF7.201.0021.001.00
#0000002.9121.001.0021.00
##FFFFFF7.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DC5
Deuteranopia (green-blind)
#0051BF
Tritanopia (blue-blind)
#00677E
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #4048c1;
/* rgb */ color: rgb(64, 72, 193);
/* oklch */ color: oklch(47.2% 0.186 273.9);
Tailwind
colors: {
  custom: {
    50: '#847bd5',
    500: '#4048c1',
    950: '#000000',
  },
}
SCSS
$custom: #4048c1;
$custom-light: #847bd5;
$custom-dark: #000000;
JSON
{
  "hex": "#4048c1",
  "rgb": {
    "r": 64,
    "g": 72,
    "b": 193
  },
  "hsl": {
    "h": 236.279,
    "s": 50.988,
    "l": 50.392
  },
  "oklch": {
    "l": 0.47186,
    "c": 0.18612,
    "h": 273.9
  },
  "luminance": 0.09575
}

Semantic roles & 50–950 ramp

primary
#4048C1
secondary
#CBC892
accent
#D24DDA
background
#F8F7FD
surface
#F0EEFA
border
#CBC9D3
text
#0C0914
muted
#7D7B83

Preview Lab

Preview with #4048C1

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

Preview Lab → · Contrast checker → · Palette generator →

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