#4048B7#4048B7

#4048B7 is a mid, vivid blue. Relative luminance 0.091; OKLCH L 46.3% C 0.173 H 274.3°. Best body text is #FFFFFF at 7.42:1 contrast (WCAG AA passes).

Color values

HEX#4048B7
RGBrgb(64, 72, 183)
HSLhsl(236, 48%, 48%)
HSVhsv(236, 65%, 72%)
CMYKcmyk(65%, 60.7%, 0%, 28.2%)
CIE-LABlab(36.26, 32.21, -59.83)
CIE-LCHlch(36.26, 67.95, 298.30°)
OKLaboklab(46.34% 0.013 -0.1723)
OKLCHoklch(46.34% 0.173 274.3)
XYZxyz(12.9761, 9.1425, 45.8714)
Luminance0.0914 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4048B7 #B7AF40
analogous
#4083B7 #4048B7 #7340B7
triadic
#4048B7 #B74048 #48B740
tetradic
#4048B7 #B74083 #B7AF40 #40B773
square
#4048B7 #B74083 #B7AF40 #40B773
split-complementary
#4048B7 #B77340 #83B740
monochromatic
#20245C #30368A #4048B7 #6970CB #979BDB

Accessibility & contrast

On white

7.42
#4048B7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.83
#4048B7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4048B7
7.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4048B7#FFFFFF#000000##FFFFFF
##4048B71.007.422.837.42
#FFFFFF7.421.0021.001.00
#0000002.8321.001.0021.00
##FFFFFF7.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BBB
Deuteranopia (green-blind)
#0050B5
Tritanopia (blue-blind)
#006478
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #4048b7;
/* rgb */ color: rgb(64, 72, 183);
/* oklch */ color: oklch(46.3% 0.173 274.3);
Tailwind
colors: {
  custom: {
    50: '#827bcd',
    500: '#4048b7',
    950: '#000000',
  },
}
SCSS
$custom: #4048b7;
$custom-light: #827bcd;
$custom-dark: #000000;
JSON
{
  "hex": "#4048b7",
  "rgb": {
    "r": 64,
    "g": 72,
    "b": 183
  },
  "hsl": {
    "h": 235.966,
    "s": 48.178,
    "l": 48.431
  },
  "oklch": {
    "l": 0.46338,
    "c": 0.17282,
    "h": 274.3
  },
  "luminance": 0.09144
}

Semantic roles & 50–950 ramp

primary
#4048B7
secondary
#C6C28D
accent
#CF50D8
background
#F8F7FC
surface
#F0EDF9
border
#CBC8D2
text
#0C0914
muted
#7D7B82

Preview Lab

Preview with #4048B7

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

Preview Lab → · Contrast checker → · Palette generator →

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