#4048CF#4048CF

#4048CF is a mid, highly saturated blue. Relative luminance 0.102; OKLCH L 48.4% C 0.204 H 273.3°. Best body text is #FFFFFF at 6.89:1 contrast (WCAG AA passes).

Color values

HEX#4048CF
RGBrgb(64, 72, 207)
HSLhsl(237, 60%, 53%)
HSVhsv(237, 69%, 81%)
CMYKcmyk(69.1%, 65.2%, 0%, 18.8%)
CIE-LABlab(38.25, 40.45, -70.59)
CIE-LCHlch(38.25, 81.36, 299.82°)
OKLaboklab(48.42% 0.0117 -0.2039)
OKLCHoklch(48.42% 0.204 273.3)
XYZxyz(15.6904, 10.2282, 60.1667)
Luminance0.1023 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4048CF #CFC740
analogous
#4090CF #4048CF #7F40CF
triadic
#4048CF #CF4048 #48CF40
tetradic
#4048CF #CF4090 #CFC740 #40CF7F
square
#4048CF #CF4090 #CFC740 #40CF7F
split-complementary
#4048CF #CF7F40 #90CF40
monochromatic
#1E2377 #2A31A8 #4048CF #7177DB #A2A6E8

Accessibility & contrast

On white

6.89
#4048CF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.05
#4048CF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4048CF
6.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4048CF#FFFFFF#000000##FFFFFF
##4048CF1.006.893.056.89
#FFFFFF6.891.0021.001.00
#0000003.0521.001.0021.00
##FFFFFF6.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061D3
Deuteranopia (green-blind)
#0053CC
Tritanopia (blue-blind)
#006B85
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #4048cf;
/* rgb */ color: rgb(64, 72, 207);
/* oklch */ color: oklch(48.4% 0.204 273.3);
Tailwind
colors: {
  custom: {
    50: '#877bdf',
    500: '#4048cf',
    950: '#000000',
  },
}
SCSS
$custom: #4048cf;
$custom-light: #877bdf;
$custom-dark: #000000;
JSON
{
  "hex": "#4048cf",
  "rgb": {
    "r": 64,
    "g": 72,
    "b": 207
  },
  "hsl": {
    "h": 236.643,
    "s": 59.833,
    "l": 53.137
  },
  "oklch": {
    "l": 0.48416,
    "c": 0.20421,
    "h": 273.3
  },
  "luminance": 0.1023
}

Semantic roles & 50–950 ramp

primary
#4048CF
secondary
#D4D197
accent
#DA45E3
background
#F9F7FD
surface
#F1EEFB
border
#CBC9D4
text
#0D0915
muted
#7E7B83

Preview Lab

Preview with #4048CF

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

Preview Lab → · Contrast checker → · Palette generator →

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