#4048C6#4048C6

#4048C6 is a mid, vivid blue. Relative luminance 0.098; OKLCH L 47.6% C 0.193 H 273.7°. Best body text is #FFFFFF at 7.09:1 contrast (WCAG AA passes).

Color values

HEX#4048C6
RGBrgb(64, 72, 198)
HSLhsl(236, 54%, 51%)
HSVhsv(236, 68%, 78%)
CMYKcmyk(67.7%, 63.6%, 0%, 22.4%)
CIE-LABlab(37.48, 37.38, -66.62)
CIE-LCHlch(37.48, 76.39, 299.30°)
OKLaboklab(47.62% 0.0123 -0.1922)
OKLCHoklch(47.62% 0.193 273.7)
XYZxyz(14.6214, 9.8006, 54.5363)
Luminance0.0980 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4048C6 #C6BE40
analogous
#408BC6 #4048C6 #7B40C6
triadic
#4048C6 #C64048 #48C640
tetradic
#4048C6 #C6408B #C6BE40 #40C67B
square
#4048C6 #C6408B #C6BE40 #40C67B
split-complementary
#4048C6 #C67B40 #8BC640
monochromatic
#20256C #2E359B #4048C6 #6F75D4 #9EA2E2

Accessibility & contrast

On white

7.09
#4048C6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.96
#4048C6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4048C6
7.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4048C6#FFFFFF#000000##FFFFFF
##4048C61.007.092.967.09
#FFFFFF7.091.0021.001.00
#0000002.9621.001.0021.00
##FFFFFF7.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005ECA
Deuteranopia (green-blind)
#0052C4
Tritanopia (blue-blind)
#006880
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #4048c6;
/* rgb */ color: rgb(64, 72, 198);
/* oklch */ color: oklch(47.6% 0.193 273.7);
Tailwind
colors: {
  custom: {
    50: '#857bd8',
    500: '#4048c6',
    950: '#000000',
  },
}
SCSS
$custom: #4048c6;
$custom-light: #857bd8;
$custom-dark: #000000;
JSON
{
  "hex": "#4048c6",
  "rgb": {
    "r": 64,
    "g": 72,
    "b": 198
  },
  "hsl": {
    "h": 236.418,
    "s": 54.032,
    "l": 51.373
  },
  "oklch": {
    "l": 0.4762,
    "c": 0.19264,
    "h": 273.7
  },
  "luminance": 0.09802
}

Semantic roles & 50–950 ramp

primary
#4048C6
secondary
#CECB93
accent
#D54ADD
background
#F8F7FD
surface
#F0EEFB
border
#CBC9D4
text
#0C0915
muted
#7D7B83

Preview Lab

Preview with #4048C6

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

Preview Lab → · Contrast checker → · Palette generator →

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