#4048D2#4048D2

#4048D2 is a mid, highly saturated blue. Relative luminance 0.104; OKLCH L 48.7% C 0.208 H 273.1°. Best body text is #FFFFFF at 6.83:1 contrast (WCAG AA passes).

Color values

HEX#4048D2
RGBrgb(64, 72, 210)
HSLhsl(237, 62%, 54%)
HSVhsv(237, 70%, 82%)
CMYKcmyk(69.5%, 65.7%, 0%, 17.6%)
CIE-LABlab(38.51, 41.47, -71.89)
CIE-LCHlch(38.51, 83.00, 299.98°)
OKLaboklab(48.69% 0.0114 -0.2077)
OKLCHoklch(48.69% 0.208 273.1)
XYZxyz(16.0607, 10.3763, 62.1167)
Luminance0.1038 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4048D2 #D2CA40
analogous
#4091D2 #4048D2 #8140D2
triadic
#4048D2 #D24048 #48D240
tetradic
#4048D2 #D24091 #D2CA40 #40D281
square
#4048D2 #D24091 #D2CA40 #40D281
split-complementary
#4048D2 #D28140 #91D240
monochromatic
#1D227B #2930AC #4048D2 #7277DE #A3A7E9

Accessibility & contrast

On white

6.83
#4048D2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.08
#4048D2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4048D2
6.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4048D2#FFFFFF#000000##FFFFFF
##4048D21.006.833.086.83
#FFFFFF6.831.0021.001.00
#0000003.0821.001.0021.00
##FFFFFF6.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061D6
Deuteranopia (green-blind)
#0054CF
Tritanopia (blue-blind)
#006C87
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #4048d2;
/* rgb */ color: rgb(64, 72, 210);
/* oklch */ color: oklch(48.7% 0.208 273.1);
Tailwind
colors: {
  custom: {
    50: '#887be1',
    500: '#4048d2',
    950: '#000000',
  },
}
SCSS
$custom: #4048d2;
$custom-light: #887be1;
$custom-dark: #000000;
JSON
{
  "hex": "#4048d2",
  "rgb": {
    "r": 64,
    "g": 72,
    "b": 210
  },
  "hsl": {
    "h": 236.712,
    "s": 61.864,
    "l": 53.725
  },
  "oklch": {
    "l": 0.48686,
    "c": 0.20801,
    "h": 273.1
  },
  "luminance": 0.10378
}

Semantic roles & 50–950 ramp

primary
#4048D2
secondary
#D6D398
accent
#DC43E5
background
#F9F7FD
surface
#F1EEFB
border
#CBC9D4
text
#0D0915
muted
#7E7B83

Preview Lab

Preview with #4048D2

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

Preview Lab → · Contrast checker → · Palette generator →

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